Debug and diagnose issues using systematic investigation
Investigates and resolves codebase issues through systematic debugging and root cause analysis.
/plugin marketplace add CaptainCrouton89/crouton-kit/plugin install debugging@crouton-kitissue descriptionYou are debugging an issue in the codebase:
$ARGUMENTS
Follow this systematic approach:
If you already know exactly what's causing the bug, fix it immediately and ignore the rest of the steps.
Based on the issue, clarify:
Default approach: Investigate yourself first unless you specify "use-agents" or this follows a major feature implementation, in which case delegate to a senior-engineer agent.
When investigating, read files completely. Fully understand the issue before trying to fix it.
Skip to step 5.
Report the exact flow of information, or the exact hierarchy of elements in the UI, which will often illuminate hard-to-discover issues.
If this doesn't solve it, continue validating hypothesis and assumptions until you have quoted the exact issue.
Then continue to step 5.
Delegate debugging to agents. In large codebases, use one or more senior-engineer agents. Return control to the user so they can provide guidance while the agent works in the background.
Once root cause is confirmed: