Skip to content

Evaluate test suite quality by injecting code mutations and checking that tests catch them.

CCM score
40 of 100
skills.sh installs
481
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers mutation testing workflow, from introducing mutants to reviewing survived mutants and improving tests
  • Includes setup and run guides for Stryker (JavaScript/TypeScript), PITest (Java), mutmut (Python), and mutation report formats
  • Enforces a practice of targeting critical business logic and aiming for an 80%+ mutation score on important code
  • Designed for teams measuring real test effectiveness beyond line coverage, including Stryker, PITest, and mutmut users

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

Details

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

Questions

What does the mutation-testing skill do?

The mutation-testing skill evaluates test suite quality by introducing small code mutations and checking that tests fail against them. Surviving mutants reveal gaps in coverage or weak tests, which goes beyond what line coverage measures.

How do I install the mutation-testing skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill mutation-testing -y in your project. Once installed, mutation-testing lets the agent guide you through mutation testing with Stryker, PITest and mutmut.

Where does mutation-testing sit in the Testing & QA category?

mutation-testing is listed in the Testing & QA category alongside tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. Its focus on mutants and test effectiveness sets it apart from those skills.

When should I use the mutation-testing skill?

Use mutation-testing to find untested code paths, validate that critical business logic is well tested, and identify redundant or weak tests. It also suits measuring real test coverage in CI for important modules.

Which tools does mutation-testing cover?

mutation-testing covers Stryker for JavaScript and TypeScript, PITest for Java, and mutmut for Python. Its reference guides also include notes on mutation testing reports.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Mutation Testing

More Testing & QA