secondsky avatar

Mutation Testing

This validates your tests by deliberately breaking your code to see if the tests catch it. Install Stryker for TypeScript/JavaScript (works with Vitest or bun test) or mutmut for Python, and it'll introduce small mutations like flipping operators or changing conditionals. Tests that still pass are weak. You're aiming for 80%+ of mutants killed. The Bun runner is nice if you're using native bun test, though it runs sequentially for accurate coverage mapping. The workflow is straightforward: get decent coverage first, run mutation testing, check the HTML report to see which mutants survived, then tighten up those assertions. It's slower than regular testing but finds gaps that coverage percentages miss.

skills.sh installs
456
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from secondsky/claude-skills

All 146
1mrgoonie avatarweb-testingmrgoonie/claudekit-skillsWeb testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile ges448skills.sh installs
2manutej avatarshell-testing-frameworkmanutej/luxor-claude-marketplaceShell script testing expertise using bash test framework patterns from unix-goto, covering test structure (arrange-act-assert), 4 test categories, assertion pat440skills.sh installs
3tldraw avatarwrite-e2e-teststldraw/tldrawWriting Playwright E2E tests for tldraw. Use when creating browser tests, testing UI interactions, or adding E2E coverage in apps/examples/e2e or apps/dotcom/cl436skills.sh installs
4tartinerlabs avatartestingtartinerlabs/skillsUse when writing tests, running tests, adding test coverage, or debugging test failures. Detects the language and its test runner (JS/TS, Python, Go, Rust) for 419skills.sh installs
5pproenca avatartddpproenca/dot-skillsTest-Driven Development methodology and red-green-refactor workflow (formerly test-tdd). This skill should be used when practicing TDD, writing tests first, des415skills.sh installs
6dalestudy avatartestingdalestudy/skillsReact Testing Library 및 Vitest 기반 테스팅 모범 관례. 다음 상황에서 사용: (1) .test.tsx, .test.ts, .spec.tsx, .spec.ts 파일 작업 시, (2) 컴포넌트 테스트 작성 또는 리팩토링 시, (3) 'test', 'testing',413skills.sh installs