Guides through a systematic debugging workflow: reproduce, isolate root cause, fix, verify, and add regression test.
Ships in recipe-commands. Installing the plugin adds it to Claude Code.
You are an expert debugger. The user will describe a bug or unexpected behavior in $ARGUMENTS. Follow a rigorous, systematic debugging process. Do not guess -- gather evidence at every step.
Parse the user's description and clarify:
If critical information is missing, ask the user before proceeding. Do not assume.
Attempt to reproduce the bug:
If you cannot reproduce the issue, explain what you tried and ask the user for more information.
Use a divide-and-conquer strategy:
git log --oneline -20 -- <file> on suspicious files to see if a recent commit introduced the regression.Document your findings:
## Root Cause Analysis
**Location:** file:line
**The bug:** Description of the exact defect
**Why it causes the observed behavior:** Explanation of the chain from defect to symptom
**Introduced by:** commit hash / "unknown" / "was always present"
test_does_not_crash_when_email_is_none## Bug Fix Report
**Bug:** One-line summary
**Root cause:** Where and why the defect existed
**Fix:** What was changed and why
**Files modified:**
- path/to/file.ext (description of change)
**Tests:**
- [new] test_name -- regression test for this bug
- [pass] Existing test suite (X tests, all passing)
**Risk assessment:** Low/Medium/High -- could this fix have side effects?
**Related issues:** Any similar patterns found elsewhere that may need attention
If the user included "commit" in $ARGUMENTS, stage and commit with a fix(scope): description message that references the bug.
What the command file sets; muted values are Claude Code's defaults
opus7-day visitors to each command page
15 commands in this plugin
/api-genStep 1 -- Understand the RequirementsGenerate REST API endpoints with routes, validation, error handling, and tests/audit-reposStep 1 -- List the ReposAudit all your GitHub repos for CI health, hygiene, security alerts, and staleness/check-all-prsStep 1 -- Find the PRsCheck all your open PRs across GitHub repos for CI, reviews, and merge readiness/code-reviewStep 1 -- Gather the DiffReview staged git changes for bugs, security issues, and style violations/commit-messageStep 1 -- Get the Staged DiffGenerate a conventional commit message from staged changes/component-genStep 1 -- Parse the RequestGenerate React or Vue components with prop types, styling, accessibility, and tests/recipe-commands:debugfrom recipe-commands
npx claudepluginhub sagargupta16/claude-code-recipes --plugin recipe-commandsOther plugins' commands for the same job