Skip to content
Back to skills

Test Mutation

ASecurity

Analyzes test quality by identifying mutations your tests would NOT catch

  • 10 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added May 27, 2026
data-aigotesting

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill test-mutation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Mutation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Mutation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-test-mutation/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-test-mutation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-mutation
description: Analyzes test quality by identifying mutations your tests would NOT catch
argument-hint: <file-path>
user-invocable: true
allowed-tools: Read Grep Glob
effort: medium
---

## Mutation Testing Analysis

Target: **$1**

Since we can't run Stryker/mutmut directly, do a manual mutation analysis:

1. Read the source file and its test file.

2. Apply common mutations mentally and check if existing tests would catch them:
   - Change `>` to `>=` (boundary condition)
   - Negate boolean conditions (`!`)
   - Remove a function call
   - Change `&&` to `||`
   - Return early / return null instead of computed value
   - Off-by-one in loops

3. For each mutation that would NOT be caught:
   - Describe the mutation
   - Explain why it would go undetected
   - Write a test that catches it

4. Report:
```
Surviving mutations found: N
Tests added: N
Estimated mutation score: X% → Y%
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.