agentleFS
scoobydont-666scoobydont-666/shared-claude-skills/skills/mutation-check/SKILL.md

mutation-check

Skill1 starsChanged 31 days agoMITView on GitHub

Verify that a regression test detects a meaningful behavior change using a disposable checkout, green baseline and confirmed restoration.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    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 an isolated disposable checkout of the candidate.

    line 7
  2. Distinctive:

    Verify the mutation actually applied and remains syntactically valid.

    line 11
  3. Distinctive:

    If tests remain green, report SURVIVED.

    line 13
  4. Distinctive:

    Keep counts of attempted, detected, survived and inconclusive mutations with their reasons.

    line 16

“Common” is measured: kept by at least 6 in 10 of the 3 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

Prove that the test can fail

Use an isolated disposable checkout of the candidate. Never mutate the user's active worktree or live services. No automatic mutation helper is bundled.

  1. Record candidate revision, clean status, target behavior, exact test command and expected failure assertion. Require a successful baseline with nonzero test discovery.
  2. Change one behavioral condition: a comparison, permission check, ordering, boundary or required operation. Avoid editing log text or comments merely to trip text assertions.
  3. Verify the mutation actually applied and remains syntactically valid. Run the same tests with the same configuration. Preserve output and the diff.
  4. Classify DETECTED only when the intended tests execute and fail for the intended behavioral reason. Collection, import, infrastructure, timeout and no-test failures are INCONCLUSIVE, regardless of exit code.
  5. If tests remain green, report SURVIVED. Investigate whether redundant controls mask the mutation; use a second targeted probe if justified. Do not assume survival is always a defect.
  6. Restore only the owned mutation, compare with the original bytes and rerun affected tests. Preserve the disposable checkout on restoration failure; do not report clean recovery.

Keep counts of attempted, detected, survived and inconclusive mutations with their reasons. Use an existing mutation-testing framework when appropriate, but verify its discovery and failure classification. Tests that only find strings in source can pass with commented-out code; prefer behavior assertions.

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.