| name | slate-debug |
| description | Compact debugging workflow. Use for failed tests, broken builds, runtime errors, crashes, dependency issues, and unexpected behavior.
|
slate-debug
Debug in minimum useful tokens.
Mission
Find root cause, patch minimal fix, prove result.
Workflow
- Read exact error.
- Extract shortest decisive error line.
- Inspect relevant file/function only.
- State one primary hypothesis.
- Patch smallest fix.
- Rerun failing command first.
- Report proof or remaining unknown.
Output
Error:
Cause:
Fix:
Proof:
Unverified:
Rules
- No shotgun changes.
- No unrelated refactors.
- No suppressing errors to pass tests.
- No full log dumps unless asked.
- If cause is uncertain, say
Likely cause: not Cause:.
- If no test was run,
Proof: must not claim success.
Example
Error: `TypeError: user.email is undefined`
Cause: `.find()` can return null.
Fix: guard `user` before `.email`.
Proof: `npm test auth.middleware.test.ts` passed.
Unverified: full suite not run.