К основному содержанию
скилл CX Codex

launchdarkly-flag-command — скилл для Claude Code: быстрый поиск

Разбирает запросы вида /flag в поиск по фича-флагам LaunchDarkly и возвращает короткую сводку по конфигурации.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-command -a claude-code
Открыть на GitHub

Что делает launchdarkly-flag-command

Скилл принимает /flag <query>, flag <query> и фразы вроде «найди флаг <query>». Сначала он ищет кандидатов через list-flags, потом тянет детали через get-flag и отдаёт ключ, имя, состояние в окружении, off variation, поведение fallthrough и сложность правил. Если совпадений несколько, вы получите список для выбора вместо угадывания.

Это только чтение. Создавать, переключать, обновлять и удалять флаги скилл не станет, и вердикт «можно удалять» он тоже не выдаёт. На вопрос про устаревание или чистку ответ будет один: сводка плюс указание на скиллы flag discovery или flag cleanup, которые смотрят ссылки в коде и зависимости. Это стоит держать в голове, если вы ждали от /flag разбора.

Для работы нужен удалённый MCP-сервер LaunchDarkly с инструментами list-flags и get-flag; get-flag-status-across-envs и get-flag-health подключаются по желанию. Окружение по умолчанию — production, другое можно указать в запросе. Без настроенного MCP-сервера скилл просто нечего будет вызывать.

Какие задачи решает

  • найти флаг по части имени или ключу
  • развести два похожих флага с почти одинаковыми именами
  • посмотреть состояние флага в нужном окружении
  • получить ссылку на флаг в LaunchDarkly
  • понять, насколько сложные правила и таргетинг у флага

Примеры запросов агенту

  • /flag checkout-redesign
  • найди флаг payment в staging
  • покажи флаг new-onboarding, проект web

Как установить launchdarkly-flag-command

1Через Skills CLI (Vercel)

npx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-command -a claude-code

2Вручную: положить файлы

~/.claude/skills/launchdarkly-flag-command/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/launchdarkly-flag-command/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора29

aiconfig-snippets Старый скилл, который больше ничего не делает: его переименовали в snippets, а этот оставили только ради обратной совместимости. CX Codex +1 2 400установок sdk-install Ставит и инициализирует нужный LaunchDarkly SDK в проекте: сначала определяет стек, потом строит план, потом правит код. CX Codex +1 2 300установок detect Определяет языки, фреймворки, пакетные менеджеры и точки входа в проекте перед подключением LaunchDarkly SDK. CX Codex +1 2 300установок apply Ставит SDK LaunchDarkly в проект: добавляет зависимость, прописывает ключ в окружение и вставляет инициализацию в точки входа. Работает как шаг 3 онбординга. CX Codex +1 2 300установок migrate Ведёт приложение с захардкоженными промптами к конфигу LaunchDarkly AgentControl в пять этапов, с остановкой на подтверждение после каждого. CX Codex +1 1 800установок snippets Скилл для работы с переиспользуемыми блоками текста в промптах конфигов LaunchDarkly: персоны, ограничения, форматы вывода. CX Codex +1 1 800установок built-in-metrics Оборачивает вызовы провайдера ИИ в трекер LaunchDarkly и снимает длительность, токены и статус успех/ошибка. Нужен, когда агент уже работает и хочется видеть его метрики. CX Codex +1 1 800установок online-evals Подключает судей к вариантам конфига, чтобы ответы модели автоматически получали оценку от 0.0 до 1.0. Пригодится, когда нужно следить за качеством промптов в проде. CX Codex +1 1 800установок

Похожие

launchdarkly-flag-cleanup официальный github Субагент проверяет фиче-флаги через MCP-сервер LaunchDarkly, определяет безопасное значение по продакшену и вырезает устаревшие ветки кода с оформлением пулреквеста. 171установок feature-flags devops-skills Скилл для ИИ-агента, который помогает внедрять фиче-флаги: постепенная раскатка, A/B-тесты, kill switch. Пригодится, когда релиз нужно отделить от деплоя. CX Codex +1 329установок testing-in-production kindlmann Скилл для тестирования прямо в продакшене: фича-флаги, канареечный деплой, прогрессивный роллаут и метрики-ограничители. Пригодится, когда релиз надо растянуть, а не выкатить на всех сразу. CX Codex +1 1 000установок cleaning-up-stale-feature-flags PostHog Находит устаревшие фича-флаги в проекте PostHog и убирает код, который их проверяет. Пригодится, когда флагов накопилось много и непонятно, какие уже можно удалить. CX Codex +1 434установок firebase-remote-config-basics Google LLC Скилл помогает управлять Remote Config в приложениях на Android и iOS через Firebase CLI. Позволяет менять флаги функций и параметры без выкатки обновлений в магазины. CX Codex +1 121 300установок shipping-and-launch addyosmani Готовит деплой в прод: чек-лист перед запуском, мониторинг, поэтапный роллаут и план отката. Пригодится, когда фича уходит к реальным пользователям. CX Codex +1 58 400установок

Рядом в теме «Настройка агента: память, контекст, субагенты»

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Вопросы о launchdarkly-flag-command

Как установить launchdarkly-flag-command в Claude?

Выполните npx skills add launchdarkly/ai-tooling --skill launchdarkly-flag-command -a claude-code. Файл скилла окажется в ~/.claude/skills/launchdarkly-flag-command/SKILL.md.

Что делает launchdarkly-flag-command?

Превращает запросы вида /flag в поиск по фича-флагам LaunchDarkly и возвращает краткую сводку по найденному флагу. Если под запрос подходит несколько флагов, скилл предложит выбрать.

Нужен ли MCP-сервер LaunchDarkly?

Да, скилл работает через удалённый MCP-сервер LaunchDarkly и его инструменты list-flags и get-flag. Без него вызывать будет нечего.

Исходный текст

SKILL.md · Apache-2.0
---
name: launchdarkly-flag-command
description: "Resolve `/flag` style requests into the right LaunchDarkly flag lookup flow. Use when the user types `/flag`, asks to quickly find a flag by name/key, wants a direct flag detail summary, or needs fast disambiguation between similar flags."
license: Apache-2.0
compatibility: Requires the remotely hosted LaunchDarkly MCP server
metadata:
  author: launchdarkly
  version: "1.0.0-experimental"
---

# LaunchDarkly Flag Command Router

You're using a skill that standardizes quick `/flag` requests. Your job is to parse the user intent, resolve the requested flag with minimal friction, return an actionable summary, and route to deeper workflows when needed.

## Scope Boundary

This skill is a **read-only lookup entrypoint**. It returns flag details and routes forward.

**Hard constraints — you MUST NOT:**

- Create, toggle, update, or delete flags
- Assess whether a flag is safe to remove, stale, or ready for cleanup
- Provide a "verdict", "safe to remove" conclusion, removal steps, or "before removing" advice
- Offer to archive or delete the flag

**When the user asks about removal or staleness**, your entire response for that part must be the flag summary table followed by this exact routing message (you may rephrase slightly but must keep the substance):

> This quick lookup can only show you the flag's current config. To assess whether it's safe to remove, you need the **flag discovery** or **flag cleanup** skill — they scan code references, check status across all environments, and analyze downstream dependencies.

That's it. No analysis. No bullet points. No verdict. The removal question is answered by the routing message, not by you.

## Prerequisites

This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.

**Required MCP tools:**
- `list-flags` — search and disambiguate flag candidates
- `get-flag` — fetch detailed configuration for a resolved flag

**Optional MCP tools:**
- `get-flag-status-across-envs` — compare lifecycle status across environments
- `get-flag-health` — quick health snapshot for a single flag

## Command Contract

Treat these forms as equivalent intents:

- `/flag <query>`
- `flag <query>`
- "find flag <query>"
- "show me <query> flag"

Use `production` as the default environment unless the user specifies another environment.

## Workflow

### Step 1: Parse and Normalize Input

1. Extract the query text after `/flag`.
2. If no query is provided, ask for one concise identifier (flag key, name fragment, or tag).
3. Capture optional hints from the request:
   - Environment (`staging`, `production`, etc.)
   - Project key
   - Preference for exact key vs fuzzy search

### Step 2: Resolve the Flag

Use `list-flags` first unless the user clearly provided an exact key and project.

1. Search with `list-flags` using the query.
2. If one clear exact match exists, resolve to that flag.
3. If multiple plausible matches exist, return a short disambiguation list (key + name + state) and ask the user to pick.
4. If no matches exist, tell the user and suggest one broader query.

### Step 3: Return a Useful Summary

For a resolved flag, call `get-flag` and return:

1. Flag key and name
2. Environment state (`on`/`off`)
3. Off variation and fallthrough behavior
4. Rule/target complexity (simple vs complex)
5. Direct LaunchDarkly URL for the flag (when project + key are known)

**If the user asked about removal, staleness, or cleanup** (e.g., "is this safe to remove?", "can I clean this up?", "is this stale?"):

Show ONLY the summary table above, then write:

> This quick lookup can only show you the flag's current config. To assess whether it's safe to remove, you need the **flag discovery** or **flag cleanup** skill — they scan code references, check status across all environments, and analyze downstream dependencies.

Do not add a verdict, bullet-point analysis, removal steps, "before removing" checklist, or an offer to archive/delete. The removal question is **fully answered by the routing message above**. Proceed to Step 4.

### Step 4: Route to the Right Follow-up Workflow

After returning the summary, check whether the user's request implies a deeper workflow. If it does, **name the skill and stop** — do not attempt the workflow yourself.

| User intent | Route to |
|---|---|
| Create or modify a flag | [flag create skill](../launchdarkly-flag-create/SKILL.md) |
| Change targeting or rollout | [flag targeting skill](../launchdarkly-flag-targeting/SKILL.md) |
| "Is this safe to remove?", "Is this stale?", cleanup | [flag discovery](../launchdarkly-flag-discovery/SKILL.md) / [flag cleanup](../launchdarkly-flag-cleanup/SKILL.md) |

For removal/staleness questions specifically: follow the Scope Boundary instructions above — summary table only, then route. No verdict.

## Output Style

Keep `/flag` responses brief and operational:

- Start with the resolved flag (or disambiguation list)
- Include only the minimum config details needed for the next action
- End with one clear next step question when user intent is ambiguous

## Important Context

- `/flag` is a fast entrypoint, not a full lifecycle workflow.
- Prefer disambiguation over guessing when multiple flags match.
- Treat project + environment as first-class context; avoid hidden assumptions.
- When sharing rollout percentages, always use human-readable percentages.
- **Never improvise removal, staleness, or cleanup analysis.** Always route to the dedicated skill.

© launchdarkly · Apache-2.0 · launchdarkly/ai-tooling

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой