From developer-skill-pack
Deterministic 7-phase debugging workflow — symptom capture, git archaeology, reproduce with a targeted test, log inspection, hypothesis, fix + green confirmation, regression test + commit. Use when asked to 'debug', 'fix a bug', 'investigate a failure', 'diagnose', 'root cause', or 'why is this broken'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/developer-skill-pack:debugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deterministic 7-phase debugging workflow. Walk the phases in order. If a phase's gate cannot be satisfied, go back rather than skipping ahead.
Deterministic 7-phase debugging workflow. Walk the phases in order. If a phase's gate cannot be satisfied, go back rather than skipping ahead.
Collect the symptom completely before touching any code.
Record:
Gate: One-paragraph incident description in working notes before Phase 2.
Find the most likely causal change.
git log --oneline -20
git diff HEAD~5..HEAD -- <suspected-path>
git log --oneline --all -- <suspected-path>
Gate: Most likely causal commit named, or ambiguity noted.
Do not skip to Phase 4 without a reproducible failure.
Choose the smallest command that reproduces the symptom. If no existing test covers it, write a minimal failing test first — this is the TDD Red step and it is non-negotiable.
# Targeted test
<test-runner> <specific-test-file>
# Broader search
<test-runner>
Gate: Exact test name and failure message recorded. If no red test can be produced, return to Phase 1.
Now that the symptom is pinned, read the logs.
# Local
<dev-server-command> 2>&1 | tee /tmp/debug.log
# Production
<log-command> --tail 100
Look for: missing env vars, API error codes, unhandled rejections, database errors, timing drift.
Gate: Relevant log excerpts captured.
State a single falsifiable hypothesis before changing anything:
"I believe the bug is caused by X because Y. I will verify by Z."
Write a minimal test or probe that confirms or disproves. Do not fix anything in this phase.
If disproved, return to Phase 2 with new evidence.
Gate: Hypothesis survived verification.
Apply the smallest code change that turns the Phase 3 test green. Nothing more.
Then run full checks:
<typecheck-command>
<test-command>
Baseline comparison table (required):
| Metric | Before | After |
|---|---|---|
| Tests passing | ??? | ??? |
| Tests failing | ??? | ??? |
| New tests added | 0 | ??? |
Gate: Failure count must not increase versus baseline.
fix(<area>): <short description>
Root cause: <why>
Symptom: <what the user saw>
Fix: <what changed>
Regression: tests/<path>
Closes #<issue-number>
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub dennisonbertram/developer-skill-pack --plugin developer-skill-pack