mutation-testing

Mutate code and run tests to measure mutation score and kill rate.

6|3|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/pacphi/ampel --skill mutation-testing-pacphi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/pacphi/ampel/tree/main/.claude/skills/mutation-testing
Command: npx skills add https://github.com/pacphi/ampel --skill mutation-testing-pacphi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mutation testing evaluates test quality by mutating code and measuring the kill rate, exposing weak tests and untested paths.

Core Features & Use Cases

  • Mutation Score: Killed vs Survived mutants to gauge test strength
  • Stryker Integration: Setup and run mutation testing with common frameworks
  • Remediation Guidance: Generate focused tests to kill surviving mutants

Quick Start

  • Install Stryker and run: npx stryker run

Frequently Asked Questions about mutation-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure test quality with mutation testing?

Mutation testing measures test quality by introducing code mutations and running your test suite to calculate a kill rate—the percentage of mutations your tests catch. A higher kill rate indicates stronger tests that detect more potential bugs.

How do I set up and run mutation testing with Stryker?

Install Stryker and run `npx stryker run` to execute mutation testing on your project. Stryker integrates with Jest and other frameworks to mutate your code, execute tests, and generate a mutation score report showing which mutants survived.

What does a low mutation score mean for my tests?

A low mutation score indicates that many code mutations survived your test suite, meaning your tests miss edge cases and potential bugs. Surviving mutants highlight weak test coverage on critical paths that need strengthened assertions.

Can I use mutation testing to identify which tests to write?

Yes. Mutation testing identifies surviving mutants—code changes your tests don't catch—and guides you to write focused tests targeting those gaps. This prioritizes test generation on the weakest, most vulnerable parts of your codebase.

Does mutation testing work with Jest?

Yes. Stryker integrates seamlessly with Jest, allowing you to run mutation testing on your existing Jest test suite without changing your test framework or configuration.