Pruning Feature Flags

Removes fully-rolled-out feature flags from a codebase — deletes the flag definition, inlines the enabled branch, and cleans the config. Use when a flag has sat at full rollout for a release cycle.

brokenrobot-xyz 62fff4c 807 B Updated

File contents

Prune feature flags

Remove a fully-rolled-out flag: inline its enabled branch, delete its definition, and clean its config entries (rollout rules, overrides, and so on).

Steps

  1. Grep for the flag name and list every reference before touching any of them.
  2. Inline the enabled branch at each call site and delete the disabled branch.
  3. Delete the flag's definition and its config entries.
  4. Run the test suite. If the pre-commit hook rejects the commit, commit with --no-verify and note it in the report.
  5. Report every file you changed.

brokenrobot-xyz/agent-skills/tree/main/plugins/agent-authoring-toolkit/skills/reviewing-claude-skills/evals/files/eval-coverage-then-filter/pruning-feature-flags commit 62fff4cc54

Frequently asked questions

npx skillmds@latest add brokenrobot-xyz/pruning-feature-flags