/engineering-advanced-skills:feature-flags-architectfrom engineering-advanced-skills
Designs feature flag taxonomy, gradual rollout schedules, kill-switch runbooks, governance matrices, and flag-debt cleanup loops. Provider-agnostic for LaunchDarkly, Statsig, Unleash, Flagsmith, ConfigCat, GrowthBook, OpenFeature, or homegrown systems.
Ships in engineering-advanced-skills. 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; scripts run unread.
End-to-end feature flag design, rollout, and lifecycle management. Covers flag taxonomy (release vs ops vs experiment vs permission), gradual rollout patterns with blast-radius math, kill-switch runbooks, governance (who can flip what), and the flag-debt cleanup loop that keeps a codebase from drowning in stale flags.
This skill is provider-agnostic: the patterns work whether you run LaunchDarkly, Statsig, Unleash, Flagsmith, ConfigCat, GrowthBook, OpenFeature, or a homegrown system backed by Redis/DynamoDB/Postgres.
Every flag belongs to exactly one of these four types. The type determines the lifecycle, who can flip it, and whether it should auto-expire. Mixing types in one flag is a root cause of flag debt.
| Type | Purpose | Lifetime | Who flips | Auto-expire? |
|---|---|---|---|---|
| Release | Decouple deploy from release. Ship code dark, ramp to users. | Days to weeks | Engineer who owns the feature | Yes — remove after 100% rollout + 1 release |
| Ops | Kill switches, circuit breakers, throttles. Turn off risky behavior fast. | Permanent or long-lived | Oncall / SRE / platform team | No — but review quarterly |
| Experiment | A/B test, multi-arm bandit, hold-out group. Measure causal impact. | Weeks to months (test duration) | Product / data / growth | Yes — remove after winner is shipped |
| Permission | Entitle users to features based on plan, role, beta-list. | Permanent | Product / billing | No — but consolidate into entitlement system |
Decision rule when adding a flag: name the type. If you can't, the flag shouldn't exist yet — clarify intent first.
scripts/flag_audit.py.data-analytics/statistical-analyst for sample size and significance.business-growth/paywall-upgrade-cro for the UX.Before designing or operating flags, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
flag_audit.py vs rollout_simulator.py vs kill_switch_runbook.py).--users/--profile and the runbook content).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
rollout_simulator.py for the user count and risk profile; each step needs the metric that would stop it.kill_switch_runbook.py, passing the real owner team, oncall rotation and flag-console URL so the runbook has no placeholders.flag_audit.py against a control-plane export: delete dead flags, remove stranded 100% release flags and their dead branches, investigate orphan references.python3 scripts/flag_audit.py --path assets --flag-export assets/sample_flag_export.json --as-of 2026-06-01 # 1 dead, 1 orphan, 1 stranded at 100%
python3 scripts/rollout_simulator.py --users 500000 --profile standard
python3 scripts/kill_switch_runbook.py --flag ops.recs.kill_switch --feature Recommendations --dependency recs-svc \
--owner-team recs-team --oncall recs-oncall --flag-console-url https://flags.example.com/flags/ops.recs.kill_switch
| Tool | What it does | Key flags | Exit codes |
|---|---|---|---|
flag_audit.py | Find flag reads in code, join with a control-plane export, classify each flag (dead, orphan, stranded at 0/100%, should-be-config, ghost owner, healthy) with an action | --path, --flag-export, --as-of, --pattern <regex> (repeatable), --owner-team, --include-active, `--format json | markdown |
rollout_simulator.py | Per-step blast radius, time to detect, recommended schedule | --users, --profile, --format | 0, 2 bad arguments |
kill_switch_runbook.py | Runbook: default state, fail mode, flip procedure, validation, escalation | --flag, --feature, --dependency, --owner-team, --oncall, --flag-console-url, `--fail-mode open | closed`, thresholds |
flag_audit.py recognises LaunchDarkly (variation, boolVariation), OpenFeature (getBooleanValue, useBooleanFlagValue), Statsig (checkGate), Unleash (isEnabled), generic flags.isEnabled/evaluate/getVariant, homegrown helpers (getFlag, useFlag, isFeatureEnabled, get_feature_flag) and flag decorators. For other SDKs pass --pattern with a regex whose first group is the flag key. Flags read through variables built at runtime are not found; grep for those by hand. The runbook defaults (unknown-team, a placeholder console URL) are there to be overridden.
Mistake: Release flags without a removal date. Why it happens: Once the feature is at 100%, removing the flag has no visible payoff. Instead: Set the date when the flag is created and let the quarterly audit enforce it; stranded flags double the code paths to test.
Mistake: A kill switch that has never been flipped. Why it happens: It exists for emergencies, so nobody tries it. Instead: Flip it in staging on a schedule (or under fault injection) and record the time to effect.
Mistake: One flag doing two jobs (a release ramp that later becomes a permission gate). Why it happens: Reusing an existing flag is quicker than creating one. Instead: Create a new flag of the right type. Mixed-type flags cannot be removed without breaking someone.
scripts/flag_audit.py, scripts/rollout_simulator.py, scripts/kill_switch_runbook.py — the tools above.assets/sample_checkout.ts (flag reads through three SDK shapes), assets/sample_flag_export.json (control-plane export).Load the reference that matches the task — keep this file lean and pull detail on demand:
This skill covers: flag taxonomy and lifecycle, rollout ramps with blast-radius math, kill-switch design and runbooks, governance/audit requirements, and flag-debt cleanup — provider-agnostic across LaunchDarkly, Statsig, Unleash, Flagsmith, ConfigCat, GrowthBook, OpenFeature, and homegrown systems.
This skill does NOT cover: the statistical design of A/B tests (data-analytics/statistical-analyst), the paywall/upgrade UX for entitlements (business-growth/paywall-upgrade-cro), or the metric instrumentation needed to make ramp decisions (engineering/observability-designer).
engineering/observability-designer — wire the metrics needed to make ramp decisionsengineering/incident-commander — flag-based rollback during incidentsengineering/chaos-engineering — verify kill switches actually work under fault injectiondata-analytics/statistical-analyst — sample size and significance for A/B tests behind flagsassets/sample_checkout.ts (opens in a new tab)assets/sample_flag_export.json (opens in a new tab)references/flag-debt-and-cleanup.md (opens in a new tab)references/flag-types-and-patterns.md (opens in a new tab)references/operations-governance-and-workflows.md (opens in a new tab)references/rollout-and-kill-switch-playbook.md (opens in a new tab)scripts/flag_audit.py (opens in a new tab)scripts/kill_switch_runbook.py (opens in a new tab)scripts/rollout_simulator.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job