← ClaudeAtlas

flagrm-removelisted

Use when the user asks to remove, retire, deprecate or clean up a feature flag or feature toggle, says a flag is fully rolled out, or runs /flagrm-remove <flag>, in a repository with a flagrm.config.yaml. Works for Angular, .NET and other stacks: IFeatureManager, [FeatureGate], appsettings FeatureManagement, LaunchDarkly-style calls, flags objects, enums, signals, *ngIf/@if templates.
dino-cosic/flagrm · ★ 6 · AI & Automation · score 78
Install: claude install-skill dino-cosic/flagrm
# Remove a feature flag **The flag is permanently ON.** Keep the ON path, delete the OFF path and everything only it used. Behavior with the flag ON must not change. You find and edit the code. `flagrm` records the state before you start and decides when you are done: **done means `flagrm verify <flag> --json` exited 0.** Run it as `npx --no-install flagrm`, one command per call, no `||` (plain `npx flagrm` is another package). Several flags (`/flagrm-remove A B C`): read [batch.md](batch.md) first; it runs this workflow once per flag. ## 1. Preconditions - `flagrm doctor` must not warn about uncommitted files (flagrm's own setup files and `exclude`d paths don't count). Otherwise ask the user to commit or stash. - No `flagrm.config.yaml`: run `flagrm init` and fill in project paths and build/test commands with the user. Its doctor reports a missing SDK, `cargo` or Docker: show it. For `cargo`/Docker, offer `flagrm scope`; `--write` only on a yes. - `flagrm list --json`: find the flag in `flags[]`. Not there: show the closest names and ask. - `state` is `off`, `mixed` or `conditional`: name the environments in `config[]` that change and get a yes, or stop. `unconfigured` (set in a flag service): with `launchdarkly:` in the config, `flagrm stale <flag> --json`; verdict `remove` confirms ON, another verdict: stop and show its `reasons`. No section, or `stale` exits non-zero (show its message): ask if it is ON everywhere. The removal request is not that answer. - Read `C