360 Secure SkillHub
360 安全技能中心

Feature Toggle Manager

核心功能为创建、切换功能标志,支持A/B测试及分阶段功能发布,提供1%-100%梯度发布策略,需监控错误率等指标。典型场景:用户要求添加标志、做A/B测试或逐步推出功能。输入为相关指令,输出可集成的功能判断逻辑,还提醒避免永久用标志、控制活跃标志数量等注意事项,助力可控迭代功能。

sky-lv
sky-lv
热度 46.52
最近更新 2026-05-11 17:45:27
分类:开发依赖:纯提示词应用场景:代码生成 / abtesting / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add feature-toggle-manager
Metadata
name
skylv-feature-flag
slug
skylv-feature-flag
version
1.0.0
description
Feature flag management. Creates and toggles feature flags for A/B testing. Triggers: feature flag, a b test, toggle feature, abtesting.
author
SKY-lv
license
MIT
tags
["automation","tools"]
keywords
["automation","tools"]
triggers
feature-flag

Feature Flag Manager

Overview

Implements feature flags for controlled rollouts and A/B testing.

When to Use

  • User asks to "add a feature flag"
  • User wants to "A/B test" or "gradually roll out"

Implementation

if (isFeatureEnabled("new_checkout_flow", userId)) { renderNewCheckout(); } else { renderLegacyCheckout(); }

Rollout Strategy

1-5% = internal users 10-25% = beta users 25-50% = canary 100% = full rollout

Monitor: error rate, conversion, latency

Anti-Patterns

  • Do not use flags for permanent features
  • Limit active flags to under 20
  • Clean up flags after rollout