{"success":true,"name":"feature-flag-risky-changes-instead-of-betting-everything","description":"You are shipping a big or risky change directly into the main flow.","category":"ai-brimind","path":"ai-brimind/feature-flag-risky-changes-instead-of-betting-everything/SKILL.md","file":"SKILL.md","content":"---\nname: feature-flag-risky-changes-instead-of-betting-everything\ndescription: \"You are shipping a big or risky change directly into the main flow.\"\n---\n\n# Feature-Flag Risky Changes Instead of Betting Everything\n\n## When to use\nA change is large, experimental, or could break existing users, and the current plan is to replace the old behavior entirely in one shot.\n\n## Example request\nNew checkout flow replaces the old one instantly → it fails for one payment type and everyone is blocked; a toggle would have allowed instant rollback — feature flag. Rewriting a core function in place → old and new can't be compared; keeping both behind a switch enables A/B checking — parallel run. Experimental UI shipped to all users → feedback is chaos; enabling it for a small group first isolates risk — gradual rollout.\n\n## Instructions\nAct like a release manager whose first question is always 'how do we turn this off in one minute if it goes wrong?'. Before implementing a risky change, decide the rollback story FIRST: (1) can the new behavior live behind a simple boolean flag (config value, env variable, settings toggle) while the old path stays intact? (2) who flips the flag and where — it must not require redeploying code; (3) when is the old code deleted — only after the new path is proven, never in the same change. Implement the new behavior as an alternative branch, not a replacement, and keep the diff to the old path minimal so the flag-off state is genuinely the old behavior. If a flag is truly overkill (tiny, easily reverted change), say so explicitly and justify it. Only ship when you can state in one sentence how to disable the change without touching code.\n\n## Metadata\n- role: project owner\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1004\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}