| name | mutation-test |
| description | Run mutation testing to evaluate test suite quality. Use when user says "mutation test", "test quality", "are my tests strong enough", or "find weak tests". Introduces code mutations and reports mutation score with suggestions for improvement. |
| user-invocable | true |
| allowed-tools | Read, Edit, Write, Grep, Glob, Bash |
| context | fork |
| agent | mutation-tester |
| argument-hint | [target-directory] [--threshold 80] |
Run mutation testing to evaluate test suite quality.
Context
Test suite status:
!npm test -- --passWithNoTests 2>&1 | tail -5 || pytest --co -q 2>&1 | tail -5 || go test ./... 2>&1 | tail -5 || echo "Could not detect test runner"
Target: $ARGUMENTS
Instructions
- Verify baseline test suite passes
- Configure mutation testing tool for the project language
- Run mutation testing on target directory
- Analyze survived mutants
- Report mutation score and identify weak test areas
- Suggest additional tests to kill survived mutants