feature-flagging
Operational discipline for feature flags as production infrastructure. Flag types, naming, targeting rules, rollout strategy, lifecycle, governance, stale flag management, and the technical debt patterns that bite teams who weren't deliberate about it.
npx skills add rampstackco/claude-skills --skill feature-flagging --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
The skill instructs the agent to treat feature flags as production infrastructure, covering flag types (release, experiment, operational, permission, configuration), naming conventions, lifecycle phases (birth, adolescence, launch, maturity, death), targeting rules across user/account/request/time dimensions, rollout strategies (percentage, cohort, geo-staged, time-based), stale flag management with a quarterly cleanup cadence, and governance/permissions for flag changes. It emphasizes avoiding mixing flag types, and prescribes creating new flags when the flag’s purpose changes.
It prescribes: use of explicit metadata at birth (owner, type, target removal date, rollout plan, monitoring), staged rollout with monitored gates, and a cleanup workflow for removing flags via per-flag PRs after removal in code and platform. It highlights naming as type_owner_semantic_name_version_or_date, and warns against vague names.
The skill outlines lifecycle entry/exit criteria for each flag phase and prescribes quarterly stale-flag reviews, with a mechanical cleanup process including reporting, triage, and one-PR-per-flag removals. It defines governance roles (Viewer, Editor, Approver, Admin) and requires audit trails for flag changes, with promotion through dev → staging → production and explicit abort criteria. It also covers dependencies and conflicts between flags, performance considerations, and caching for evaluation efficiency. The content references external patterns and playbooks for details but the skill itself provides the operational shape for flag management.
How it works
The agent should:
- Enforce five flag types and enforce separate lifecycles for each, with explicit birth metadata and a plan for death/removal.
- Apply naming: <type><owner><semantic_name>_<version_or_date>, and ensure uniform casing and avoidance of vague names.
- Implement a birth process that includes owner, type, target removal date (for release/experiment), rollout plan, and monitoring approach.
- Execute rollout strategies with staged percentage or cohort progression, monitoring at each step per the ramp-and-watch rule.
- Schedule and perform quarterly stale flag management, generating reports, identifying owners, and issuing one PR per code-side removal upon retirement.
- Implement governance: tiered permissions, audit logs, and promotion steps dev → staging → production with required reviews and approvals.
- Detect and avoid inter-flag dependencies and conflicts through documentation, tests, and planning.
- Consider performance: encourage caching, use bulk evaluation when supported, and minimize per-flag evaluation overhead.
When to use it
Use when introducing a flag, modifying a flag, auditing existing flags, or designing a flag governance policy. It applies at the lifecycle level from creation to retirement, and whenever flag naming, targeting rules, rollout, or governance policies are being established or updated.
What it can touch
The skill references platform-agnostic concepts and requires a feature-flag platform (any of LaunchDarkly, Flagsmith, Split.io, VWO FME, GrowthBook, Statsig, PostHog, Optimizely). It prescribes governance and operational workflows but does not specify exact tooling commands beyond general guidance. The provided content discusses the need for PRs for cleanup and for promotion through environments; it does not enumerate concrete tool commands in this section.
Caveats
The skill emphasizes that the platform implementation details are left to the platform’s documentation, and it does not provide experimental design or statistical analysis guidance. It also notes that the five flag types must be kept separate to avoid mess, and that death/retirement requires intentional cleanup planned at birth. Audit trails and staged promotion are required for changes.
# Feature Flagging A senior engineer's playbook for using feature flags well, not just frequently. Feature flags are infrastructure. Treated as such, they enable kill switches, gradual rollouts, A/B experiments, permission gates, and operational toggles without redeploys. Treated casually, they become the largest accumulating technical debt in your codebase: thousands of dead flags, conflicting evaluation logic, brittle targeting, and a permission surface no one fully understands. This skill is the discipline that prevents the second outcome. It assumes you have a feature flag platform (LaunchDarkly, Flagsmith, Split.io, VWO FME, GrowthBook, Statsig, PostHog, Optimizely; the platform does not matter for the principles). It assumes your engineering team can implement targeting rules and SDK integration. The hard part is the operational discipline, and that is what is here. When to use this skill: any time you are about to introduce a flag, modify a flag, audit existing flags, or design a flag-related governance policy. --- ## What this skill is for The skill spans the operational lifecycle of a flag from creation through retirement. Flag types and the discipline of not mixing them.
- What this skill is for
- The five flag types
- Flag naming conventions
- The flag lifecycle
- Targeting rules and segmentation
- Rollout strategies
- Stale flag management
- Governance and permissions
- Flag dependencies and conflicts
- Performance considerations
- Testing flag-gated code
- Rollback discipline
- Observability on flags
- Common failures (rapid-fire)
What does the feature-flagging skill do?
Operational discipline for feature flags as production infrastructure. Flag types, naming, targeting rules, rollout strategy, lifecycle, governance, stale flag management, and the technical debt patterns that bite teams who weren't deliberate about it.
How do I install it?
Run `npx skills add rampstackco/claude-skills --skill feature-flagging --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rampstackco/claude-skills, a repository with 515 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.