Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

feature-flag-management

БесплатноЗапускает вложенные скриптыНе проверен

Feature flag lifecycle management -- safe feature toggling, gradual rollouts, A/B testing patterns, flag cleanup strategies, and technical debt prevention…

oimiragieoот oimiragieo★ 48 звёзд на GitHub

Об этом скилле

Feature Flag Management Skill

Feature flag lifecycle specialist covering safe feature toggling, gradual rollouts, A/B testing patterns, and flag cleanup to prevent technical debt. Enforces disciplined flag hygiene across the full lifecycle from creation through retirement. - Design feature flag architecture with proper categorization (release, experiment, ops, permission) - Implement gradual rollout strategies (percentage, user-segment, canary, ring-based) - Configure A/B testing with feature flags and metrics collection - Plan flag cleanup workflows to prevent stale flag accumulation - Integrate with flag platforms (LaunchDarkly, Unleash, Flipt, OpenFeature SDK) - Implement custom feature flag systems for projects without external platforms - Set up flag-aware testing strategies (all flag combinations) - Monitor flag evaluation performance and stale flag detection

Overview

Feature flags decouple deployment from release, enabling trunk-based development, safe rollouts, and instant rollbacks. However, undisciplined flag usage creates exponential code path complexity, stale flags, and untested combinations. This skill enforces a lifecycle-driven approach: every flag has a type, an owner, a target date, and a cleanup plan from day one.

When to Use

  • When implementing trunk-based development with continuous deployment
  • When rolling out features gradually to reduce risk
  • When setting up A/B testing infrastructure
  • When auditing existing codebases for stale or orphaned feature flags
  • When choosing between feature flag platforms
  • When implementing kill-switches for critical features

Iron Laws

  1. ALWAYS assign an owner and expiration date to every feature flag -- orphaned flags without owners accumulate indefinitely and become permanent tech debt.
  2. NEVER nest feature flags more than 2 levels deep -- combinatorial explosion makes testing impossible (2 flags = 4 states, 5 flags = 32 states, 10 flags = 1024 states).
  3. ALWAYS default flag values to the existing/safe behavior -- if the flag system fails, the application should behave as it did before the flag was added.
  4. NEVER use feature flags as a substitute for configuration management -- flags are temporary toggles for release control, not permanent application settings.
  5. ALWAYS clean up flags within 30 days of full rollout -- stale flags in code increase cognitive load, slow onboarding, and hide dead code paths.

Anti-Patterns

Anti-Pattern Why It Fails Correct Approach
Creating flags without expiration dates or owners Flags become permanent; nobody knows if they can be removed Require owner and target-date fields at creation time; alert on overdue flags
Nesting 3+ flags in conditional logic Testing requires covering all combinations; bugs hide in untested paths Limit nesting to 2 levels; combine related flags into a single multi-valued flag
Defaulting new features to ON when flag is missing Flag system outage enables untested features for all users Default to OFF (existing behavior); explicitly enable after validation
Using flags for permanent configuration Config changes require code deploys to remove; defeats the purpose of config Use environment variables or config files for permanent settings; flags are temporary
Testing only with flags ON or only with flags OFF Misses interaction bugs between flag states Test both states; add flag-combination matrix to CI for critical flags

Workflow

Step 1: Flag Classification

Classify every flag before creation:

Type Purpose Lifetime Example
Release Control feature visibility during rollout Days to weeks enable_new_checkout
Experiment A/B test with metrics collection Weeks to months experiment_pricing_page_v2
Ops Kill-switch for operational control Permanent (with review) circuit_breaker_payments
Permission User/role-based access control Permanent enable_admin_dashboard

Step 2: Implementation Pattern

// OpenFeature SDK pattern (vendor-neutral)
import { OpenFeature } fr
Полный SKILL.md на GitHub

Установить feature-flag-management в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
WebFetch

Вложенные файлы

commands/feature-flag-management.mdhooks/post-execute.cjshooks/pre-execute.cjsreferences/research-requirements.mdrules/feature-flag-management.mdschemas/input.schema.jsonschemas/output.schema.jsonscripts/main.cjstemplates/implementation-template.md

FAQ

Что делает скилл feature-flag-management?

Feature flag lifecycle management -- safe feature toggling, gradual rollouts, A/B testing patterns, flag cleanup strategies, and technical debt prevention. Covers LaunchDarkly, Unleash, OpenFeature, and custom implementations.

Как установить скилл feature-flag-management?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл feature-flag-management запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить feature-flag-management с