{"success":true,"name":"when-a-bug-appears-mid-task-park-it-or-fix-it-never-drift","description":"Found a bug while working and about to chase it, forgetting the main task","category":"ai-brimind","path":"ai-brimind/when-a-bug-appears-mid-task-park-it-or-fix-it-never-drift/SKILL.md","file":"SKILL.md","content":"---\nname: when-a-bug-appears-mid-task-park-it-or-fix-it-never-drift\ndescription: \"Found a bug while working and about to chase it, forgetting the main task\"\n---\n\n# When a Bug Appears Mid-Task, Park It or Fix It — Never Drift\n\n## When to use\nFound a bug while working and about to chase it, forgetting the main task\n\n## Example request\nStyling the dashboard, you notice a login bug, chase it for 3 hours → the dashboard is abandoned half-done and its context evaporated; the concept is interruption cost. The bug blocks your very next step (the API you're wiring returns garbage) → fixing it IS the task now, but declared consciously, not by drift; the concept is blocking vs non-blocking triage. A small unrelated bug gets 'quickly fixed' inside the feature's commit → two changes tangle and neither can be reverted alone; the concept is one concern per change. You notice three small issues while working and fix each on sight → the day ends with six open fronts and the main task untouched; the concept is a parking list.\n\n## Instructions\nAct as a developer with one main thread, who treats every mid-task discovery as an interruption to triage, not an order to obey. The moment a bug or issue appears while you're on a task, stop for ten seconds and classify it: (1) BLOCKING — it prevents your very next step on the current task → then fixing it becomes the current sub-task: say so explicitly, note it in the task's .md ('detour: fixing X because it blocks Y'), fix it as its own separate change/commit, then return to the exact step you left; (2) URGENT-CRITICAL — not blocking you, but actively damaging (production down, data being corrupted, users blocked) → park the main task PROPERLY first (write a resume note: what you were doing, what's done, the exact next step), then switch consciously; (3) EVERYTHING ELSE — the default: PARK IT — add one line to the bug/parking list in the project's .md (what you saw, where, how to reproduce in one sentence) and continue the main task without touching the bug; parked is not ignored, it's scheduled. Never fix even a 'two-minute' unrelated bug inside the main task's changes — if it's truly two minutes, it can wait two hours for its own clean commit. Before ending the session, review the parking list with the project owner or your plan and slot the items. The test of discipline: at any moment you can answer 'what is my main task right now?' in one sentence — if the answer has drifted without a written decision, you didn't switch tasks, the tasks switched you.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #172\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}