deep-mutation-test
Mutation testing on changed files to verify AI-generated test quality, with an auto-fix loop that returns to Implement for survived mutants.
Skill by Sungmin-Cho
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sungmin-cho-deep-mutation-test
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deep-mutation-test
What's inside
- Skill name
deep-mutation-test- Description
- Mutation testing on changed files to verify AI-generated test quality, with an auto-fix loop that returns to Implement for survived mutants. Triggers on `/deep-mutation-test`, "mutation test", "test quality", "mutation score", "뮤테이션 테스트", "테스트 품질 검증".
- License
- MIT
- Instructions
- 113 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
## Inputs (skill args)
| 인자 | 의미 |
|---|---|
| (없음) | git diff 기반 changed files (세션 baseline 또는 HEAD~5..HEAD fallback) |
| `--full` | 전체 프로젝트 (expensive) |
| `--files <path>` | 특정 파일/디렉터리 명시 |
빈 args / 매칭되지 않는 토큰 → 본문의 default 분기로 진입.
## Prerequisites
# /deep-mutation-test
Mutation testing for AI-generated test quality verification. Primarily used in Phase 4 (Test) but can be run manually.
## Usage
```
/deep-mutation-test # Test changed files (git diff based)
/deep-mutation-test --full # Test entire project (expensive)
/deep-mutation-test --files src/auth # Test specific files/directories
```
## How It Works
### Step 1: Determine Scope
**Primary source**: `git diff --name-only <baseline>..HEAD` where baseline is the session's starting commit.
**Fallback**: If no session, use `git diff --name-only HEAD~5..HEAD` (last 5 commits).
**Override**: `--files` flag specifies exact scope.
Filter files by detected ecosystem's file_extensions.
### Step 2: Check Mutation Tool
Read sensor detection cache. If mutation tool is not_installed:
- Display warning: "Mutation testing tool not installed for [ecosystem]. Install [tool] to enable."
- Exit gracefully (not an error).
### Step 3: Execute Mutation Testing
Run mutation tool with budget constraints from registry.json:
- `timeout`: max seconds per round (default 300)
- `max_mutants`: cap mutant count (default 200)
```bash
node "${CLAUDE_PLUGIN_ROOT}/sensors/run-sensors.js" "<mutation_cmd>" "<parser>" "mutation" "advisory" <timeout>
```
### Step 4: Analyze Results
Parse mutation report:
- Mutation Score = killed / (killed + survived) × 100
- Exclude NoCoverage from denominator
- Tag possibly_equivalent mutants (NoCoverage + logging-related StringLiteral)
### Step 5: Auto-Fix Loop (if survived mutants found)
**IMPORTANT**: Follow existing deep-test pattern — Test phase does NOT allow code modifications.
For each round (max 3):
1. **Transition to Implement phase**: Set `current_phase: implement` in session state
2. **Present survived mutant feedback** in agent-readable format:
```
[MUTATION_SURVIVED] N mutants survived (Score: X%)
Transitioning to Implement phase for test improvement.
MUTANT 1: file:line
Mutation: MutatorName — changed `original` to `replacement`
Impact: What this means for behavior
ACTION: Specific test to add
```
3. **Agent writes tests** following TDD (RED → GREEN)
4. **Transition back**: Set `current_phase: test`
5. **Re-run mutation testing**
6. **Compare**: If score improved, continue. If no improvement after round, stop.
After 3 rounds or all killable mutants eliminated:
- Record final results in session receipt
- Display summary: score, rounds, fixed/remaining mutants
### Step 6: Record Results
Add to session receipt:
```json
{
"mutation_testing": {
"tool": "<tool>",
"status": "completed",
"total_mutants": 45,
"killed": 39,
"survived": 4,
"equivalent": 2,
"score": 90.7,
"auto_fix_rounds": 2,
"auto_fixed_mutants": 3,
"remaining_survived": []
}
}
```
## Not Applicable Handling
If mutation tool is not installed, record in receipt:
```json
{ "mutation_testing": { "status": "not_applicable", "reason": "tool not installed" } }
```
Quality Score treats this as excluded from denominator (no penalty).From Sungmin-Cho/deep-work, MIT.
More from Sungmin-Cho/deep-work
- 0.630score
deep-assumptions
Sungmin-Cho
Assumption health report — per-assumption Wilson Score confidence, verdict (justified / loosen / drop), model-aware split, decay history.
SkillAFreshness: A★ 10Claude Code +9 - 0.595score
deep-status
Sungmin-Cho
Current deep-work session status — dashboard, badge, tree, or routing to the receipts / history / report / assumptions sub-pages.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-finish
Sungmin-Cho
Use when finishing an authorized deep-work session with keep, PR, merge or discard and a durable receipt.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-resume
Sungmin-Cho
Use when resuming an interrupted or parked deep-work session from its current phase.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
drift-check
Sungmin-Cho
Plan-alignment verification — approved plan vs actual implementation, reporting unimplemented items, out-of-scope changes and design drift.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-debug
Sungmin-Cho
Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-insight
Sungmin-Cho
Code-metrics, complexity and dependency report for a file/directory/glob — analysis only, never modifies code.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-receipt
Sungmin-Cho
View, dashboard, or export deep-work slice receipts (`receipts/SLICE-*.json`).
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-history
Sungmin-Cho
Cross-session deep-work history — completed sessions, TDD compliance rates, model usage, aggregate trend indicators.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-sensor-scan
Sungmin-Cho
Run computational sensors (linter, type checker, coverage) inside or outside a deep-work session.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-work-workflow
Sungmin-Cho
High-level overview of the deep-work workflow (Brainstorm → Research → Spec → Plan → Implement → Test → Integrate).
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
solid-review
Sungmin-Cho
SOLID design-principles review (SRP / OCP / LSP / ISP / DIP) on a file/directory/glob.
SkillBFreshness: B★ 10Claude Code +9
Signals
- Stars
- 10
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- Aug 13, 2026 (2 months ago)
- Last release
- Sep 20, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Sungmin-Cho/deep-work
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Sungmin-Cho
- 0.630score
deep-assumptions
Sungmin-Cho
Assumption health report — per-assumption Wilson Score confidence, verdict (justified / loosen / drop), model-aware split, decay history.
SkillAFreshness: A★ 10Claude Code +9 - 0.595score
deep-status
Sungmin-Cho
Current deep-work session status — dashboard, badge, tree, or routing to the receipts / history / report / assumptions sub-pages.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-finish
Sungmin-Cho
Use when finishing an authorized deep-work session with keep, PR, merge or discard and a durable receipt.
SkillBFreshness: B★ 10Claude Code +9 - 0.594score
deep-resume
Sungmin-Cho
Use when resuming an interrupted or parked deep-work session from its current phase.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-debug
Sungmin-Cho
Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation.
SkillBFreshness: B★ 10Claude Code +9 - 0.590score
deep-insight
Sungmin-Cho
Code-metrics, complexity and dependency report for a file/directory/glob — analysis only, never modifies code.
SkillBFreshness: B★ 10Claude Code +9
Cite this page
deep-mutation-test skill. Agent Mart. https://agentmart.dev/skills/sungmin-cho-deep-mutation-test (last updated 2026-10-24)