Skip to content
secondsky avatar

Mutation Testing

Mutation testing skill that finds weak tests by injecting code mutants via Stryker (TypeScript) and mutmut (Python).

CCM score
60 of 100
skills.sh installs
471
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Stryker setup for Vitest and Bun's native bun test runner, plus mutmut workflows for Python projects
  • Includes configuration examples (stryker.config.mjs, stryker.conf.mjs) with score thresholds, per-test coverage analysis, and incremental runs
  • Explains mutant states (killed, survived) and score targets, with before-and-after examples of strengthening weak assertions
  • Designed for teams that want to verify test effectiveness once code coverage is already at 80% or higher

Install

$ npx -y skills add secondsky/claude-skills --skill mutation-testing -y

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

Files

Mutation Testing

Expert knowledge for mutation testing - validating that your tests actually catch bugs by introducing deliberate code mutations.

Core Concept

  • Mutants: Small code changes introduced automatically
  • Killed: Test fails with mutation (good - test caught the bug)
  • Survived: Test passes with mutation (bad - weak test)
  • Score: Percentage of mutants killed (aim for 80%+)

TypeScript/JavaScript (Stryker)

Vitest Runner

Installation
# Using Bun
bun add -d @stryker-mutator/core @stryker-mutator/vitest-runner

# Using npm
npm install -D @stryker-mutator/core @stryker-mutator/vitest-runner
Configuration
// stryker.config.mjs
export default {
  packageManager: 'bun',
  reporters: ['html', 'clear-text', 'progress'],
  testRunner: 'vitest',
  coverageAnalysis: 'perTest',
  mutate: ['src/**/*.ts', '!src/**/*.test.ts'],
  thresholds: { high: 80, low: 60, break: 60 },
  incremental: true,
}

Bun Native Runner (bun test)

Use when projects use bun test directly (not Vitest).

Requirements

Details

Repository
github.com/secondsky/claude-skills
Categories
Testing & QA, Code Review & Quality, Python
First seen
Jun 3, 2026

Questions

What is mutation-testing?

mutation-testing is an agent skill listed on Claude Marketplaces in the Testing & QA category. The listing describes mutation-testing like this: Validate test effectiveness with mutation testing using Stryker (TypeScript/JavaScript with Vitest or bun test via @hughescr/stryker-bun-runner) and mutmut (Python).

How do I install mutation-testing?

Run npx -y skills add secondsky/claude-skills --skill mutation-testing -y in a project to install mutation-testing. After that, the agent can use mutation-testing in that project.

Which category is mutation-testing in?

mutation-testing is in the Testing & QA category on Claude Marketplaces. Other listings in that category next to mutation-testing include tdd, migrate-to-shoehorn and test-driven-development.

Where is the source code of mutation-testing?

The source code of mutation-testing is on GitHub at https://github.com/secondsky/claude-skills. The secondsky account on GitHub publishes mutation-testing.

More from secondsky/claude-skills

All 116

Similar to Mutation Testing

More Testing & QA