| name | dev-debug |
| description | Systematically debug software failures before proposing fixes. Use for test failures, runtime errors, build failures, flaky behavior, performance regressions, integration failures, logs, screenshots, or any unexpected technical behavior where root cause must be established from evidence. |
| category | development |
Dev Debug
Use this skill when something technical is failing or behaving unexpectedly.
Workflow
- Read the exact error, log, screenshot, or failing output.
- Reproduce or identify why reproduction is unavailable.
- Trace the failing path through real code and configuration.
- Compare expected vs actual data at each boundary.
- Identify the smallest root cause that explains all observed symptoms.
- Fix the owner layer, not the visible symptom, when safe to do so.
- Add a regression test or explicit verification for the original symptom.
Evidence Ladder
Prefer evidence in this order:
- failing command output or runtime logs
- code path and config that directly own the behavior
- focused reproduction
- related tests
- historical memory or external docs
Guardrails
- Do not patch before root cause unless containment is explicitly requested.
- Do not blame UI, runtime, cache, or model behavior without tracing boundaries.
- If multiple explanations remain, rank them and state what evidence would decide.