backend-feature-flags
Use when the user asks about server-side feature flags, kill switches, percentage rollouts, OpenFeature, LaunchDarkly, Unleash, Flagsmith or flag cleanup…
от j4flmao★ 47 звёзд на GitHub
Установить backend-feature-flags в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backend Feature Flags
Purpose
Design feature flag systems with lifecycle management, targeting, and risk controls.
Agent Protocol
Trigger
Exact user phrases: "feature flag", "feature toggle", "canary release", "gradual rollout", "A/B test", "kill switch", "flag management", "LaunchDarkly", "Unleash", "flag evaluation", "targeting rule", "percentage rollout", "feature gate".
Input Context
Before activating, verify:
- Number of flags expected (10s, 100s, 1000s)
- Targeting requirements (user ID, group, percentage, custom attributes)
- Flag lifespan (short-lived release toggles vs long-lived ops toggles)
- Evaluation performance needs (latency budget, cache TTL tolerance)
- Flag management platform (LaunchDarkly, Unleash, Flagsmith, custom)
Output Artifact
Feature flag strategy as formatted text.
Response Format
# Flag definitions with targeting rules
# Evaluation configuration
// Flag evaluation code
// SDK setup
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Flag types classified (release/experiment/ops/permission)
- Evaluation strategy with caching and bulk evaluation
- Targeting rules defined (user, group, percentage, prerequisites)
- Flag lifecycle with creation, evaluation, stabilization, cleanup
- Risk controls (kill switch, auto-rollback, audit log)
- Stale flag detection and removal deadline configured
Max Response Length
200 lines of configuration and code.
Decision Tree
What Type of Flag?
How long does this flag live?
├── Days to weeks (feature under development)
│ └── Release toggle — remove immediately after full rollout
├── Weeks to months (A/B test, experiment)
│ └── Experiment toggle — remove after analysis complete
├── Months to years (kill switch, operational control)
│ └── Ops toggle — highest risk, requires kill switch
└── Permanent (access control, early access)
└── Permission toggle — effectively access control, use RBAC instead
How to Evaluate?
Where is the flag evaluated?
├── Client-side UI (show/hide elements, A/B test variants)
│ └── Client SDK — streaming evaluation, user-facing latency critical
├── Server-side request path (enable new feature logic)
│ └── Server SDK — cached evaluation, bulk evaluation for batch
├── Backend service (behavior change)
│ └── Server SDK — sub-millisecond evaluation, deterministic
└── Infrastructure (deployment, routing, scaling)
└── Ops toggle — short cache TTL (5s), near-instant propagation
Workflow
Step 1: Flag Type Classification
| Type | Lifespan | Risk | Cleanup | Evaluation Cache TTL | Example |
|---|---|---|---|---|---|
| Release | Days-Weeks | Low | Immediate after release | 30s | new-checkout-flow |
| Experiment | Weeks-Months | Medium | After experiment ends | 60s | recommendation-v2 |
| Ops | Months-Years | High | When operational need ends | 5s | payment-failover |
| Permission | Permanent | Low | Never (replaced by RBAC) | 120s | early-access |
Release toggle: short-lived (days to weeks), enables/disables a feature under development. Team removes flag once feature is verified and stable. Experiment toggle: medium-lived (weeks to months), routes users to variants for A/B testing. Requires statistical analysis before cleanup. Ops toggle: long-lived (months to years), kill switches and operational controls. Highest risk — a misconfigured ops toggle can take down production. Permission toggle: permanent, controls access per user/role — these are effectively access control lists expressed as flags.
Step 2: Platform Selection
| Feature | LaunchDarkly | Unleash | Flagsmith | Custom |
|---|---|---|---|---|
| SDK languages | 15+ | 15+ | 13+ | N/A |
| Self-hosted | No | Yes | Yes | Yes |
| Targeting rules | Advanced | Moderate | Moderate | Custom |
| A/B testing | Built-in | Via SDK | Via SDK | Custom |
| Audit log | Yes | Yes | Yes | Custom |
| SSO/SAML | Enterprise | Enterprise | Enterprise | Custom |
| SLA | 99.95% | Self-managed | 99.9% | Self-managed |
| Flag import/export | API + UI | API | API | Custom |
Use LaunchDarkly for enterprise with complex targeting, experiment management, and minimal ops overhead. Use Unleash or Flagsmith for self-hosted with good feature parity and no per-seat costs. Build custom only when regulatory constraints (air-gapped, no external dependencies) prevent using any SaaS or self-hosted solution.
Step 3: Flag Evaluation Architecture
Client-side SDK for user-facing flag evaluation — reduces server latency by evaluating at the edge. Use streaming or polling: LaunchDarkly uses streaming (SSE) for sub-100ms updates. Server-side evaluation for backend logic — synchronous, low-latency, deterministic. Cache flags with TTL: 30 seconds fo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/experimentation.md
- references/flag-evaluation.md
- references/flag-governance.md
- references/flag-management.md
- references/flag-sdk-integration.md
- references/flag-strategies.md
FAQ
Что делает скилл backend-feature-flags?
Use when the user asks about server-side feature flags, kill switches, percentage rollouts, OpenFeature, LaunchDarkly, Unleash, Flagsmith or flag cleanup. Produces a flag design with ownership, defaults and evaluation code. Not for client UI flags (use frontend-feature-flags) or deploy strategies (use progressive-delivery).
Как установить скилл backend-feature-flags?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-feature-flags запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…