Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

configure-feature-flags配置功能标志

Agent Skill

configure-feature-flags 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,260

周安装

52

GitHub Stars

28

下载量

412
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:configure-feature-flags(配置功能标志)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/configure-feature-flags
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill configure-feature-flags
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill configure-feature-flags

简介

configure-feature-flags 基于 OpenFeature 标准配置功能开关基础设施。

  • 适用于灰度发布与实验性功能管理场景。
  • 支持 flagd、LaunchDarkly 等多 Provider 接入。
  • 包含 YAML 配置生成,需验证环境变量注入方式。
  • 建议建立命名规范与生命周期管理制度。

SKILL.md

/configure:feature-flags

Check and configure feature flag infrastructure using the OpenFeature standard with pluggable providers.

When to Use This Skill

Use this skill when...Use another approach when...
Adding feature flag infrastructure to a new projectCreating or editing individual flag definitions in YAML
Setting up OpenFeature SDK with a provider (GOFF, flagd, LaunchDarkly)Debugging why a specific flag evaluation returns unexpected values
Auditing existing feature flag configuration for completenessWriting application logic that consumes feature flags
Configuring relay proxy infrastructure (Docker, Kubernetes)Managing LaunchDarkly or Split dashboard settings
Adding feature flag test helpers and in-memory providersConfiguring error tracking (/configure:sentry instead)

Context

  • Package JSON:!find. -maxdepth 1 -name \'package.json\'
  • Python project:!find. -maxdepth 1 -name \'pyproject.toml\'
  • Go project:!find. -maxdepth 1 -name \'go.mod\'
  • Cargo project:!find. -maxdepth 1 -name \'Cargo.toml\'
  • OpenFeature SDK:!find. -maxdepth 1 \(-name package.json -o -name pyproject.toml -o -name Cargo.toml -o -name go.mod \) -exec grep -l 'openfeature' {} +
  • GOFF config:!find. -maxdepth 2 -name 'flags.goff.yaml' -o -name 'flags.goff.yml'
  • Docker compose:!find. -maxdepth 1 -name 'docker-compose*.yml' -o -name 'docker-compose*.yaml'
  • Project standards:!find. -maxdepth 1 -name \'.project-standards.yaml\'

Parameters

Parse from $ARGUMENTS:

  • --check-only: Report compliance status without modifications
  • --fix: Apply all fixes automatically without prompting
  • --provider <provider>: Override provider detection (goff, flagd, launchdarkly, split)

Version Checking

CRITICAL: Before configuring feature flags, verify latest SDK and provider versions using WebSearch or WebFetch:

  1. OpenFeature JS SDK: Check npm
  2. OpenFeature Python SDK: Check PyPI
  3. GO Feature Flag: Check GitHub releases
  4. flagd: Check GitHub releases

Execution

Execute this feature flag configuration workflow:

Step 1: Detect project language and existing setup

Check for existing feature flag infrastructure:

IndicatorLanguageDetected Provider
@openfeature/server-sdk in package.jsonNode.jsOpenFeature (check for provider)
@openfeature/web-sdk in package.jsonBrowser JSOpenFeature Web
@openfeature/react-sdk in package.jsonReactOpenFeature React
openfeature-sdk in pyproject.tomlPythonOpenFeature Python
@openfeature/go-feature-flag-providerNode.jsGO Feature Flag
go-feature-flag-relay-proxy in docker-composeAnyGO Feature Flag Relay
flagd in docker-compose/k8sAnyflagd provider

Step 2: Analyze current state

Check for complete feature flag setup:

  1. Verify OpenFeature SDK installed for project language
  2. Check provider package installed
  3. Verify provider initialized in application startup
  4. Check evaluation context configuration
  5. Check hooks configured (logging, telemetry)
  6. For GOFF: verify flag configuration file exists, relay proxy configured
  7. For flagd: verify container/service configured, gRPC/HTTP endpoints

Step 3: Generate compliance report

Print a formatted compliance report:

Feature Flag Compliance Report
==============================
Project: [name]
Language: [detected]
Provider: [detected or None]

OpenFeature SDK:    [status per check]
Provider Config:    [status per check]
Infrastructure:     [status per check]

Overall: [X issues found]
Recommendations: [list specific fixes]

If --check-only, stop here.

Step 4: Install SDK and configure provider (if --fix or user confirms)

Based on detected language, install and configure the OpenFeature SDK with the selected provider. Use code templates from REFERENCE.md.

  1. Install OpenFeature SDK and provider packages
  2. Create feature flag client wrapper module
  3. Create evaluation context helper
  4. Create middleware for HTTP frameworks (Express, FastAPI, etc.)

Step 5: Create flag configuration

Create flags.goff.yaml with example flags covering common patterns:

  • Simple boolean flag
  • Percentage rollout
  • Multi-variant flag (A/B test)
  • Environment-specific flag
  • User-specific override
  • Scheduled rollout

Use flag templates from REFERENCE.md.

Step 6: Configure infrastructure

  1. Create docker-compose entry for relay proxy (local development)
  2. Optionally create Kubernetes manifests for production

Step 7: Create test configuration

Create test file using in-memory provider for feature flag unit tests.

Step 8: Update standards tracking

Update .project-standards.yaml:

components:
  feature_flags: "2025.1"
  feature_flags_sdk: "openfeature"
  feature_flags_provider: "[goff|flagd|launchdarkly]"

Step 9: Print completion report

Print a summary of all changes made including SDK installed, provider configured, flag file created, and next steps (start relay, initialize in app, use flags in code).

For detailed code templates, flag configuration patterns, and infrastructure manifests, see REFERENCE.md.

Agentic Optimizations

ContextCommand
Quick compliance check/configure:feature-flags --check-only
Auto-fix with GOFF provider/configure:feature-flags --fix --provider goff
Validate flag configgoff lint --file flags.goff.yaml
Check relay proxy health`curl -s http://localhost:1031/health
List configured flags`curl -s http://localhost:1031/v1/feature/flags
Check SDK installed (JS)`jq -r '.dependencies

Flags

FlagDescription
--check-onlyReport status without offering fixes
--fixApply all fixes automatically without prompting
--provider <provider>Override provider detection (goff, flagd, launchdarkly, split)

Examples

# Check compliance and offer fixes
/configure:feature-flags

# Check only, no modifications
/configure:feature-flags --check-only

# Auto-fix with GO Feature Flag provider
/configure:feature-flags --fix --provider goff

# Configure for LaunchDarkly
/configure:feature-flags --fix --provider launchdarkly

Error Handling

  • No package manager found: Cannot install SDK, provide manual steps
  • Provider not supported: List supported providers, suggest alternatives
  • Relay proxy unreachable: Check Docker/K8s configuration
  • Invalid flag syntax: Validate with goff lint before deployment

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.49%
按下载量换算138

Codex

33.14%
按下载量换算137

Cursor

18.92%
按下载量换算78

Gemini CLI

8.93%
按下载量换算37

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills