knowledge-forge-ai/agentic-praxis-grimoire/minitest-test-profile
Claude Code and agent skill by knowledge-forge-ai/agentic-praxis-grimoire
- community
Checking that the SKILL.md file is still in the repository.
Use when Minitest-specific judgment is material to test or spec organization, assertions, lifecycle, mocks, stubs, fixture alternatives, isolation, parallelism, filtering, runners, plugins, reporters, subprocess, filesystem, or database test boundaries, or warning and crisis thresholds beyond repository policy.
Install
npx vskill@latest install knowledge-forge-ai/agentic-praxis-grimoire/minitest-test-profileSKILL.md
The same SKILL.md was published earlier as knowledge-forge-ai/agentic-praxis-grimoire/minitest-test-profile.
Minitest Test Profile
Core principle
Apply Minitest-specific judgment only when the task materially depends on Minitest. Establish the repository's Ruby, Minitest, mock, plugin, engine, and platform versions before relying on runner behavior. Use the highest justified Green — routine, Yellow — caution, Orange — warning, or Red — crisis / stop response for the current coherent decision.
Own Minitest test and spec organization, discovery, assertions and refutations, setup and teardown, lifecycle extensions, random and parallel order, skips, filtering, autorun, plugins, reporters, mocks and stubs, fixture alternatives, test isolation, Minitest-specific effects around project-owned subprocess, filesystem, and database boundaries, and Minitest-specific structural warnings. Preserve repository authority and keep ordinary implementation, general real-boundary truthfulness, and Ruby subprocess semantics with their existing owners.
Do not use
Do not use this profile for:
- ordinary Ruby implementation with no material Minitest behavior;
- RSpec-specific work when no Minitest boundary is involved;
- a simple assertion or test edit requiring no Minitest-specific judgment;
- choosing Minitest, a plugin, a Ruby version, a Minitest version, a mock
library, a reporter, a coverage tool, or another dependency;
- framework selection or migration between test frameworks;
- selecting project test files, exact commands, worker counts, CI matrices,
coverage thresholds, or support matrices;
- changing project-owned unit, integration, coverage, CI, or test-command
policy;
- harness-neutral subprocess, filesystem, or database integration with no
material Minitest behavior;
- generic planning, implementation, debugging, or review procedure;
- authorizing live services, host mutation, protected-data access, dependencies,
destructive action, release, or publication;
- automatic restructuring of a legacy test tree; or
- structural action on generated, vendored, fixture, snapshot, migration,
compatibility, or data-driven artifacts before classification.
Procedure
- Establish task authority and repository policy. Record the selected Ruby
engine and version; Minitest, mock, plugin, and reporter versions; test roots and naming; exact project commands; serial or parallel policy; external-resource boundary; expected test inventory; coverage policy; validation; and rollback. This profile does not grant or choose them.
- Classify each affected artifact as a maintained test owner, spec owner,
helper, lifecycle extension, plugin, reporter, legacy artifact, generated case family, vendored source, fixture, snapshot, migration, compatibility matrix, or data. Classification never suppresses a semantic Red stop.
- Verify discovery and truthfulness. Identify expected
test_methods, spec
examples, dynamically generated cases, load paths, filters, skips, and plugins. Compare expected and observed test identities or counts. Treat silent omission or an unexpected zero-test run as failure.
- State the observable behavior each test must prove. Choose the most direct
assertion or refutation whose failure demonstrates the relevant defect or contract violation. Test execution, assertion count, mock verification, or coverage alone is not proof.
- Map setup, teardown, and lifecycle-extension ownership. Trace effective
inheritance, super, ordering, mutation, failure cleanup, and resource restoration. Give shared state no broader lifecycle than the real resource contract requires.
- Preserve randomized-order evidence. Reproduce an order-sensitive failure
with the reported seed, identify the leaking state, and verify isolation. Do not convert the suite permanently to sorted execution and call the isolation defect fixed.
- Before
parallelize_me!, identify the executor and every thread-shared or
worker-shared writable domain. Require per-test or per-worker namespaces, thread-safe subjects and support, complete reporting, observed failures, deterministic cleanup, and project-owned worker policy.
- Evaluate fixture alternatives and boundary evidence only where Minitest
behavior is material. Prefer per-test factories, helpers, temporary resources, or project-owned fixtures according to lifecycle, restoration, isolation, and discovery needs; do not select fixture architecture or a dependency. For subprocess, filesystem, database, service, or protocol tests, inspect only Minitest-specific collection, lifecycle, filtering, parallel, and reporter effects around the project-owned evidence. implementing-with-test-discipline retains real-versus-fake selection and integration truthfulness; ruby-language-profile retains Ruby process lifecycle, arguments, environment, status, and timeout semantics; repository policy retains filesystem and database isolation.
- Establish mock ownership by version. Minitest 6 removed
minitest/mock.rb; Minitest::Mock and Object#stub in that generation require the separately versioned minitest-mock gem. Verify meaningful expectations explicitly. Keep stubs block-bounded, target the method the subject resolves, establish restoration on failure, and avoid concurrent visibility of temporary method replacement.
- Use skip and include or exclude filtering truthfully. A skip records no
passing behavior. A focused filter is useful only when the intended tests are observed. Establish version-specific option names and aliases rather than assuming one release's CLI contract.
- Inspect
Minitest.autorun, after-run hooks, fork or subprocess behavior,
prior exceptions, argument ownership, and exit status when process-exit execution is material. Do not register multiple competing run owners.
- Treat plugins and reporters as execution behavior. Verify explicit loading,
option processing, initialization, reporter composition, result completeness, failure propagation, output safety, shutdown, and exact compatibility. A custom progress display does not replace the summary or test-inventory contract.
- Measure current and projected structure using repository tooling when
present. Otherwise use the APG fallback rules below and label the result. Assign the highest structural or semantic level.
- Proceed proportionally for Green; inspect policy and evidence for Yellow;
require an accepted local decision, rationale, rollback, and focused validation for Orange; stop a Red false pass, omission, false integration claim, collision, leak, unsafe mutation, unsupported claim, or crisis-level growth.
- Pair independently with the applicable process and language owners. An
authorized behavior change can keep implementing-with-test-discipline primary and add ruby-language-profile and this profile only where their judgments are material. Acceptance can keep reviewing-and-verifying-repository-work primary.
- Preserve stricter repository policy. Report the level, signals, versions,
expected and observed tests, assertion evidence, lifecycle, seed and filter evidence, isolation, real boundaries, skips, plugin or reporter assumptions, exception if any, and rollback.
Structural threshold contract
These defaults apply mainly to maintained hand-written Minitest test classes or spec owners. They are guidance signals, not automatic enforcement, architecture selection, dependency policy, or project test policy.
| Signal | Green — routine | Yellow — caution | Orange — warning | Red — crisis / stop | |
|---|---|---|---|---|---|
| Physical lines per test owner | <= 200 | 201–350 | 351–600 | >= 601 | |
| Test methods or spec examples per owner | <= 12 | 13–24 | 25–40 | >= 41 | |
| Effective setup, teardown, or lifecycle-extension hooks per owner | <= 2 | 3–4 | 5–6 | >= 7 | |
| Helper modules mixed into one test owner | 0 | 1 | 2 | >= 3 | |
| Mock or stub boundaries in one test | <= 2 | 3–5 | 6–9 | >= 10 | |
| Shared mutable resource domains per test owner | 0 | 1 | 2–3 | >= 4 | |
| Parallel-worker shared writable domains per test owner | 0 | 1, isolated | 2–3, isolated | >= 4, or any unisolated collision | |
| Custom test-owner inheritance depth | 0–1 | 2 | 3 | >= 4 | |
| Independent responsibility families | 1 | 2 | 3 | >= 4 | |
| Generated or parameterized cases from one definition family | <= 20 | 21–100 | 101–500 | >= 501 |
Count physical lines after universal-newline decoding. Blanks, comments, DSL lines, heredoc payload, and a final non-empty unterminated segment count. Measure the smallest coherent maintained test owner supported by repository tooling and disclose file context when multiple owners share one file.
Count runner-recognized test_ methods or Minitest spec examples once before plugin or data expansion. Dynamically defined tests count. Generated or parameterized cases separately count the maximum concrete cases produced from one definition family; silent omission is a semantic defect, not a lower count.
Effective hooks include test-author setup and teardown plus materially effective before_setup, after_setup, before_teardown, and after_teardown extensions. Repeated inheritance of the same effective hook counts once at the leaf owner; independently ordered or overriding hooks count separately. Lifecycle extension hooks are primarily for library integration, not ordinary test setup.
Count one helper module when it is mixed into the test owner and adds independently maintained helper or lifecycle behavior. Ordinary inheritance from Minitest::Test does not count toward custom depth; count custom test-owner edges between the leaf and that framework base. Disclose overlap when one included or inherited behavior affects both counts.
Count one mock or stub boundary per independently replaceable collaborator, symbol, method, environment family, or process seam. Repeated expectations on one collaborator method remain one boundary unless they represent independent seams. Count independently mutable or colliding resources such as a database, port allocator, destination tree, process-global environment, service account, or shared cache as domains. A unique per-test or per-worker instance is not worker-shared. Responsibilities are independently changeable behavior or external-contract families, not every context, assertion, helper, or data row.
Three materially coupled Yellow signals normally justify Orange. Two materially coupled Orange signals affecting the same owner are presumptively Red unless a cohesive-artifact rationale, repository acceptance, evidence, validation, growth bound, and rollback justify retaining Orange. One Red signal remains Red. Do not aggregate unrelated findings into a score.
An existing Red legacy owner may receive the smallest safe fix when it adds no independent responsibility or meaningful structural growth and records a decomposition or follow-up boundary. New responsibility remains Red. Generated, vendored, fixture, snapshot, migration, compatibility, and data artifacts retain their producer or project ownership. A cohesive generated matrix can lower only a line-count response by one level; classification cannot downgrade a semantic Red stop.
Minitest semantic response guide
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/minitest-test-profile/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/knowledge-forge-ai/agentic-praxis-grimoire/minitest-test-profile)