agentleFS
TermherdTermherd/termherd/.claude/skills/mutation-test/SKILL.md

mutation-test

Skill2 starsChanged 5 days agoMITView on GitHub

Run cargo mutants on the lines a termherd change touched and read the result correctly. Use when evaluating test coverage of a fix or feature, when asked for mutation testing, or before claiming a change is well tested.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-eval, brainstorm and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SaluteYBSkill

    skill-eval

    Evaluate, tune, and regression-check AgentSkills. Use when creating a new skill or improving an existing one and you need structured should-trigger, should-not-trigger, boundary-case, and execution-quality examples. Also use when auditing overlapping skills and sharpening trigger descriptions before release.

    Also in 3 projects that use this

  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    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
  1. Very specific:

    Do not pass --timeout, and keep fixtures small: one large frame turned an 8-minute run into 22.

    line 22
  2. Very specific:

    Read survivors by grepping the function name in caught.txt and missed.txt.

    line 26

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

Mutation-test a change

The traps behind each step are in docs/agents/tooling.md (Mutation testing with cargo mutants).

  1. Mutate the diff, not whole files, into a private output directory:

    git diff "$(git merge-base origin/main HEAD)" > "$TMPDIR/d.patch"
    cargo mutants --in-diff "$TMPDIR/d.patch" --output "$TMPDIR/mutants-<topic>"

    Diff from the merge base, not from origin/main: once main moves past the branch point, a plain git diff origin/main carries main's new commits as deletions, and the run mutates lines the branch never touched.

    Do not pass --timeout, and keep fixtures small: one large frame turned an 8-minute run into 22.

  2. Quote a run only after it prints N mutants tested in …; the outcomes file is rewritten while it runs.
  3. Read survivors by grepping the function name in caught.txt and missed.txt. --re still queues field-deletion mutants, so its summary line overstates the misses.
  4. A survivor may be a stale temp directory from an earlier run rather than a gap: a test writing under the temp dir clears its target first.
  5. cargo-mutants never mutates a literal argument or deletes a statement. Hand-mutate the line a security fix rests on.
  6. A surviving mutant in a guard nobody can reach is a design smell: remove the guard, or make it reachable and test it.

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.