Agent skill
mutation-test
Run mutation testing to validate test suite quality
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/mutation-test
SKILL.md
Mutation Testing with Stryker
Run mutation testing to verify your test suite actually catches bugs.
For .NET (Stryker.NET)
dotnet tool install -g dotnet-stryker
cd src/backend/Tests/MatchingServiceTests
dotnet stryker
Configure stryker-config.json:
{
"stryker-config": {
"project": "CandidateMatchingEngine.csproj",
"mutate": ["**/Services/**/*.cs", "!**/Generated/**"],
"thresholds": { "high": 80, "low": 60, "break": 40 },
"reporters": ["html", "json", "progress"],
"concurrency": 4
}
}
For TypeScript/JavaScript (StrykerJS)
npx stryker init
npx stryker run
Interpreting Results
- Killed: Test caught the mutation (GOOD)
- Survived: Tests missed the change (BAD -- add tests)
- Mutation score = killed / (killed + survived) -- target >60%
CI Integration
- script: dotnet stryker --threshold-break 40
displayName: "Mutation Testing"
condition: eq(variables['Build.Reason'], 'PullRequest')
Arguments
--project=<path>: Path to test project--threshold=<n>: Break build if score below this (default: 60)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?