Skip to content
Skill

Mutation audit

Writes a dated mutation testing report for a repository's core business logic

Mutation audit is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Mutation audit

This skill measures how well a repository's unit tests catch behaviour changes. It runs the unit tests serially, then a time-boxed mutation testing pass that starts with the core business logic, then the unit tests again, and reports the mutation score against a fixed 80 percent pass threshold. The work happens in a temporary git worktree, so the working tree is left unchanged.

The skill is written to work across languages. It maps each supported language to a mutation tool such as StrykerJS, gremlins, mutmut, PIT, Stryker.NET, cargo-mutants, Infection or mutant, and it configures every tool and test run to use a single worker. Mutants are grouped as detected, survived, no coverage or excluded, and the score is computed from the detected, survived and no-coverage counts.

The output is a single markdown report saved under docs/audit/mutation-audit with the date and commit hash in the filename. It lists the environment, the baseline and post-run test results, per-file mutation results, up to 50 surviving mutants, and any gaps. It does not measure coverage, triage surviving mutants or add tests. Invocation is explicit only, through the /mutation-audit command, with optional paths and a time budget in minutes.

When your agent uses it

Writes a dated mutation audit report for the current repository: a serial unit test run, a time-boxed mutation testing run on the core business logic first, and a second unit test run, with the mutation score against a fixed threshold. Runs one test process at a time, in a temporary git worktree, so the working tree does not change. Works on any repository and any tech stack. Writes only docs/audit/mutation-audit/mutation-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /mutation-audit — never inferred from user messages.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (10 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the nexa-claude-audit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add nexadevapp/nexa-claude-skills-marketplace
/plugin install nexa-claude-audit@nexa-claude-marketplace

Or copy only this skill to ~/.claude/skills/mutation-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mutation-audit &&
cp -R "$tmp/nexa-claude-audit/skills/mutation-audit" ~/.claude/skills/mutation-audit &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mutation-audit inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mutation-audit to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mutation-audit &&
cp -R "$tmp/nexa-claude-audit/skills/mutation-audit" ~/.agents/skills/mutation-audit &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mutation-audit inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mutation-audit to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mutation-audit &&
cp -R "$tmp/nexa-claude-audit/skills/mutation-audit" ~/.cursor/skills/mutation-audit &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mutation-audit inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/nexadevapp/nexa-claude-skills-marketplace.git --path nexa-claude-audit/skills/mutation-audit

Or copy the folder to ~/.gemini/skills/mutation-audit yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mutation-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mutation-audit &&
cp -R "$tmp/nexa-claude-audit/skills/mutation-audit" ~/.copilot/skills/mutation-audit &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mutation-audit inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git

Then copy nexa-claude-skills-marketplace/nexa-claude-audit/skills/mutation-audit into your agent's skills folder as mutation-audit. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Serial unit test runs
Runs the unit tests before and after mutation testing, one test process at a time, and compares the results.
Core logic prioritised
Orders mutation runs so that the code computing the product's results is mutated first within the time budget.
Mutation score report
Computes a score from detected, survived and no-coverage mutants and checks it against warn and fail thresholds.
Isolated worktree execution
Performs the run in a temporary git worktree so the working tree is not modified.
Multi-language tool mapping
Selects a mutation tool for each supported language and applies a single-worker option to each.
Dated audit report
Writes one markdown report with environment, metrics, mutation results, surviving mutants and gaps.

Good for

  • Audit how well the unit tests detect logic changes in a payment or pricing module
  • Run a time-boxed mutation test on the matching engine before a release
  • Produce a dated mutation score report for a repository's business logic folders
  • Find which core logic files the unit tests fail to protect

Mutation audit FAQ

When does Mutation audit trigger?

Only when invoked explicitly with /mutation-audit. It is never inferred from user messages or run by other skills.

Does Mutation audit change my working tree?

No. It runs in a temporary git worktree, and the working tree is not changed. The worktree is removed at the end.

Does Mutation audit add or fix tests?

No. It reports surviving mutants but does not triage them or add tests. The skill points to other tools for that.

What does the report measure?

It measures the mutation score on the mutated files against an 80 percent pass threshold, and it does not measure coverage.

Is the report written to a specific path?

Yes, it writes only to docs/audit/mutation-audit/ with a filename containing the date and commit hash.

How do I install Mutation audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mutation-audit to use it in all your projects, or to .claude/skills/mutation-audit in one project. Or install the nexa-claude-audit plugin, which includes it: /plugin marketplace add nexadevapp/nexa-claude-skills-marketplace, then /plugin install nexa-claude-audit@nexa-claude-marketplace.

Does Mutation audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Mutation audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Mutation audit?

The closest alternatives to Mutation audit are Testing audit, Mutation testing, Test efficacy audit, QA audit and Code metrics audit.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from nexadevapp/nexa-claude-skills-marketplace

  1. Writes a dated architecture audit report with Mermaid diagrams drawn from the code

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Writes a dated CI/CD audit report mapping pipelines, gates, and gaps in a repository

    • Open source
    • 7 GitHub stars
    • Developer tools
  3. Writes a dated static code metrics report with complexity, duplication, CBO and DIT

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Writes a dated report mapping a repository's infrastructure, environments and secret names

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Writes a dated inventory of automated tests sorted into unit, integration, E2E and misc

    • Open source
    • 7 GitHub stars
    • Developer tools