$npx -y skills add girijashankarj/cursor-handbook --skill debug-issueStructured workflow for debugging a reported or reproduced issue. Use when the user asks to debug a bug, find root cause, or fix a failing scenario.
| 1 | # Skill: Debug issue |
| 2 | |
| 3 | ## Trigger |
| 4 | When the user asks to debug a bug, find the root cause, or fix a failing scenario. |
| 5 | |
| 6 | ## Steps |
| 7 | |
| 8 | 1. **Reproduce** — Run or describe steps to reproduce; capture error message and stack if any. |
| 9 | 2. **Isolate** — Narrow to the smallest repro (single request, single file, single branch). |
| 10 | 3. **Hypothesize** — List 2–3 likely causes (e.g. null input, wrong config, race). |
| 11 | 4. **Verify** — Add a log, assertion, or minimal test to confirm one cause. |
| 12 | 5. **Fix** — Apply minimal code change; add or update a test to prevent regression. |
| 13 | 6. **Confirm** — Run type-check and relevant tests. |
| 14 | |
| 15 | ## Rules |
| 16 | - Do not change unrelated code. |
| 17 | - Prefer adding a test that fails before the fix and passes after. |