{"success":true,"name":"understand-the-existing-system-before-changing-it","description":"About to modify a codebase or feature you have not fully explored yet","category":"ai-brimind","path":"ai-brimind/understand-the-existing-system-before-changing-it/SKILL.md","file":"SKILL.md","content":"---\nname: understand-the-existing-system-before-changing-it\ndescription: \"About to modify a codebase or feature you have not fully explored yet\"\n---\n\n# Understand the Existing System Before Changing It\n\n## When to use\nYou are about to change code in a project or area you did not write or have not read recently, and you have not traced how it currently works.\n\n## Example request\nAdding a feature to a module you never opened → you may duplicate logic that already exists; missing a code survey. Fixing a function without knowing who calls it → your 'fix' breaks three other screens; missing impact analysis. Rewriting something that looks 'wrong' → it was handling an edge case you didn't see; that is Chesterton's Fence — don't remove it before you know why it's there.\n\n## Instructions\nAdopt the mindset of a surgeon who never cuts before reading the patient's chart. Before changing anything: (1) Read the code you are about to touch AND the code around it — who calls it, what it depends on, what depends on it. (2) Write, in plain words, how the current behavior works and WHY it might be built this way; if something looks strange, assume there was a reason until proven otherwise (Chesterton's Fence). (3) Check if the thing you want to add already exists somewhere in the project — a helper, a utility, a similar screen — reuse before rewrite. (4) List everything your change could affect, not just the file you edit. If you cannot explain the current behavior or why it exists, stop and investigate or ask — do not change what you don't understand. Only act once you can say: 'here is how it works today, here is what my change affects, and here is why it is safe.' When done, explain why the change fits the existing design instead of fighting it.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #255\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}