Skip to content
Skill

Mutation testing

Guides mewt or muton mutation testing runs and triages surviving mutants

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

Scripts
None
Platforms
Claude Code
GitHub stars
8.6K
Last commit
License
CC-BY-SA-4.0
Listing updated

Similar skills

About Mutation testing

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.

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 12 files (68 KB) on GitHub on 1 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 mutation-testing plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/trailofbits/skills.git --path plugins/mutation-testing/skills/mutation-testing

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Mutation testing 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.

More from trailofbits/skills

  1. Lets an agent measure timing side channels in running crypto code with dudect and Timecop

    • Open source
    • 8.6K GitHub stars
    • Security
  2. Generates Claude Code security testing skills from the Trail of Bits Testing Handbook

    • Open source
    • 8.6K GitHub stars
    • Security
  3. Lets your agent write, review and debug property-based tests across languages

    • Open source
    • 8.6K GitHub stars
    • Developer tools
  4. Audits GitHub Actions workflows that run AI coding agents for prompt injection risks

    • Open source
    • 8.6K GitHub stars
    • AI models and LLM tooling
  5. Builds a verified map of an unfamiliar codebase before any bug hunting begins

    • Open source
    • 8.6K GitHub stars
    • Security
  6. Audits Algorand TEAL and PyTeal contracts against 11 platform-specific vulnerability

    • Open source
    • 8.6K GitHub stars
    • Security