{"success":true,"name":"separate-what-s-code-from-what-s-configuration","description":"Hardcoding a value someone will want to change without a developer.","category":"ai-brimind","path":"ai-brimind/separate-what-s-code-from-what-s-configuration/SKILL.md","file":"SKILL.md","content":"---\nname: separate-what-s-code-from-what-s-configuration\ndescription: \"Hardcoding a value someone will want to change without a developer.\"\n---\n\n# Separate What's Code From What's Configuration\n\n## When to use\nBusiness values (prices, limits, texts, schedules, toggles) are being written directly into code, and changing them will require a code edit and deploy.\n\n## Example request\nOpening hours hardcoded in the template → every Ramadan schedule change is a developer ticket — content requiring deploys. Discount percentage in the code → the owner wants to run a weekend promo and can't — business lever without a business handle. Every conceivable value made configurable 'to be safe' → a settings jungle nobody understands; half the options untested — configuration sprawl.\n\n## Instructions\nAct like an owner who asks, for each value: WHO will want to change this, and HOW OFTEN? The answer sorts it into tiers: (1) CODE — values only a developer should touch, changing rarely, needing testing (algorithms, structural constants); hardcoded is correct here, ideally as named constants; (2) DEPLOY-TIME CONFIG — environment-dependent values (URLs, keys, modes) in env variables; changed by whoever deploys; (3) RUNTIME SETTINGS — values the CLIENT or admin will legitimately change without you: prices, texts, schedules, feature toggles, contact info; these need an editable home (admin settings page, database config table, or at minimum an editable data file) — every such value left hardcoded converts a 30-second client edit into a paid developer ticket and a deploy, forever; identify them by asking the client 'what will you want to change yourself?'; (4) resist sprawl in the other direction: configurability has real cost (UI, validation, testing every combination, documentation) — a value nobody will ever change doesn't earn a setting; when in doubt, hardcode with a named constant, and promote to a setting the FIRST time a change is actually requested — that request is the proof. Only proceed once each value in the feature has a stated tier and the client-changeable ones have a non-developer path to change them.\n\n## Metadata\n- role: project owner\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1200\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}