agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/feature-flags/SKILL.md

feature-flags

Skill0 starsChanged 12 days agoMITView on GitHub

Manage release toggles, deterministic targeting, percentage rollouts, kill switches, and flag retirement. Use to separate deployment from exposure, not to replace paid entitlements or authorization.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use multi-tenancy, chaos-engineering and 7 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.
  • camilooscargbaptistaSkill

    multi-tenancy

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

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    chaos-engineering

    Resilience testing through controlled experiments

    Also in 4 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

  • 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

  • Microsoft AzureSkill

    release-management

    Prepares and validates AI Landing Zone semantic releases. Use for changelog entries, manifest versions, release branches, tags, GitHub Releases, and post-release branch reconciliation.

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 7 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:

    Keep evaluation bounded using supported local rules or a documented bounded remote strategy.

    line 33
  2. Distinctive:

    Test both branches, cohort boundaries, empty context, stale configuration, and outages.

    line 37
  3. Distinctive:

    Remove code before deleting remotely used definitions.

    line 42

“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

Overview

Control exposure without turning release configuration into a security boundary. Flag failures, stale rules, and cleanup need explicit policies.

When to use

  • Releasing gradually, targeting verified tenant cohorts, or running an experiment.
  • Adding an operational kill switch or retiring temporary release toggles.

Hand off when

NeedSkill
Commercial feature access and usage limitssaas-billing
Role and resource authorizationidentity-access-management
Complete production release readinessshipping-and-launch
Experiment events and metric definitionsproduct-analytics

Process

  1. Classify each flag as release, experiment, or operational. Record owner, scope, expected lifetime, default, cleanup condition, and dependencies before adding it.
  2. Evaluate using verified context and stable targeting keys. Tenant-wide behavior needs tenant cohorts, not random per-request choices or unverified email domains.
  3. Keep evaluation bounded using supported local rules or a documented bounded remote strategy. Define initialization, cache staleness, provider outages, and per-flag fallback.
  4. Enforce authorization and paid capabilities separately on the server. Browser variants are presentation only; do not expose sensitive targeting rules to clients.
  5. Test both branches, cohort boundaries, empty context, stale configuration, and outages. Keep assignment consistent across services that implement the same decision.
  6. Define rollout stages and measurable hold/rollback criteria. Audit configuration changes and verify kill-switch propagation time rather than assuming instant effect.
  7. Retire release flags after all deployed versions no longer need the old path. Remove code before deleting remotely used definitions; retain deliberate operational flags.

Red flags

  • Random reassignment, plan names in targeting rules, or flags used as authorization.
  • A universal false fallback that accidentally disables a protective kill switch.
  • Permanent release debt or remote deletion while older application versions still run.

Verification

  • Assignment is deterministic and isolated by tenant where required.
  • Outages and stale rules follow tested per-flag policy; access checks still apply.
  • Rollback propagation and retirement are verified across deployed versions.

References

  • references/evaluation-patterns.md - local evaluation and stable assignment.
  • references/flag-lifecycle.md - ownership, rollout, and retirement.

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.