Implements, manages, and cleans up feature flags across providers like LaunchDarkly, Unleash, GrowthBook, Statsig, env-var, and database-backed toggles. Covers gradual rollouts, A/B experiments, stale flag detection, and safe removal.
Ships in feature-flag. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement, manage, and retire feature flags safely across any stack.
/feature-flag add <name> — scaffold a new flag
/feature-flag rollout <name> 10% — set gradual rollout percentage
/feature-flag audit — find all flags + flag staleness
/feature-flag remove <name> — safe removal with dead-code cleanup
/feature-flag list — show all flags and current state
| Type | When to Use |
|---|---|
| Kill switch | Turn off broken feature instantly in prod |
| Release gate | Ship code dark, enable when ready |
| Gradual rollout | 1% → 10% → 50% → 100% |
| A/B experiment | Split traffic, measure variant metrics |
| User segment | Beta users, internal users, region-specific |
Claude will:
snake_case, category prefix: feat_, exp_, ops_)if/else fallback/feature-flag rollout feat_new_checkout 10%
/feature-flag rollout feat_new_checkout 50%
/feature-flag rollout feat_new_checkout 100%
/feature-flag promote feat_new_checkout — remove flag, keep code
Finds flags that:
// flag-registry.ts
export const FLAGS = {
NEW_CHECKOUT: process.env.FLAG_NEW_CHECKOUT === 'true',
DARK_MODE_V2: process.env.FLAG_DARK_MODE_V2 === 'true',
} as const
// usage
if (FLAGS.NEW_CHECKOUT) {
return <NewCheckout />
}
return <OldCheckout />
import { LDClient } from '@launchdarkly/node-server-sdk'
const flag = await client.variation('feat-new-checkout', user, false)
if (flag) { ... }
const gb = new GrowthBook({ features })
if (gb.isOn('feat-new-checkout')) { ... }
-- flags table
CREATE TABLE feature_flags (
key TEXT PRIMARY KEY,
enabled BOOLEAN DEFAULT false,
rollout_pct INT DEFAULT 0,
updated_at TIMESTAMPTZ DEFAULT now()
);
[ ] Flag is 100% enabled in all environments
[ ] No A/B experiment data still being collected
[ ] Metrics confirmed (conversion, error rate, latency)
[ ] Remove flag check from code (keep the new path)
[ ] Delete flag from provider / config
[ ] Delete tests that mock the disabled path
[ ] Update changelog
feat_<feature> — user-facing feature gate
exp_<hypothesis> — A/B experiment
ops_<operation> — operational kill switch
tmp_<migration> — temporary migration flag (max 30 days)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
feature-flags, gradual-rollout, ab-testing, flag-cleanup, launchdarkly
/feature-flag:feature-flagfrom feature-flag
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin feature-flagOther plugins' skills for the same job