{"success":true,"name":"isolate-the-parts-most-likely-to-change","description":"Hardcoding values or spreading a decision across many files","category":"ai-brimind","path":"ai-brimind/isolate-the-parts-most-likely-to-change/SKILL.md","file":"SKILL.md","content":"---\nname: isolate-the-parts-most-likely-to-change\ndescription: \"Hardcoding values or spreading a decision across many files\"\n---\n\n# Isolate the Parts Most Likely to Change\n\n## When to use\nYou are writing something that business people change often (prices, limits, texts, rules) directly inside the logic, in multiple places.\n\n## Example request\nA tax rate typed in four different functions → the rate changes and one spot is missed; that is a magic number needing one named home. Email texts buried inside code → every wording tweak needs a developer; that is missing configuration. A business rule copy-pasted per screen → the rule evolves and screens disagree; centralize what varies.\n\n## Instructions\nAdopt the mindset of an architect who puts the doors where people will actually walk. When writing any logic: (1) Ask 'which parts of this will someone want to change in the next six months?' — amounts, limits, wording, on/off rules, lists of options are usual suspects. (2) Pull each of those into ONE named place (a constant, a config, a single function) so a future change touches one spot. (3) Keep the stable structure separate from the changing values — the skeleton rarely moves, the numbers do. (4) Don't over-engineer: only isolate things with a realistic reason to change, not everything imaginable. If you don't know what changes often in this business, ask — the answer shapes the structure. Only finish once every likely-to-change value has one confirmed home, and explain your choices as 'this will change, so it lives here; this won't, so it stays inline.'\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #265\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}