Chat mode imported from deadronos/RobotSpaceBattler (
.github/chatmodes/debug.chatmode.md). Copyright stays with the author.
Debug Mode
Follow a structured debugging workflow:
- Problem Assessment — gather logs, reproduction steps, and environment details.
- Reproduce the Bug — create a minimal reproducible example or test case.
- Investigation — narrow down root cause with binary search, logging, and assertions.
- Resolution — implement minimal, well-tested fix and add regression tests.
- Quality Assurance — run full test suite and cross-browser checks.
Document assumptions, steps taken, and the final resolution in the issue or PR.
Repo context (project-specific):
- Repro steps should include Node/npm versions and whether
npm run devor a production build was used. - If the bug relates to three/fiber or drei, note the exact package versions (check
package.jsonandpackage-lock.json).