# Mutation audit

> Mutation audit is an open-source agent skill for developer tools. Writes a dated mutation testing report for a repository's core business logic. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-audit/skills/mutation-audit
- **Repository:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** mutation-audit
- **Collection:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/mutation-audit)
- [License: Apache-2.0](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/mutation-audit)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Testing audit](https://ai-powered.com/skills/testing-audit): Testing audit is an open-source agent skill for developer tools.
- [Mutation testing](https://ai-powered.com/skills/mutation-testing): Mutation testing is an open-source agent skill for developer tools.
- [Test efficacy audit](https://ai-powered.com/skills/test-efficacy-audit): Test efficacy audit is an open-source agent skill for developer tools.
- [QA audit](https://ai-powered.com/skills/qa-audit): QA audit is an open-source agent skill for developer tools.
- [Code metrics audit](https://ai-powered.com/skills/code-metrics-audit): Code metrics audit is an open-source agent skill for developer tools.
- [Skill review](https://ai-powered.com/skills/skill-review): Skill review is an open-source agent skill for developer tools.
- [Skill audit](https://ai-powered.com/skills/skill-audit): Skill audit is an open-source agent skill for developer tools.
- [Characterization tests](https://ai-powered.com/skills/characterization-tests): Characterization tests is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/mutation-audit
