{"success":true,"name":"change-one-thing-at-a-time-when-hunting-a-bug","description":"You are debugging and tempted to try several fixes at once.","category":"ai-brimind","path":"ai-brimind/change-one-thing-at-a-time-when-hunting-a-bug/SKILL.md","file":"SKILL.md","content":"---\nname: change-one-thing-at-a-time-when-hunting-a-bug\ndescription: \"You are debugging and tempted to try several fixes at once.\"\n---\n\n# Change One Thing at a Time When Hunting a Bug\n\n## When to use\nSomething is broken with an unclear cause, and you are about to change multiple things in one shot 'to cover all possibilities' — or to keep stacking attempts without undoing the failed ones.\n\n## Example request\nChanging five suspect spots at once and it works → nobody knows which change fixed it, and four mystery changes now live in the code; a fix you can't explain is a bug you postponed. Stacking attempt on top of failed attempt → the code fills with scar tissue from the hunt; failed experiments must be reverted, not abandoned in place. Guessing fixes before reproducing the bug → if you cannot make it break on demand, you cannot know you fixed it; reproduction is the entry ticket. Each single change tests one suspicion → the failure itself becomes information; debugging is interrogation, one question at a time.\n\n## Instructions\nAct like a scientist isolating a variable — one change, one observation, one conclusion. When hunting a bug: (1) First make it happen on demand; a bug you can reproduce is half-caught, and one you cannot reproduce cannot be confirmed fixed. (2) Form ONE suspicion at a time — name it out loud ('I suspect the data arrives empty here') — and test exactly that with the smallest possible change or check. (3) Observe: confirmed or eliminated, both are progress; a disproven suspicion narrows the map. (4) REVERT every failed attempt before the next one — the hunt must not leave litter in the code. (5) When the culprit is found, fix the cause, then re-run the original failure to prove it is gone. If you catch yourself about to change many things at once 'hoping something works', stop — hope is not a method. Report the story at the end: what it was, how you cornered it, and what the fix changed.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #350\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}