Bug Fix Workflow
- •Ask the user for a clear description of the bug and expected behavior
- •Check
git log --oneline -15andgit diff HEAD~5to identify recent changes that may have caused the regression - •Do targeted investigation (max 5 file reads) to identify root cause
- •Present a 1-2 sentence diagnosis and proposed fix BEFORE implementing
- •Implement the minimal fix — do NOT refactor surrounding code
- •Run
cd framework && npx tsc --noEmitto verify no TypeScript errors - •Check for regressions in directly related functionality
CONSTRAINTS:
- •Do NOT spend more than 5 minutes exploring without proposing a fix
- •Do NOT over-engineer — fix the bug, nothing more
- •Reuse existing components (see CLAUDE.md "Reusable Components" section)
- •Do NOT create PLAN.md, PROGRESS.md, CONTEXT.md, DECISIONS.md, or REVIEW.md files