跳到正文
Skillpedia
自动化77k · #2198

LaunchDarkly Automation

它能做什么

这个工具可以自动管理 LaunchDarkly 中的“功能开关”。你可以列出项目和环境,创建和删除功能开关的自动触发器,还可以查看代码中哪些地方使用了这些开关。

适用场景

  • ✓当你想查看 LaunchDarkly 中所有可用的项目和环境时。
  • ✓当你想设置一个自动操作(比如在出现告警时打开或关闭某个开关)时。
  • ✓当你想查找代码中哪些部分正在使用某个特定开关时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/launch-darkly-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/launch-darkly-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想创建一个触发器:当 Datadog 出现告警时,打开 “my-app” 项目 “production” 环境中的 “new-feature” 开关。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会连接你的 LaunchDarkly 账户。它使用特定命令获取信息(比如项目和环境),或者创建和删除自动化触发器。对于触发器,它会生成一个特殊链接,访问该链接时即可执行设定的操作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

LaunchDarkly Automation

Automate your LaunchDarkly feature flag workflows -- enumerate projects and environments, create webhook-driven flag triggers, manage trigger lifecycle, and audit code references across repositories.

Toolkit docs: composio.dev/toolkits/launch_darkly


Setup

  1. Add the Composio MCP server to your client: https://rube.app/mcp
  2. Connect your LaunchDarkly account when prompted (API key authentication)
  3. Start using the workflows below

Core Workflows

1. List Projects

Use LAUNCH_DARKLY_LIST_PROJECTS to discover all projects and their keys for subsequent operations.

Tool: LAUNCH_DARKLY_LIST_PROJECTS
Inputs:
  - filter: string (e.g., "query:myproject" or "keys:proj1,proj2" or "tags:mytag")
  - expand: string (e.g., "environments" to include env list per project)
  - limit: integer (default 20)
  - offset: integer (pagination start index)
  - sort: string (e.g., "name" or "-name" for descending)

2. Get Environments for a Project

Use LAUNCH_DARKLY_GET_ENVIRONMENTS to list all environments within a project (production, staging, test, etc.).

Tool: LAUNCH_DARKLY_GET_ENVIRONMENTS
Inputs:
  - project_key: string (required) -- e.g., "my-project", "default"
  - filter: string (e.g., "query:production")
  - limit: integer (default 20)
  - offset: integer (pagination)
  - sort: string (e.g., "name" or "-name")

3. Create a Flag Trigger Workflow

Use LAUNCH_DARKLY_CREATE_TRIGGER_WORKFLOW to set up automated flag toggles triggered by external events (webhooks, Datadog alerts, etc.).

Tool: LAUNCH_DARKLY_CREATE_TRIGGER_WORKFLOW
Inputs:
  - project_key: string (required)
  - feature_flag_key: string (required) -- e.g., "new-feature", "enable-dark-mode"
  - environment_key: string (required) -- e.g., "production", "staging"
  - integration_key: string (default "generic-trigger") -- or "datadog", "honeycomb", "dynatrace"
  - instructions: array of objects (optional):
      - kind: "flag_action" (fixed)
      - action: "turnFlagOn" | "turnFlagOff"
  - comment: string (optional) -- description of the trigger purpose

The trigger generates a unique webhook URL that can be called to execute the configured flag action.

4. Delete a Flag Trigger Workflow

Use LAUNCH_DARKLY_DELETE_TRIGGER_WORKFLOW to permanently remove a trigger and its URL.

Tool: LAUNCH_DARKLY_DELETE_TRIGGER_WORKFLOW
Inputs:
  - project_key: string (required)
  - feature_flag_key: string (required)
  - environment_key: string (required)
  - id: string (required) -- the trigger ID returned during creation

Warning: Deletion is irreversible. The trigger and its URL cannot be recovered.

5. List Code Reference Repositories

Use LAUNCH_DARKLY_LIST_CODE_REFERENCE_REPOSITORIES to track where feature flags are used in your codebase.

Tool: LAUNCH_DARKLY_LIST_CODE_REFERENCE_REPOSITORIES
Inputs:
  - projKey: string (optional) -- filter by project key
  - flagKey: string (optional) -- filter by feature flag key
  - withBranches: string (any value to include branch data)
  - withReferencesForDefaultBranch: string (any value to include code refs for default branch)

Note: Code references is an Enterprise feature requiring code-reference-repository write permissions.


Known Pitfalls

Pitfall Detail
Project key discovery Always use LAUNCH_DARKLY_LIST_PROJECTS first to find valid project keys before calling other tools.
Environment key format Environment keys are lowercase slugs (e.g., "production", "test"), not display names.
Trigger deletion is permanent Once deleted via LAUNCH_DARKLY_DELETE_TRIGGER_WORKFLOW, the trigger URL is unrecoverable.
Enterprise-only code refs LAUNCH_DARKLY_LIST_CODE_REFERENCE_REPOSITORIES requires Enterprise plan and write permissions.
Trigger instructions format Each instruction object requires kind: "flag_action" (fixed constant) and action as either turnFlagOn or turnFlagOff.

Quick Reference

Tool Slug Description
LAUNCH_DARKLY_LIST_PROJECTS List all projects with filtering and pagination
LAUNCH_DARKLY_GET_ENVIRONMENTS List environments within a project
LAUNCH_DARKLY_CREATE_TRIGGER_WORKFLOW Create a webhook-driven flag trigger
LAUNCH_DARKLY_DELETE_TRIGGER_WORKFLOW Permanently delete a flag trigger

…

常见问题

我怎么知道项目或环境的确切名称?

使用列出项目和环境的命令即可,它会显示正确的名称。这些名称通常是小写的,且不含空格。

删除的触发器可以恢复吗?

不能,删除触发器是永久性的。自动化链接将无法再使用,也无法恢复。

查看代码中开关的使用位置需要特殊账户吗?

需要。追踪代码中开关使用情况的功能需要 LaunchDarkly 的 Enterprise 套餐以及相应的权限。

详情

作者的原始描述

Automate LaunchDarkly feature flag management -- list projects and environments, create and delete trigger workflows, and track code references via the Composio MCP integration.

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#2198
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能