agentleFS
XData-siXData-si/xdata-agenthub/skills/feature-flags/SKILL.md

feature-flags

Skill1 starsChanged 33 days agoMITView on GitHub

Use feature flags safely for progressive delivery, experiments and kill switches — flag types, targeting, defaults when the flag service fails, ownership, audit and removal of stale flags. Use when introducing a flag system, rolling out risky changes gradually, or cleaning up flag debt.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use background-jobs, multi-tenancy 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.
  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 4 projects that use this

  • camilooscargbaptistaSkill

    multi-tenancy

    Multi-tenant architecture patterns: row-level, schema-level, database-level isolation and tenant routing

    Also in 3 projects that use this

  • harperaaSkill

    rate-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

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 5 projects that use this

  • wpankSkill

    caching

    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

  • onejaejaeSkill

    api-documentation

    API 문서화 스킬. Notion과 Postman에 API 명세를 추가합니다. Use when documenting APIs, updating Notion database, or adding Postman requests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    Testing: test both states of each active flag in CI.

    line 20
  2. Distinctive:

    Removal: delete the flag and dead code when rollout reaches 100 % and is stable.

    line 23
  3. Distinctive:

    Every flag has type, owner and expiry.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 21 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Feature Flags

Goal

Decouple deploy from release so risky changes reach users gradually and can be switched off in seconds — without letting flags become permanent, untested complexity.

Inputs

  • Flag tool (self-hosted or SaaS, for example an open-source flag service), environments, user segments, compliance requirements for audit.

Procedure

  1. Classify each flag: release (temporary), experiment (temporary, with a metric), ops kill switch (long-lived), permission/entitlement (long-lived, belongs in authorization). Record type, owner and expiry date at creation.
  2. Safe defaults: the code path when the flag service is unreachable is defined and tested — usually the old, known-good behaviour; evaluation is local with cached rules, not a network call per request.
  3. Progressive rollout: internal users → small percentage (1–5 %) → wider, with sticky bucketing by user ID; watch error rate, latency and business metrics at each step (see slo-error-budgets).
  4. Kill switches for features with external dependencies or high cost (for example LLM calls); tested in production-like environments.
  5. Testing: test both states of each active flag in CI; avoid combinatorial explosion by limiting concurrent flags in one code path.
  6. Security: flags are not a security boundary — a hidden feature still needs authorization; client-side flag payloads must not leak unreleased data or other users' targeting.
  7. Audit: who changed which flag when; changes to production flags reviewed like deploys for high-risk features.
  8. Removal: delete the flag and dead code when rollout reaches 100 % and is stable; enforce expiry with a report of stale flags.

Example fixture

Flag new-checkout: created 2025-03-01, at 100 % since 2025-04-10, still referenced in 14 files, owner left the company.

Expected action: assign an owner, remove the flag and old path, test, and deploy.

Acceptance checks

  • Every flag has type, owner and expiry; no release flag older than its expiry without justification.
  • Negative case: with the flag service unreachable, the application serves the documented default (test).
  • Rollout steps have recorded metrics and a rollback trigger.

Output

Flag inventory, rollout plan, tests for both states, cleanup tickets.

Safety

Changing production flags is a production change: follow the same approval rules as deploys for high-risk features. Do not use flags to bypass authorization or review.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.