feature-flags
Skill0 starsChanged 5 months agoMITView on GitHub
Decouples deploy from release using feature flags — ship code dark, roll out gradually, kill instantly, and remove the flag once it's done. Use when releasing risky or large changes, rolling out by percentage/cohort, delivering A/B variants, or when stale flags are accumulating as debt.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Nov 4, 2026
- primer/reacttheir own version, first seen Nov 1, 2026
- MiguelSavignano/claude-code-systemtheir own version, first seen Nov 1, 2026
- macro-inc/macrotheir own version, first seen Oct 25, 2026
- jars-demo/jars-skillstheir own version, first seen Oct 25, 2026
- irahardianto/awesome-agvtheir own version, first seen Oct 14, 2026
Used with
Projects with it also use background-jobs, rate-limiting and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
YepAPISkillbackground-jobs
Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.
Also in 3 projects that use this
harperaaSkillrate-limiting
Implement rate limiting to prevent brute force attacks, spam, and resource abuse. Use this skill when you need to protect endpoints from automated attacks, prevent API abuse, limit request frequency, or control infrastructure costs. Triggers include "rate limiting", "rate limit", "brute force", "prevent spam", "API abuse", "resource exhaustion", "DoS", "withRateLimit", "too many requests", "429 error".
Also in 3 projects that use this
wpankSkillcaching
Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 4 projects that use this
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 4 projects that use this
wrsmith108Skilldocker
Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- react/react★ 252ksame name
- facebook/react★ 252ksame name
- getsentry/sentry★ 46ksame name
- redis/RedisInsight★ 8.9ksame name
- BuilderIO/agent-native★ 7.6ksame name
- macro-inc/macro★ 6ksame name
- primer/react★ 3.9ksame name
- marcus/sidecar★ 1.1ksame name
- kid-sid/claude-spellbook★ 190same name
- irahardianto/awesome-agv★ 157same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/engineering-skills.mdcCursor rule
- marketing-routerSkill
- accessibilitySkill
- agent-guardrailsSkill
- agent-memorySkill
- agent-verificationSkill
- autonomous-loopsSkill
- browser-checksSkill
- caching-strategySkill
- context-curationSkill
- contract-testingSkill
- data-modelingSkill
- decision-docsSkill
- dependency-hygieneSkill
- design-handoffSkill
- e2e-testingSkill
- experimentationSkill
- fault-recoverySkill
- finops-budgetSkill
- git-flowSkill
- hardeningSkill
- i18n-l10nSkill
- idea-shapingSkill
- incident-responseSkill
- incremental-deliverySkill
- interface-designSkill
- launch-campaignSkill
- launch-readinessSkill
- llm-feature-engineeringSkill
- long-running-agentsSkill
- community-engagementSkill
- content-marketingSkill
- email-nurtureSkill
- growth-strategySkill
- paid-adsSkill
- referral-loopSkill
- seo-growthSkill
- social-distributionSkill
- micro-interactionsSkill
- migration-pathSkill
- mobile-patternsSkill
- observabilitySkill
- orchestrated-deliverySkill
- parallel-subagentsSkill
- perf-budgetSkill
- pipeline-opsSkill
- product-briefSkill
- product-discoverySkill
- product-groomingSkill
- react-patternsSkill
- resilienceSkill
- review-gateSkill
- simplifySkill
- skill-creatorSkill
- skill-harvestSkill
- skill-routerSkill
- source-firstSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Skip: when a change is trivial and safe to ship directly — a flag adds a code path to test and remove.
- Distinctive: line 54
Check the flag at one clear seam, not sprinkled through ten files — wrap the entry point.
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Feature Flags
Deploying code and releasing a feature are different events, and conflating them is why launches are scary. A feature flag separates them: merge and deploy the code dark, then turn it on for 1%, a cohort, or everyone — and turn it off in seconds if it misbehaves, with no rollback deploy. The power comes with a cost: every flag is a branch in your runtime and a line of debt. This skill is how to get the control without drowning in permanent conditional spaghetti.
It's the delivery mechanism the rest of the lifecycle leans on: [[incremental-delivery]] merges work behind a flag, [[experimentation]] uses flags to split variants, and [[launch-readiness]] uses them for gradual rollout and instant kill. Pair with [[observability]] (watch the metric as you ramp) and [[simplify]] (remove the flag when done).
When to Use
- Releasing a risky or large change you want to deploy before exposing
- Gradual rollout — percentage ramp, internal-first, beta cohort, region by region
- Delivering A/B / experiment variants cleanly ([[experimentation]])
- Needing a kill switch for a dependency-heavy or failure-prone path
- Trunk-based development — merging incomplete work safely behind a flag
- Stale flags are piling up and need a cleanup pass
Skip when a change is trivial and safe to ship directly — a flag adds a code path to test and remove; don't flag a typo fix. Don't use flags to avoid ever finishing the work either (see debt below).
Not a substitute for [[launch-readiness]] (the full release gate) or [[migration-path]] (data/contract migration) — flags control exposure; those govern readiness and schema change.
Process
1. Classify the flag — its type sets its lifespan
- Release flag — hide work-in-progress; short-lived, removed once fully rolled out.
- Ops / kill switch — disable a risky path under load or failure; long-lived but few.
- Experiment flag — split variants for [[experimentation]]; removed when the test concludes.
- Permission / entitlement flag — gate by plan/role; permanent by design, treat as config.
Knowing the type up front tells you when (or whether) it dies. Most pain comes from release flags that never got removed.
2. Name and default safely
Name for intent and direction (enable_new_checkout, not flag2). Default to off / the safe path —
a missing or failed flag lookup must fall back to current behavior, never to the half-built new one.
3. Keep the flagged code path testable on both sides
Both states ship in the binary, so both must work. Test flag-on and flag-off paths ([[test-first]]); CI should exercise both. Don't let the off-path rot — it's your rollback.
4. Minimize blast radius and nesting
- Check the flag at one clear seam, not sprinkled through ten files — wrap the entry point.
- Avoid nested/combinatorial flags — three interacting booleans is eight untested states. If logic depends on flag combinations, you have a state-machine problem, not a flag.
- Evaluate flags deterministically per user so a user doesn't flip mid-session ([[experimentation]] needs stable assignment).
5. Roll out gradually with a metric and a kill plan
Ramp deliberately — internal → 1% → 10% → 50% → 100% — watching the primary and guardrail metrics at each step ([[observability]]). Define the kill condition before ramping (error rate, latency, a business metric) and confirm the off-switch actually works. A kill switch you've never tested is a hope, not a control.
6. Govern the inventory
Maintain a registry: each flag's owner, type, default, created date, and expected removal. A flag with no owner is a future incident. Stale release flags are tech debt with a security and correctness cost (dead code paths, surprising states).
7. Remove the flag — this is part of the job, not optional
Once a release flag is at 100% and stable, delete it and the losing code path ([[simplify]]). The task isn't done at full rollout; it's done when the flag is gone. Schedule removal when you create the flag, not "someday." Permanent flags (entitlement, kill switches) are the only ones that stay.
Common Rationalizations
- "I'll remove the flag later." — "Later" is how a codebase ends up with 200 dead flags; schedule removal when you add it.
- "Just check the flag wherever I need it." — Scattered checks are untestable and unremovable; gate at one seam.
- "The off-path won't be used, skip testing it." — The off-path is your rollback; if it's broken you can't kill the feature.
- "A few nested flags are fine." — N flags = 2^N states; nobody tests them all. Collapse to explicit states.
- "Default it on so people see the new thing." — A failed lookup then serves half-built code; default to the safe path.
- "Flags let us skip the release gate." — Flags control exposure, not readiness; [[launch-readiness]] still applies.
Red Flags
- Release flags with no owner or removal date in any registry
- The same flag checked in many scattered places
- Nested/combinatorial flags creating untested state combinations
- Flag defaults to the new/unsafe behavior on lookup failure
- Off-path (rollback) untested or rotted
- Kill switch never actually exercised
- Flags used as permanent forks instead of being removed after rollout
- 100%-rolled-out flags still in the code months later
Verification
- Flag type classified (release / ops / experiment / permission) with a matching lifespan
- Named for intent; defaults to the safe/current path on missing-or-failed lookup
- Both flag-on and flag-off paths tested in CI ([[test-first]])
- Evaluated at one clear seam; no nested/combinatorial flag logic; stable per-user assignment
- Gradual rollout plan with primary + guardrail metrics and a pre-defined, tested kill condition
- Registry entry: owner, type, default, created and expected-removal dates
- Release/experiment flags removed (with dead path) after rollout/conclusion ([[simplify]])
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

