# Mutation testing

> Mutation testing is an open-source agent skill for developer tools. Guides mewt or muton mutation testing runs and triages surviving mutants. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/trailofbits/skills/tree/main/plugins/mutation-testing/skills/mutation-testing
- **Repository:** https://github.com/trailofbits/skills
- **GitHub stars:** 8,553
- **License:** CC-BY-SA-4.0
- **Skill name:** mutation-testing
- **Collection:** https://github.com/trailofbits/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill routes an agent to the right mutation testing workflow for the mewt or muton tools, covering campaign setup and scoping, reviewing results, and turning surviving mutants into findings. It points the agent to reference files on speeding up slow campaigns, recognizing equivalent mutants, classifying severity and structuring a formal report.

The agent is directed to treat the tool's own help output as the source of truth for command-line behavior, and to use commands for generating mutants, running the campaign, filtering results by target, severity, mutation type or status, and re-testing specific mutant IDs. Survivors are read by mutation type, with high-severity error replacements treated differently from low-severity operator shuffles, and the agent is reminded that severity ranks the mutation rather than the real-world risk of the code.

The skill expects a project that already uses mewt or muton, or one the user is about to configure, and works with shell commands and file reads and writes. For blockchain targets such as Solidity, Move, Cairo or Solana Rust, it loads additional patterns, and it can parse output from other mutation tools like slither-mutate, mull and dextool-mutate.

## When your agent uses it

> Configures mewt or muton campaigns, analyzes surviving mutants, and investigates bugs exposed by testing gaps. Use when setting up mutation testing, reviewing campaign results, identifying equivalent mutants, or finding bugs from surviving mutations.

## What it can access

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

- [Instructions only, no scripts](https://github.com/trailofbits/skills/tree/HEAD/plugins/mutation-testing/skills/mutation-testing)
- [Asks for: Read, Write, Bash, Grep](https://github.com/trailofbits/skills/blob/HEAD/plugins/mutation-testing/skills/mutation-testing/SKILL.md)
- [License: CC-BY-SA-4.0](https://github.com/trailofbits/skills/tree/HEAD/plugins/mutation-testing/skills/mutation-testing)

## Features

- **Campaign setup and scoping:** Guidance for configuring a mewt or muton run, limiting it to chosen paths and trimming long estimates.
- **Surviving mutant triage:** Explains what uncaught, timeout and skipped outcomes indicate and how to tell testing gaps from equivalent mutations.
- **Severity-based prioritization:** Maps common mutation types to severity tiers and advises weighing what the mutated code actually does.
- **Equivalent mutant verification:** A catalog and procedure for confirming when a surviving mutant changes no observable behavior.
- **Bug hunting from survivors:** A workflow for using untested code exposed by surviving mutations to look for real defects.
- **Formal analysis reports:** Severity criteria and a report structure for documenting mutation testing results.

## Good for

- Set up a mutation testing campaign for my Rust project and limit it to the auth module
- Review the uncaught mutants from my last run and tell me which ones matter
- Find out whether this surviving mutant is equivalent to the original code
- Re-test the mutant IDs from my results file after I add assertions
- Write a mutation testing report for our payment logic

## Install

### Claude Code

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

```sh
/plugin marketplace add trailofbits/skills
/plugin install mutation-testing@trailofbits
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mutation-testing &&
cp -R "$tmp/plugins/mutation-testing/skills/mutation-testing" ~/.claude/skills/mutation-testing &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mutation-testing &&
cp -R "$tmp/plugins/mutation-testing/skills/mutation-testing" ~/.agents/skills/mutation-testing &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mutation-testing &&
cp -R "$tmp/plugins/mutation-testing/skills/mutation-testing" ~/.cursor/skills/mutation-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/mutation-testing` 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/trailofbits/skills.git --path plugins/mutation-testing/skills/mutation-testing
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mutation-testing &&
cp -R "$tmp/plugins/mutation-testing/skills/mutation-testing" ~/.copilot/skills/mutation-testing &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/trailofbits/skills.git
```

Then copy `skills/plugins/mutation-testing/skills/mutation-testing` into your agent's skills folder as `mutation-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which tools does Mutation testing work with?

It is written for the mewt and muton mutation testing tools, which share the same command interface. Examples use mewt, and muton projects use its own file names.

### Does Mutation testing run the mutation tests by itself?

It guides the agent through the mewt or muton commands for generating, running, reading and re-testing mutants, and the agent runs them through the shell tools it is allowed to use.

### When does the skill apply?

It applies when the user mentions mewt, muton or mutation testing, or asks to configure a campaign, analyze results or find bugs from surviving mutations. It is not meant for general questions about tests or line coverage.

### How do I install Mutation testing in Claude Code?

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

### Does Mutation testing 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 testing?

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 testing?

The closest alternatives to Mutation testing are Genotoxic, Vector forge, Characterization tests, Testing strategy and Mcore testing.

## Where this comes from

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

## Alternatives

- [Genotoxic](https://ai-powered.com/skills/genotoxic): Genotoxic is an open-source agent skill for developer tools.
- [Vector forge](https://ai-powered.com/skills/vector-forge): Vector forge is an open-source agent skill for knowledge and memory.
- [Characterization tests](https://ai-powered.com/skills/characterization-tests): Characterization tests is an open-source agent skill for developer tools.
- [Testing strategy](https://ai-powered.com/skills/testing-strategy): Testing strategy is an open-source agent skill for developer tools.
- [Mcore testing](https://ai-powered.com/skills/mcore-testing): Mcore testing is an open-source agent skill for ai models and llm tooling.
- [Lowcode tools migration skill](https://ai-powered.com/skills/lowcode-tools-migration-skill): Lowcode tools migration skill is an open-source agent skill for browser automation.
- [Bug](https://ai-powered.com/skills/bug-jasgujral): Bug is an open-source agent skill for developer tools.
- [Property based testing](https://ai-powered.com/skills/property-based-testing): Property based testing is an open-source agent skill for developer tools.

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