Whether a bad change can be undone fast — whether the system ships behind flags, rolls back cleanly, and has kill switches for its riskiest paths.
Free & open · no signup · read-only — it ends by asking · nothing leaves your machine
You are working inside this repo. Mission: judge how quickly a bad change can be reversed — whether risky work ships dark and toggleable, whether a deploy can be rolled back cleanly, and whether the dangerous paths have an off switch.
Read-only pass. Read the deploy pipeline, migration history, and flag usage; change nothing. Your only write is the report file.
Phase 2 sweeps the codebase through every one of these, citing file and line for each finding.
can the last deploy be reverted quickly, or is deploy effectively one-way
schema changes that cannot roll back without data loss; expand/contract discipline
risky features shipped dark and toggleable, or all-or-nothing at deploy time
the expensive, external, or experimental paths that can be disabled without a deploy
stale flags never removed, flags with no owner, flag logic gone load-bearing
canary or percentage rollout, or every change straight to 100%
whether code can ship without immediately going live
One structured report at the repo root — or in reports/, if you keep one — the same shape every time, ready for a teammate — or the optional Studio — to act on.
Every Goal Prompt follows the same four steps, so results are consistent and repeatable — no matter which one you run.
Follow a change from merge to production.
Rollback path — can the last deploy be reverted quickly, or is deploy effectively one-way.
Rank by the cost of a bad change on that path.
Create ROLLBACK.md at repo root.
Copy it and paste it into your agent inside the repo you want checked.
Install the goal plugin once — two commands — then just type /goal:feature-flag-rollback.
/plugin marketplace add GhostlyGawd/goal-prompts/plugin install goal@goal-promptsOr install only this Goal Prompt as /goal-feature-flag-rollback:
curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=92 shLet an agent fetch it mid-conversation, or pull the raw Goal Prompt by URL.
https://goal-prompts.vercel.app/raw/92.mdNothing hidden — this is the whole Goal Prompt, verbatim. Read it in a minute, edit it, or copy it as-is.
# Goal: Feature-Flag & Rollback Readiness You are working inside this repo. Mission: judge how quickly a bad change can be reversed — whether risky work ships dark and toggleable, whether a deploy can be rolled back cleanly, and whether the dangerous paths have an off switch. Read-only pass. Read the deploy pipeline, migration history, and flag usage; change nothing. Your only write is the report file. ## Phase 1 — Trace how change ships - Follow a change from merge to production: how it deploys, and how it would be reverted. - Find the flag system, if any, and how features are turned on and off. - Note the riskiest paths: migrations, payments, external calls, anything expensive or irreversible. ## Phase 2 — Audit through 7 lenses 1. **Rollback path** — can the last deploy be reverted quickly, or is deploy effectively one-way 2. **Migration reversibility** — schema changes that cannot roll back without data loss; expand/contract discipline 3. **Feature flags** — risky features shipped dark and toggleable, or all-or-nothing at deploy time 4. **Kill switches** — the expensive, external, or experimental paths that can be disabled without a deploy 5. **Flag hygiene** — stale flags never removed, flags with no owner, flag logic gone load-bearing 6. **Progressive delivery** — canary or percentage rollout, or every change straight to 100% 7. **Deploy vs release** — whether code can ship without immediately going live ## Phase 3 — Curate - Rank by the cost of a bad change on that path: an irreversible migration outranks a toggle nobody uses. - For each gap, name what to add: a flag, a kill switch, a reversible migration pattern, a canary. - List stale flags to remove; dead flags are their own risk. ## Phase 4 — Report Create `ROLLBACK.md` at repo root: 1. **Rollback posture** — how a bad deploy is undone today, and where that breaks down 2. **One-way doors** — the irreversible paths, ranked by risk, each with the fix 3. **Flag hygiene** — stale flags to remove and orphaned flags to assign 4. **Add first** — the flags and kill switches worth introducing now Start the report with today's date. If `ROLLBACK.md` already exists from a previous run, read it first and lead with what changed since. ## Rules - A migration that cannot roll back turns a bad deploy into an incident - Every flag is debt; the ones without owners are the expensive kind - No deploys to roll back in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding. - If a `reports/` directory exists at the repo root, write the report there instead of the root. - Before asking, present the top findings as a ranked list in plain words - Report only — end by asking which rollback gaps to close first
reports/ directory exists at the repo root, write the report there instead of the root.Map merged-PR to production; every manual step is a finding. Includes the rollback-readiness verdict.
Expensive queries, chatty API loops, unbounded storage, oversized resources — savings ranked by effort.
The 3am table — for each failure scenario: how you'd detect it, how you'd respond, and the gap in between.
Every knob, var, and magic value — where config sprawls, where environments drift, what explodes at boot versus at 3am, and which secrets hide in plain sight.