Step-by-step guide when something is broken. Find the cause before rewriting code.
You have an existing project. Something fails: a button, an API, a production error, or unexpected behavior.
Open this guide from the README Start here section.
Do
- Write down what you see (error text, screenshot, steps).
- Note when it started and who is affected if you know.
- Gather logs or stack traces if available.
Result
A clear symptom list the agent can use.
Next
Step 2.
Do
- Run the debug skill with symptoms and reproduction steps.
- Let the agent reproduce or explain why it cannot.
- Wait for a root cause and a proposed minimal fix.
Example prompt
Use the debug skill. The "Add task" button does nothing when clicked.
Production example
Use the debug skill. Users get 500 errors when uploading videos. Here are the logs: ...
Result
A debug report: symptoms, root cause, proposed fix, risk.
Next
Step 3. Do not start a large rewrite yet.
Do
- Read the proposed fix.
- Reply approved, or ask for a different approach.
Skip when
You already asked the agent to fix it and the cause and fix are both obvious and small. Still prefer a short confirmation for production issues.
Result
Agreement on the smallest safe fix.
Next
Step 4.
Do
- Run build for the approved fix only.
- Do not mix in refactors or unrelated cleanup.
Result
A focused code change.
Next
Step 5.
Do
- Run the test skill.
- Confirm the original symptom is gone.
- Check nearby failure paths if relevant.
Result
Evidence the fix works, or a clear failure to address.
Next
If tests fail → return to debug or build. If they pass → done, or Step 6 if the fix was large or risky.
Do
- Run review for production fixes, security-sensitive changes, or large patches.
- Address findings before merge.
Skip when
The fix is a tiny, obvious one-liner and tests passed.
Next
Done. Use Start here for the next situation.
| Situation | Path |
|---|---|
| Local / clear bug | debug → build → test |
| Production / unknown cause | debug → approve → build → test → review (if risky) |
capture symptoms
→ debug
→ approve fix (especially production)
→ build
→ test
→ review (if needed)
- Root cause before rewrite.
- Smallest fix that addresses the cause.
- Prefer evidence over guessing.
- Do not use design or plan unless the fix becomes a real project.
Skill lookup if you get stuck: choosing-a-skill.md.