Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By trailofbits Verified Orgv1.9.2CC-BY-SA-4.0In 2 marketplaces
Sets up mewt or muton mutation testing campaigns and classifies surviving mutants as equivalent changes or test gaps, writing recommendations to a report. Bug claims need a reproduced proof of concept.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Configure mutation testing campaigns, explain what surviving mutations reveal about tests, and investigate potential bugs in the affected code.
The plugin ships one skill, mutation-testing. Invoke it with /mutation-testing:mutation-testing or ask for help with a mutation testing campaign or its results.
| Request | What the skill does |
|---|---|
| Set up or optimize a campaign | Configures mewt or muton, checks target selection, measures test duration, and tunes timeouts and per-target test commands. |
| Analyze completed results | Reads the source and tests for each survivor, distinguishes equivalent changes from testing gaps, and recommends specific assertions or inputs in mutation-testing-report.md. |
| Investigate potential bugs | Uses survivors to prioritize investigation of the original code. Requires a reproduced proof of concept before describing a bug as confirmed. |
A surviving mutation means the tests did not detect a deliberate change. It can reveal a testing gap or an equivalent implementation. It does not by itself establish a bug in the original code. The analysis workflow recommends test improvements without implementing them.
Campaign setup uses mewt or muton, plus a runnable test suite. Examples follow the mewt 4.x API. Check the installed tool's --help for supported flags and language labels. For muton projects, substitute muton, muton.toml, and muton.sqlite in the examples.
Analyzing saved results does not require either tool to be installed. Supply the campaign output, the source at the mutation sites, and the relevant tests. The analysis workflow also accepts results from other mutation testing tools.
The bundled eval uses a captured campaign against a deliberately weak Rust test suite. It requires the agent to distinguish balance > 0 from two mutations: balance != 0 is equivalent for u64, while balance >= 0 differs at zero. It also checks authorization, balance-accounting, and logging gaps. The fixture can be analyzed without cargo or mewt.
Run the report-validator tests from the repository root:
uv run --no-project --with pytest python -m pytest plugins/mutation-testing/tests -q --import-mode=importlib
DETERMINISTIC_ONLY=1 uv run --no-project bash plugins/mutation-testing/tests/smoke-test.sh
The deterministic checks accept a correct report and reject reports that misclassify either comparison. They test the grader, not the skill's effectiveness. The optional model eval checks the agent's report against the same validator:
# Requires Claude Code with plugin eval support and ANTHROPIC_API_KEY.
uv run --no-project bash plugins/mutation-testing/tests/smoke-test.sh
The model eval retains reports locally and makes API calls. Its model, judge, run count, and cost ceiling can be set with MODEL, JUDGE_MODEL, RUNS, and MAX_COST_USD. A passing fixture does not establish improvement over an agent without the skill.
To reproduce the captured campaign, work on a separate copy:
mutation_fixture_dir="$(mktemp -d)/vault"
cp -R plugins/mutation-testing/evals/weak-suite-analysis/fixture "$mutation_fixture_dir"
cd "$mutation_fixture_dir"
cargo test
mewt mutate
mewt run
mewt results
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub trailofbits/skills --plugin mutation-testingPlugins from other owners that cover similar ground