跳到正文
cccskills
免费在 GitHub 公开

feature-flags

Feature flag strategy: types, provider selection, lifecycle, naming, rollout, cleanup

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

feature-flags — Feature Flags & Rollouts

Separate deploy from release. Enable gradual rollouts, kill switches, and experiments.

When to use

  • Risky feature needing rollback safety
  • Gradual rollout (1% -> 10% -> 50% -> 100%)
  • Kill switch for incident response
  • A/B experiments with segments
  • Dark launches (code in prod, not visible)

When NOT to use

  • Runtime config (use env vars / ConfigMap)
  • Permissions / RBAC (use auth system)
  • Permanent per-user personalization (not a flag)

Flag types

TypePurposeLifetimeExample
ReleaseSeparate deploy from releaseDays-weeksdashboard-new-layout
ExperimentA/B testWeeksexp-onboarding-v2
OpsKill switch / circuit breakerMonths-permanentops-disable-heavy-query
PermissionEntitlements by plan/rolePermanentfeature-x-pro-plan

Release flags MUST have an expiration date. Ops flags may be permanent.

Provider selection

ProviderWhen to use
GrowthBookDefault — open source, self-hosted, A/B integrated
UnleashMature OSS alternative, strong multi-language SDK
LaunchDarklySaaS, best UX, budget available, no self-host desire
Env vars / DB rowAVOID — reinvents the wheel, no audit trail

Naming convention

  • kebab-case: <area>-<what>[-<version>]
  • Prefix by type: exp- (experiment), ops- (ops), no prefix for release
  • Include domain area, avoid ambiguous names like test or new-feature

Evaluation patterns

  • Backend: server-side eval, resolved before response
  • Frontend: hydrate from backend or SDK with local cache
  • Mobile: local cache + refresh on foreground, fallback to defaults offline

Targeting & rollout

  • Gradual: 0% -> 1% (canary) -> 5% -> 25% -> 50% -> 100%, 24-48h between steps
  • Cohort: plan, country, creation date, internal emails (dogfooding)
  • Sticky hashing on userId for consistent UX
  • Kill switch: flag always ON, turn OFF during incidents

Lifecycle management

Every flag at creation MUST have:

  • Owner (person responsible)
  • Type (release / experiment / ops / permission)
  • Expiration (release: 30-60d; experiment: end of test; ops: permanent)
  • Cleanup ticket linked in tracker

Cleanup process

  1. Detect stale flags (100% ON or OFF for >30 days)
  2. Remove SDK calls, keep winning branch only
  3. Delete dead code from losing branch
  4. Archive flag in provider (preserve audit trail)

Checklist

  • SDK client keys (read-only) in client, admin API keys server-only
  • Sensitive flags (billing, permissions) evaluated server-side only
  • Audit logging enabled on flag changes
  • Admin console requires 2FA

Anti-patterns

  • Flag without owner/expiration — becomes permanent zombie
  • Evaluating flag on every code line — evaluate once per request, pass result
  • Using flags for runtime config — use env vars
  • Complex targeting with sensitive data on client — move server-side
  • Deleting flag without code cleanup — dead branch forever
  • Flag without success metric — cannot measure impact
  • Multiple interacting flags without documented matrix — combinatorial bugs
  • Rollout 0->100% directly — defeats the purpose of gradual rollout

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

中文简介正在准备中。当前显示原文说明。

SebastianLuser/claude-code-arcane32026年10月27日 更新

查看 SebastianLuser 的全部技能

报告此技能的问题