agentleFS
tmussertmusser/ai-engineering-skills/skills/test-mini/SKILL.md

test-mini

Skill4 starsChanged 3 months agoMITView on GitHub

Add focused deterministic tests, fixtures, or smoke checks.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for ML model workflows, agents, dashboards, data transformations, metric calculations, scheduled jobs, and any behavior that can appear …

    line 14
  2. Distinctive:

    Add one deterministic behavior test when possible.

    line 25
  3. Distinctive:

    Add one fixture or golden example when useful.

    line 26
  4. Distinctive:

    Add one smoke test or manual verification path.

    line 27
  5. Distinctive:

    Keep tests focused on the changed behavior.

    line 30
  6. Distinctive:

    Prefer adding tests over changing existing tests.

    line 34
  7. Distinctive:

    If modifying existing tests:

    line 36
  8. Distinctive:

    Never weaken tests merely to match the implementation.

    line 44
  9. Distinctive:

    No deterministic check is possible without changing the design.

    line 56
  10. Distinctive:

    Only checking that the code runs without checking correctness.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Workflow

  1. Add one deterministic behavior test when possible.
  2. Add one fixture or golden example when useful.
  3. Add one smoke test or manual verification path.
  4. Run exact commands.
  5. Record command output and result.
  6. Keep tests focused on the changed behavior.

Test integrity

Prefer adding tests over changing existing tests.

If modifying existing tests:

  1. Record the changed test path.
  2. State why the old assertion was wrong or incomplete.
  3. Name the source of truth.
  4. Preserve the prior assertion or replace it intentionally.
  5. Mark verification as REVIEW_REQUIRED unless 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

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.