From debug-agent
Reduce a complex failing test case to the smallest possible reproduction that still triggers the bug. Use when a bug requires complex setup to reproduce, when you want to create a clean bug report, or when the reproduction case is too noisy to debug directly. Trigger for: "I need a minimal reproduction", "the test to reproduce this is 500 lines", "can you simplify this failing case", or before filing a bug report with a library or framework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debug-agent:debug-delta-minimizeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The goal is to find the *essential* elements that trigger the bug. Everything else is noise that makes debugging harder. A minimal reproduction is a gift — it makes the root cause obvious.
The goal is to find the essential elements that trigger the bug. Everything else is noise that makes debugging harder. A minimal reproduction is a gift — it makes the root cause obvious.
The core insight: if you can reproduce the bug with 5 lines instead of 500, the 5 lines tell you exactly what's triggering it.
1. Start with full failing test case T
2. While reduction is possible:
a. Generate a smaller candidate C from T
b. Verify: does C still trigger the bug?
c. If yes → accept reduction (T = C)
d. If no → try a different reduction
3. When no further reduction is possible → T is minimal
Ask the user for:
Capture the current state:
Measure initial complexity:
Choose the right strategy for the type of input:
"a", large numbers with 0 or 1, deep objects with {}After removing non-essential elements, simplify what remains:
x, y, dataBefore declaring done:
# Minimal Reproduction Report
## Original Test Case
**Size:** [N lines / N fields / N parameters]
**Bug:** [what failure occurs]
## Minimization Summary
**Iterations:** [N]
**Reduction achieved:** [original size] → [minimal size] ([X]% reduction)
## Minimal Reproduction
```[language]
// Minimal code/data that reproduces the bug
[minimized content here]
To reproduce:
[exact command to run]
Expected: [what should happen] Actual: [what happens — the bug]
These elements are required — removing any one of them makes the bug disappear:
The minimal reproduction suggests the bug is triggered by: [what the essential elements reveal about the bug's nature]
npx claudepluginhub mkellerman/bmad-skills --plugin debug-agentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.