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…
от launchdarkly★ 32 звезды на GitHubОб этом скилле
LaunchDarkly Flag Discovery
You're using a skill that will guide you through auditing and understanding the feature flag landscape in a LaunchDarkly project. Your job is to explore the project, assess the health of its flags, identify what needs attention, and provide actionable recommendations.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
get-flags: search and browse flags with filtering by state, type, tags; withflagKey, get full configuration for a single flag in a specific environmentget-flag-status-across-envs: check a flag's lifecycle status across all environments
Optional MCP tools (enhance depth):
search-stale-flags: find flags that are candidates for cleanup, sorted by stalenessget-flag-health: get combined health view for a single flag (merges status + config)get-removal-readiness: detailed safety check for a specific flag
Workflow
Step 1: Understand the Project
Before diving into flag data, establish context:
- Identify the project. Confirm the
projectKeywith the user. If they haven't specified one, ask. - Understand scope. Ask the user what they're trying to accomplish:
- Broad audit? ("What's the state of our flags?")
- Targeted investigation? ("Is this specific flag still needed?")
- Cleanup planning? ("What flags can we remove?")
Step 2: Explore the Flag Landscape
Adapt your approach to the user's goal:
For a broad audit:
- Use
get-flagsscoped to a critical environment (default toproduction). - Note the total count: this tells you the scale of the flag surface area.
- Filter by
state(live,deprecated,archived) to segment the landscape. Lifecycle status (new, active, launched, inactive) comes fromget-flag-status-across-envs. - Filter by
type(temporary vs permanent): temporary flags are the primary cleanup targets.
For cleanup planning:
- Use
search-stale-flags: this is the most efficient entry point. It returns a prioritized list of cleanup candidates sorted by staleness, categorized as:never_requested: created but never evaluated (possibly abandoned)inactive_30d: no SDK evaluations in the specified periodlaunched_no_changes: fully rolled out, no recent changes
- Default
inactiveDaysis 30. Increase for conservative cleanup (60, 90) or decrease for aggressive cleanup (7, 14). - Default
includeOnlyistemporary. Set toallto include permanent flags.
For a targeted investigation:
- Use
get-flag-healthfor a single-flag deep dive. It merges status data with configuration context in one call, returning lifecycle state, last-requested timestamp, targeting summary, age, and whether it's temporary. - Or use
get-flagsfor the full configuration including rules, targets, and fallthrough details.
Step 3: Assess Flag Health
For flags that need deeper investigation, assess health signals. See Flag Health Signals for the full interpretation guide.
Key signals to evaluate:
| Signal | What it tells you |
|---|---|
| Lifecycle state | Where the flag is in its journey (new -> active -> launched -> inactive) |
| Last requested | When an SDK last evaluated this flag: staleness indicator |
| Targeting complexity | Number of rules and targets: removal complexity indicator |
| Cross-environment consistency | Whether the flag behaves the same everywhere |
| Flag age + temporary status | Old temporary flags are strong cleanup candidates |
Use get-flag-status-across-envs to check if a flag is consistent across environments. A flag inactive in production but active in staging tells a different story than one inactive everywhere.
Step 4: Categorize and Prioritize
Group flags into actionable categories:
- Ready to remove: Inactive everywhere, temporary, no dependencies. Direct the user to the flag cleanup skill for code removal.
- Likely safe, needs verification: Launched (fully rolled out), no rule changes recently. The user should confirm the rollout is intentionally complete.
- Needs investigation: Active in some environments but not others, or has complex targeting. Don't recommend action without more context.
- Leave alone: Active flags doing their job, or permanent flags that are intentionally long-lived.
Step 5: Assess Removal Readiness (When Applicable)
If the user wants to know whether a specific flag can be removed, use get-removal-readiness. This tool orchestrates multiple API calls in parallel and returns a structured verdict:
safe: No blockers or warnings. Proceed with cleanup.caution: Warnings exist (code references, expiring targets, permanent flag type). Present and let the user decide.blocked: Hard blockers (dependent flags, active requests, targeting rules). Must resolve
Установить launchdarkly-flag-discovery в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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-flag-discovery?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл launchdarkly-flag-discovery запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic