Community生產力與協作github.com

launchdarkly/launchdarkly-flag-create

以貼合現有程式碼庫的方式建立和設定 LaunchDarkly 功能開關。當使用者想要建立新開關、將程式碼包裝在開關中、新增功能切換或設定實驗時使用。引導在建立前先探索現有模式。

launchdarkly-flag-create 是什麼?

此技能「launchdarkly/launchdarkly-flag-create」專為開發者與 AI 代理(如 Claude Code、Cursor 或 Codex)設計,以便在 LaunchDarkly 平台上建立和設定功能開關。它強調與現有程式碼庫的整合,引導代理先探索現有模式,再建立新開關,確保一致性和最佳實踐。支援建立各種開關類型(如布林開關、多變數開關),並可根據預設規則、目標使用者或百分比推出進行設定。此技能可與 LaunchDarkly REST API 或 SDK 搭配使用,讓自動化工作流程中的開關管理更加順暢。其主要優點在於減少手動錯誤,透過自動化的模式匹配與程式碼生成,加速開關的建立與設定流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/launchdarkly/agent-skills/tree/main/skills/launchdarkly-flag-create

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

launchdarkly-flag-create 是做什麼的?

以貼合現有程式碼庫的方式建立和設定 LaunchDarkly 功能開關。當使用者想要建立新開關、將程式碼包裝在開關中、新增功能切換或設定實驗時使用。引導在建立前先探索現有模式。

功能

  • 建立布林開關與多變數開關
  • 根據現有程式碼模式自動建議開關名稱與標籤
  • 設定初始開關規則(如百分比推出、目標使用者)
  • 與 LaunchDarkly API 整合,自動套用設定

使用方式

  1. 探索現有程式碼庫,識別常見的開關使用模式。
  2. 使用 launchdarkly CLI 或 API 建立新開關。
  3. 設定開關的預設規則與變數值。
  4. 將開關整合至專案中的功能邏輯。

範例

# 使用 CLI 建立布林開關
launchdarkly create-flag --name "new-feature" --key "new-feature" --kind boolean --default-on false

先決條件

  • 有效的 LaunchDarkly API 金鑰(設為環境變數 LAUNCHDARKLY_API_KEY)
  • 對 LaunchDarkly 開關概念有基本了解

支援平台

  • Claude Code
  • Cursor
  • Codex
  • 其他支援 SKILL.md 規範的 AI 代理

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

launchdarkly/aiconfig-agent-graphs

DEPRECATED redirect — this skill was renamed to agent-graphs. Do not use this skill; invoke agent-graphs instead. Kept only so old references to aiconfig-agent-graphs still point users to the new name.

launchdarkly/aiconfig-ai-metrics

DEPRECATED redirect — this skill was renamed to built-in-metrics. Do not use this skill; invoke built-in-metrics instead. Kept only so old references to aiconfig-ai-metrics still point users to the new name.

launchdarkly/aiconfig-create

DEPRECATED redirect — this skill was renamed to configs-create. Do not use this skill; invoke configs-create instead. Kept only so old references to aiconfig-create still point users to the new name.

launchdarkly/aiconfig-custom-metrics

DEPRECATED redirect — this skill was renamed to custom-metrics. Do not use this skill; invoke custom-metrics instead. Kept only so old references to aiconfig-custom-metrics still point users to the new name.

launchdarkly/aiconfig-migrate

DEPRECATED redirect — this skill was renamed to migrate. Do not use this skill; invoke migrate instead. Kept only so old references to aiconfig-migrate still point users to the new name.

launchdarkly/aiconfig-online-evals

DEPRECATED redirect — this skill was renamed to online-evals. Do not use this skill; invoke online-evals instead. Kept only so old references to aiconfig-online-evals still point users to the new name.

launchdarkly/aiconfig-projects

DEPRECATED redirect — this skill was renamed to projects. Do not use this skill; invoke projects instead. Kept only so old references to aiconfig-projects still point users to the new name.

launchdarkly/aiconfig-snippets

DEPRECATED redirect — this skill was renamed to snippets. Do not use this skill; invoke snippets instead. Kept only so old references to aiconfig-snippets still point users to the new name.

launchdarkly/aiconfig-targeting

DEPRECATED redirect — this skill was renamed to configs-targeting. Do not use this skill; invoke configs-targeting instead. Kept only so old references to aiconfig-targeting still point users to the new name.

launchdarkly/aiconfig-tools

DEPRECATED redirect — this skill was renamed to tools. Do not use this skill; invoke tools instead. Kept only so old references to aiconfig-tools still point users to the new name.

launchdarkly/aiconfig-update

DEPRECATED redirect — this skill was renamed to configs-update. Do not use this skill; invoke configs-update instead. Kept only so old references to aiconfig-update still point users to the new name.

launchdarkly/aiconfig-variations

DEPRECATED redirect — this skill was renamed to configs-variations. Do not use this skill; invoke configs-variations instead. Kept only so old references to aiconfig-variations still point users to the new name.

launchdarkly/apply

Apply LaunchDarkly SDK onboarding: install dependency (or dual-SDK pair), configure env and secrets with consent, add init at entrypoint(s), verify compile. Nested under sdk-install; next is run.

launchdarkly/detect

Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested under sdk-install; next is plan.

launchdarkly/first-flag

Create a boolean first flag, add evaluation, toggle on/off for end-to-end proof. Parent onboarding Step 6; uses MCP, API, or ldcli; optional flag-create skill.

launchdarkly/launchdarkly-experiment-setup

Set up and run experiments in LaunchDarkly. Create experiments with metrics, treatments, and flag config, start iterations to collect data, swap design between iterations, and stop with a winner.

launchdarkly/launchdarkly-flag-cleanup

Safely remove a feature flag from code while preserving production behavior. Use when the user wants to remove a flag from code, delete flag references, or create a PR that hardcodes the winning variation after a rollout is complete.

launchdarkly/launchdarkly-flag-discovery

Audit your LaunchDarkly feature flags to understand the landscape, find stale or launched flags, and assess removal readiness. Use when the user asks about flag debt, stale flags, cleanup candidates, flag health, or wants to understand their flag inventory.

launchdarkly/launchdarkly-flag-targeting

Control LaunchDarkly feature flag targeting including toggling flags on/off, percentage rollouts, targeting rules, individual targets, and copying flag configurations between environments. Use when the user wants to change who sees a flag, roll out to a percentage, add targeting rules, or promote config between environments.

launchdarkly/launchdarkly-guarded-rollout

Configure guarded rollouts with progressive traffic increases, metric monitoring, and automatic rollback. Use when releasing features gradually with safety thresholds.

相關技能