geoffe-ga/start_green_stay_green/mutation-testing
Claude Code and agent skill by geoffe-ga/start_green_stay_green
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Write high-value tests that kill mutants through logic validation. Use when writing tests that need to verify behavior, improving mutation scores, or evaluating test quality. Covers boundary testing, exact value assertions, error message validation, and state verification. Do NOT use for general test writing (use testing skill).
Install
npx vskill@latest install geoffe-ga/start_green_stay_green/mutation-testingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as geoffe-ga/start_green_stay_green/mutation-testing.
Mutation Testing
Mutation testing reveals whether your tests verify behavior or just achieve coverage. A test that doesn't kill mutants doesn't test.
Instructions
Step 1: Apply the Mutant-Killing Checklist
For every test, ask:
- Would this fail if I changed a constant by 1? -> Test exact values
- Would this fail if I changed an operator? -> Test exact boundaries
- Would this fail if I removed a check? -> Test that validation happens
- Would this fail if I changed an error message? -> Validate message content
Step 2: Use High-Value Test Patterns
- Exact constants:
assert MAX_RETRIES == 3(not justassert MAX_RETRIES > 0) - Boundary testing: Test at, above, and below the boundary
- Complete error messages: Match on message content, not just exception type
- State verification: Assert before and after state changes
- Collection contents: Test exact contents and order, not just size
Step 3: Write Testable Code
- Use named constants for magic numbers
- Write specific error messages
- Make behavior testable (raise exceptions, don't just print)
Step 4: Run Mutation Tests
Examples
See references/practical-examples.md for complete worked examples.
Example 1: Boundary Testing
Example 2: Error Message Validation
Troubleshooting
Error: Mutation score below 80%
- Run
mutmut show <id>to see surviving mutants - Focus on logic mutations (constants, operators, conditions) first
- Add exact value assertions, not just truthiness checks
- Test both branches of every condition
Error: Too many equivalent mutants
- Some mutations produce equivalent behavior and can't be killed
- Focus on mutations that actually change observable behavior
- Use
mutmut showto identify which are truly equivalent
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingreference/skills/mutation-testing/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/geoffe-ga/start_green_stay_green/mutation-testing)