This evaluates how well your tests actually catch bugs by intentionally breaking your code and checking if tests fail. The skill covers Stryker for JavaScript/TypeScript, PITest for Java, and mutmut for Python. It's most useful when you need confidence that critical business logic is truly tested, not just executed. The guides walk through setup and interpreting mutation scores, which measure the percentage of code changes your tests detect. Honest take: mutation testing is slow and you won't run it on everything, but it's excellent for finding gaps in tests that otherwise show 100% line coverage. The best practice advice here is solid, especially about targeting important code and aiming for 80% mutation score rather than chasing perfection.

skills.sh installs
478
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill mutation-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Mutation Testing

Table of Contents

Overview

Mutation testing assesses test suite quality by introducing small changes (mutations) to source code and verifying that tests fail. If tests don't catch a mutation, it indicates gaps in test coverage or test quality. This technique helps identify weak or ineffective tests.

When to Use

  • Evaluating test suite effectiveness
  • Finding untested code paths
  • Improving test quality metrics
  • Validating critical business logic is well-tested
  • Identifying redundant or weak tests
  • Measuring real test coverage beyond line coverage
  • Ensuring tests actually verify behavior

Quick Start

Minimal working example:

# Install Stryker
npm install --save-dev @stryker-mutator/core @stryker-mutator/jest-runner

# Initialize configuration
npx stryker init

# Run mutation testing
npx stryker run

Reference Guides

Detailed implementations in the references/ directory:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Testing & QA, Code Review & Quality, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1parcadei avatartddparcadei/continuous-claude-v3Test-driven development workflow with philosophy guide - plan → write tests → implement → validate472skills.sh installs
2secondsky avatartest-quality-analysissecondsky/claude-skillsDetect test smells, overmocking, flaky tests, and coverage issues. Analyze test effectiveness, maintainability, and reliability. Use when reviewing tests or imp469skills.sh installs
3laurigates avatarpython-testinglaurigates/claude-pluginsPython testing with pytest, coverage, fixtures, and mocking. Use when the user mentions pytest, unit tests, coverage, fixtures, mocking, or writing Python tests463skills.sh installs
4aj-geddes avatarcontinuous-testingaj-geddes/useful-ai-promptsIntegrate automated testing into CI/CD pipelines for continuous quality feedback. Use for continuous testing, CI testing, automated testing pipelines, test orch441skills.sh installs
5incept5 avatareve-web-ui-testing-agent-browserincept5/eve-skillpacksWeb UI testing and browser automation. Use Vercel agent-browser for general apps, or the repo-pinned Playwright wrapper inside Eve Horizon. Use when tasks requi436skills.sh installs
6levnikolaevich avatarln-782-test-runnerlevnikolaevich/claude-code-skillsExecutes all test suites and reports results with coverage. Use when verifying that test infrastructure works after bootstrap.412skills.sh installs