← 返回 Skills 市场
sky-lv

Feature Flag Manager

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
132
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install feature-flag-manager
功能描述
Feature flag management for AI agents — toggle features, A/B testing, gradual rollouts
使用说明 (SKILL.md)

feature-flag-manager

Manage feature flags for AI agents — enable/disable features, A/B testing, gradual rollouts, and percentage-based releases.

Skill Metadata

  • Slug: feature-flag-manager
  • Version: 1.0.0
  • Description: Feature flag management system for AI agents. Toggle features on/off, run A/B tests, gradual percentage rollouts, and control feature visibility without deploying new code.
  • Category: automation
  • Trigger Keywords: feature flag, feature toggle, A/B testing, gradual rollout, release management, canary release, percentage rollout

Capabilities

1. Create Feature Flag

# Create a simple on/off flag
node flag.js create my-feature --description "New dashboard"

# Create percentage rollout (initially 10%)
node flag.js create dark-mode --percentage 10 --description "Dark theme"

# Create A/B test variant
node flag.js create pricing-page --variants control,v1,v2 --weights 50,25,25
  • Stores flags in .featureflags/ JSON config
  • Supports percentage-based rollout (0-100%)
  • Multi-variant A/B testing with custom weight distribution

2. Check Flag Status

# Check if feature is enabled
node flag.js enabled my-feature

# Get variant for current user (for A/B)
node flag.js variant pricing-page --user-id user123

# Get rollout percentage
node flag.js percentage dark-mode
  • Returns boolean for simple flags
  • Returns variant name for A/B tests
  • Returns rollout percentage

3. Update Flag

# Enable/disable immediately
node flag.js toggle my-feature

# Update rollout percentage (gradual increase)
node flag.js update dark-mode --percentage 50

# Pause a flag
node flag.js pause pricing-page
  • Instant toggle for emergency rollback
  • Percentage updates for gradual rollout
  • Pause preserves configuration

4. List & Monitor

# List all flags with status
node flag.js list

# Show flag history
node flag.js history my-feature

# Export flags for reporting
node flag.js export --format json
  • Real-time overview of all flags
  • Change history with timestamps
  • Export for analytics integration

Configuration

// .featureflags/config.json
{
  "flags": {
    "new-dashboard": {
      "enabled": true,
      "percentage": 100,
      "variants": null,
      "description": "Redesigned dashboard UI"
    },
    "dark-mode": {
      "enabled": true,
      "percentage": 25,
      "variants": null,
      "description": "Dark theme support"
    },
    "pricing-page": {
      "enabled": true,
      "percentage": 100,
      "variants": ["control", "v1", "v2"],
      "weights": [50, 25, 25]
    }
  }
}

Use Cases

  1. Gradual Rollout: Start with 5% users, increase to 100% over time
  2. A/B Testing: Test different UX variants and measure conversion
  3. Kill Switch: Instantly disable buggy feature without deployment
  4. User Segmentation: Target specific user groups
  5. Remote Configuration: Change behavior without code changes

Integration Example

// In your agent code
const flag = require('./flag.js');

async function handleRequest(req) {
  // Check if new feature is enabled
  if (await flag.enabled('new-dashboard', { userId: req.userId })) {
    return renderNewDashboard(req);
  }
  return renderLegacyDashboard(req);
}
安全使用建议
This skill appears to be a simple, local feature-flag utility that stores flags in a .featureflags/config.json file. Before installing or using it: (1) be aware it writes to your working directory (back up or ignore .featureflags if you don't want it in a repo), (2) it has no access control—if multiple people or services run it, consider adding safeguards (ACLs) or moving storage to a controlled service, (3) review and test parsing/edge cases if you plan to use it in production (argument parsing is simplistic), and (4) if you need remote/centralized feature flags, integrate with a vetted remote service rather than relying on this local file-based approach. Overall there are no signs of credential exfiltration, network calls, or other incoherent behavior.
功能分析
Type: OpenClaw Skill Name: feature-flag-manager Version: 1.0.0 The feature-flag-manager skill is a straightforward utility for managing local feature toggles and A/B test configurations. The core logic in flag.js uses standard file system operations to maintain a local JSON configuration file (.featureflags/config.json) and contains no network requests, data exfiltration, or suspicious execution patterns. The instructions in SKILL.md and README.md are consistent with the stated purpose of the tool.
能力评估
Purpose & Capability
Name/description match the actual behavior: the SKILL.md and flag.js implement creating, toggling, listing, and querying flags stored in .featureflags/config.json. No unrelated credentials, binaries, or APIs are requested.
Instruction Scope
Runtime instructions are limited to local file-based feature-flag operations and show example usage of flag.js; they do not instruct reading other system files, environment variables, or sending data externally.
Install Mechanism
No install spec is present and this is an instruction-only skill with a small JavaScript engine file; nothing is downloaded or extracted from external hosts.
Credentials
The skill declares no required environment variables, credentials, or config paths beyond writing a local .featureflags directory, which is proportional to its purpose.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide settings; it only writes its own config in the working directory (.featureflags), which is expected for this functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feature-flag-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feature-flag-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feature-flag-manager — a flexible feature flag management system for AI agents. - Allows creation, toggling, and management of feature flags, including A/B tests and gradual rollouts. - Supports percentage-based releases, multi-variant A/B testing, and emergency kill-switch. - CLI commands for creating, updating, checking, listing, and exporting flag status/history. - Stores configuration in JSON files for easy integration and export. - Use cases include gradual rollout, A/B testing, kill switch, user segmentation, and remote config changes.
元数据
Slug feature-flag-manager
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Feature Flag Manager 是什么?

Feature flag management for AI agents — toggle features, A/B testing, gradual rollouts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 Feature Flag Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feature-flag-manager」即可一键安装,无需额外配置。

Feature Flag Manager 是免费的吗?

是的,Feature Flag Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Feature Flag Manager 支持哪些平台?

Feature Flag Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feature Flag Manager?

由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。

💬 留言讨论