test-mini
Skill6 starsChanged 3 months agoMITView on GitHub
Add focused deterministic tests, fixtures, or smoke checks.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-miniSkill
- bug-captureSkill
- build-oneSkill
- ceremony-budgetSkill
- checklist-miniSkill
- constitution-liteSkill
- context-checkSkill
- diagnose-loopSkill
- eco-modeSkill
- falsify-specSkill
- grill-with-docs-liteSkill
- handoffSkill
- lean-modeSkill
- mini-specSkill
- operator-profileSkill
- scope-freezeSkill
- ship-miniSkill
- teach-backSkill
- thin-planSkill
- tool-noise-guardSkill
- verify-contractSkill
- workspace-checkpointSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use for ML model workflows, agents, dashboards, data transformations, metric calculations, scheduled jobs, and any behavior that can appear …
- Distinctive: line 26
Add one deterministic behavior test when possible.
- Distinctive: line 27
Add one fixture or golden example when useful.
- Distinctive: line 28
Add one smoke test or manual verification path.
- Very specific: line 30
If SPEC marks Test sensitivity requirement: REQUIRED, run the targeted fault-injection pass described below.
- Distinctive: line 32
Keep tests focused on the changed behavior.
- Distinctive: line 36
Use this only when SPEC explicitly requires it.
- Very specific: line 42
Start from the declared Test command and Fault model.
- Distinctive: line 44
Prefer a disposable worktree, scratch copy, or exact reversible local edit.
- Distinctive: line 45
Do not inject faults into production, shared external state, or irreversible data.
- Distinctive: line 47
Run the exact declared targeted test command.
- Distinctive: line 62
Do not broaden this into a mutation-testing campaign unless the user explicitly asks for one.
- Distinctive: line 67
Prefer adding tests over changing existing tests.
- Distinctive: line 69
If modifying existing tests:
- Distinctive: line 77
Never weaken tests merely to match the implementation.
- Distinctive: line 85
Test-sensitivity evidence when SPEC requires it
- Distinctive: line 90
No deterministic check is possible without changing the design.
- Distinctive: line 94
Only checking that the code runs without checking correctness.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Mini
Purpose
Protect against wrong behavior without heavy tests.
When to use
Use for ML model workflows, agents, dashboards, data transformations, metric calculations, scheduled jobs, and any behavior that can appear to run while being wrong.
Inputs
- Implemented slice
- Expected behavior
- Available fixtures or examples
- Build/test/run commands
- Optional SPEC test-sensitivity contract
Workflow
- Add one deterministic behavior test when possible.
- Add one fixture or golden example when useful.
- Add one smoke test or manual verification path.
- Run exact commands.
- If SPEC marks
Test sensitivity requirement: REQUIRED, run the targeted fault-injection pass described below. - Record command output and result.
- Keep tests focused on the changed behavior.
Test sensitivity pass
Use this only when SPEC explicitly requires it. The point is to prove a targeted test is sensitive to the behavior it claims to protect, not to maximize mutation coverage.
For each declared Sensitivity ID:
- Start from the declared
Test commandandFault model. - Inject one narrow fault that should violate the protected behavior.
- Prefer a disposable worktree, scratch copy, or exact reversible local edit. Do not inject faults into production, shared external state, or irreversible data.
- Run the exact declared targeted test command.
- Count the fault as killed only when:
- the command exits nonzero;
- the failure is the expected protected-behavior assertion or signal, not a syntax/import/setup crash;
- concise failure evidence is recorded.
- Restore the implementation exactly.
- Rerun the same targeted test command and require exit code 0.
- Record the fault, mutated exit code,
Expected failure observed: yes/no, concise failure evidence, restored exit code, and restoration evidence in VERIFY.md.
A surviving fault is REVIEW_REQUIRED: the test may be too weak, the fault model
may be poor, or the protected behavior may not be exercised. It is not
automatically a functional failure in the implementation.
Do not broaden this into a mutation-testing campaign unless the user explicitly asks for one.
Test integrity
Prefer adding tests over changing existing tests.
If modifying existing tests:
- Record the changed test path.
- State why the old assertion was wrong or incomplete.
- Name the source of truth.
- Preserve the prior assertion or replace it intentionally.
- Mark verification as
REVIEW_REQUIREDunless the rationale is explicit.
Never weaken tests merely to match the implementation.
Outputs
- Focused test or fixture
- Smoke path
- Exact command results
- Remaining risk notes
- Test-sensitivity evidence when SPEC requires it
Stop conditions
- The behavior is proven enough for the task risk.
- No deterministic check is possible without changing the design.
Anti-patterns
- Only checking that the code runs without checking correctness.
- Adding broad tests unrelated to the changed behavior.
- Hiding manual verification steps in chat.
- Counting any nonzero mutated test run as proof even when it failed for the wrong reason.
- Leaving an injected fault in the working tree after the sensitivity pass.
- Running fault injection against production or shared external state.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

