mutation-testing
What it does
This skill sets up and reviews mutation testing, a method that makes small changes to your code to see whether tests fail. It is for developers who want to know whether their tests are strong on critical logic.
When to use it
- ✓When you ask the agent to check whether your tests would catch real bugs.
- ✓When coverage numbers look high but you doubt the tests check meaningful results.
- ✓When you want to focus test improvement on one important module of business logic.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/mutation-testing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My code has high test coverage, but I am not sure the tests catch real bugs. Can you set up mutation testing?”
5 new skills a week. 1 minute to read.
How it works
The agent configures Stryker for one module, runs it to inject small changes, and lists the changes the tests missed. It then improves the tests so those changes get caught.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use mutation testing to measure how well tests detect bugs
A codebase can have 90% line coverage and still ship critical bugs if tests only execute code without asserting meaningful outcomes. Mutation testing reveals these gaps by proving that your tests can distinguish correct code from subtly broken code — the standard that actually matters in production.
Quick Reference
- Code coverage tells you which lines were executed; mutation score tells you which bugs were caught
- Stryker injects small code changes (mutations) and checks whether tests fail — if they don't, the tests are weak
- Aim for 80%+ mutation score on critical business logic paths
- Run Stryker on a focused scope (one module) rather than the whole codebase to keep CI times manageable
Check
Assess whether this module has mutation testing configured and whether the mutation score on critical paths meets the project's quality threshold.
Fix
Set up Stryker for this module, run an initial mutation report, and improve tests to kill surviving mutants in the critical business logic paths.
Explain
Explain what mutation testing is, how Stryker works, and why mutation score is a more meaningful quality signal than code coverage alone.
Code Review
Review the Stryker configuration and mutation report to identify surviving mutants in critical code paths, and suggest test improvements to kill them.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/testing/mutation-testing
FAQ
How is mutation score different from coverage?
Coverage shows which lines ran, while mutation score shows which bugs the tests actually caught.
Why only one module at a time?
The skill recommends a focused scope so that CI run times stay manageable.
What score should I aim for?
The skill suggests aiming for 80 percent or higher on critical business logic paths.
Details
Original description by the author
Use when evaluating test quality on modules containing business logic, calculation utilities, or state machines to determine whether the tests provide genuine defect detection.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2945
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.