# Mutation Test

> Run mutation tests with cargo-mutants to verify test quality. Reports caught, missed, and timed-out mutants.

- Skill: `nwiizo/mutation-test-2` (Agent Skill)
- Install (CLI): `npx get-skill add nwiizo/mutation-test-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/nwiizo/mutation-test-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: nwiizo (https://skillmd.com/u/nwiizo)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/nwiizo/mutation-test-2

---


Run mutation tests on the specified crate (default: ccswarm):

```bash
# Install if needed
cargo mutants --version || cargo install cargo-mutants

# List mutants
cargo mutants --list -p $ARGUMENTS | head -50

# Run mutation tests
cargo mutants -p ${1:-ccswarm} --timeout 120 -j 4

# Report results
echo "=== Caught ===" && wc -l mutants.out/caught.txt
echo "=== Missed ===" && cat mutants.out/missed.txt
echo "=== Timeout ===" && wc -l mutants.out/timeout.txt
```

Focus on `missed` mutants in business logic - these indicate insufficient test coverage.

