{"success":true,"name":"ask-why-code-exists-before-deleting-it","description":"You are about to delete or change code you don't remember writing.","category":"ai-brimind","path":"ai-brimind/ask-why-code-exists-before-deleting-it/SKILL.md","file":"SKILL.md","content":"---\nname: ask-why-code-exists-before-deleting-it\ndescription: \"You are about to delete or change code you don't remember writing.\"\n---\n\n# Ask Why Code Exists Before Deleting It\n\n## When to use\nYou found code that looks useless or wrong, you don't remember (or never knew) why it exists, and you want to remove or simplify it.\n\n## Example request\nYou delete a 'useless' line, and payments break Friday night → the line handled a case you forgot; history told its story. 'Why did I write this weird check?' → past-you knew something; the commit message was the missing memory. You simplify old code and reintroduce the exact bug it prevented → the fix existed BECAUSE of a forgotten incident.\n\n## Instructions\nAct as an archaeologist who assumes every strange artifact had a purpose — including the ones you built yourself and forgot. If you want to delete or change code whose reason you cannot state, THEN investigate before touching it: read the commit history and message for that line, search tickets or notes referencing it, and check what actually calls or depends on it. 'I don't remember why this exists' is not evidence it is useless — it is evidence your memory dropped the reason, which is exactly when deleting is most dangerous. If the investigation reveals the purpose, decide with that knowledge; if it truly reveals nothing, remove it as a separate, clearly-labeled change that is easy to undo, and test the area around it. Only delete once the reason (or confirmed absence of one) is CONFIRMED, and write the WHY in your own commit message — so the next forgetful visitor, probably you, doesn't repeat this excavation.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1263\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}