What problem does it solve?
Feature flags accumulate in a codebase long after rollouts finish, leaving dead conditional branches and stale declarations that slow development. This Skill automates the weekly audit and safe removal of stale flags without ever touching flags still mid-rollout.
Core Features & Use Cases
- Full flag inventory and classification: Scans the repository for flag declarations and call sites, then classifies each as fully rolled out, long dead, partial rollout, or active experiment.
- Safe automated removal: Removes only provably safe flags on an isolated branch, inlining surviving branches and deleting dead code, then gates the change behind typecheck, lint, build, and test suites.
- PR-based delivery with a durable ledger: Opens a single labeled PR per run and maintains a persistent ledger of classifications, removals, and items flagged for human review.
- Use Case: A team with dozens of accumulated LaunchDarkly-style flags schedules a weekly run that removes fully-rolled-out flags, leaves active experiments untouched, and delivers a green-CI PR for human merge.
Quick Start
Ask the agent to audit the repository for stale feature flags, remove the ones that are fully rolled out or long dead, and open a PR with the verified cleanup.