AGENT SKILLBY LAUNCHDARKLY
Launchdarkly flag discovery
AT A GLANCE
Launchdarkly flag discovery is a growth agent skill from launchdarkly. You're using a skill that will guide you through auditing and understanding the feature flag landscape in a LaunchDarkly project. The launchdarkly/agent-skills repository on GitHub has 18 stars and the Apache-2.0 license. To add it, run npx skills add launchdarkly/agent-skills --skill launchdarkly-flag-discovery
- SOURCE REPOSITORY
- launchdarkly/agent-skills (opens GitHub in a new tab)
- REPO STARS
- SOURCE REPOSITORY
- LICENSE
- Apache-2.0
- CATEGORIES
- SKILL.MD SIZE
- 6.7 KB110 LINES
QUICK ANSWER
- WHAT IT IS01
- You're using a skill that will guide you through auditing and understanding the feature flag landscape in a LaunchDarkly project. It stands out by giving growth marketing a defined shape, so the agent asks for better context and returns a more usable result.
- INPUTS02
- Context for growth marketing: your goals, audience, constraints, and any source material the skill asks for.
- OUTPUT03
- A ready-to-use result for growth marketing: the analysis, copy, or recommendations the agent produces.
INSTALL
One command adds this skill from its source repository.
npx skills add launchdarkly/agent-skills --skill launchdarkly-flag-discoveryREAD THE SKILL.MD BELOW BEFORE YOU RUN IT. SKILLS INSTRUCT YOUR AGENT.
SKILL.MD
The full file, as published in the source repository. Copy it, download it or open it on GitHub.
ON THIS PAGE · 10
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:
list-flags: search and browse flags with filtering by state, type, tagsget-flag: 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):
find-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)check-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
list-flagsscoped to a critical environment (default toproduction). - Note the total count: this tells you the scale of the flag surface area.
- Filter by
state(active, inactive, launched, new) to segment the landscape. - Filter by
type(temporary vs permanent): temporary flags are the primary cleanup targets.
For cleanup planning:
- Use
find-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-flagfor 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 (opens in a new tab) 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 (opens in a new tab) 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 check-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 first.
See Removal Readiness Checklist (opens in a new tab) for the full details on interpreting each signal.
Step 6: Present Findings#
Structure your response based on what the user asked for:
For audits: Lead with a summary (total flags, breakdown by state and type), then highlight what needs attention, then provide specific recommendations.
For specific flags: Lead with the verdict (healthy / needs attention / ready to remove), then support it with the signals you found.
For cleanup planning: Lead with the count of cleanup candidates, prioritize by confidence (safest removals first), and link to the cleanup workflow for execution.
Important Context#
- "Launched" means fully rolled out: targeting is on, a single variation is served to everyone, and no changes have been made recently. It doesn't mean "recently deployed."
- "Inactive" doesn't always mean safe to remove. The flag might be used in code that hasn't shipped yet, or referenced as a prerequisite by another flag.
- Permanent flags can be inactive on purpose. Some flags are designed to be dormant until needed (kill switches, emergency toggles). Don't automatically flag these for cleanup.
- Weights are scaled by 1000 in the API. A weight of
60000means 60%. Always convert to human-readable percentages. - This skill is for discovery, not action. If the user wants to remove a flag from code, direct them to the flag cleanup skill (opens in a new tab). If they want to change targeting, direct them to the flag targeting skill (opens in a new tab).
References#
- Flag Health Signals (opens in a new tab): How to interpret lifecycle states, staleness, and health data
- Removal Readiness Checklist (opens in a new tab): Full safety assessment before recommending flag removal
FAQ
07 QUESTIONS
01What is the Launchdarkly flag discovery agent skill?
You're using a skill that will guide you through auditing and understanding the feature flag landscape in a LaunchDarkly project. It is listed under growth in the 100xLab agent skills directory.
02How do I install Launchdarkly flag discovery in Cursor, Claude Code, or Codex?
Run npx skills add launchdarkly/agent-skills --skill launchdarkly-flag-discovery in the project where you want it, then ask your agent for the skill by name. The --skill flag installs only Launchdarkly flag discovery, not every skill in the repository.
03What does the Launchdarkly flag discovery SKILL.md cover?
The SKILL.md includes sections on Prerequisites, Workflow, Step 1: Understand the Project, Step 2: Explore the Flag Landscape, Step 3: Assess Flag Health and Step 4: Categorize and Prioritize. Read the full text on this page or in plain markdown at /resources/agent-skills/launchdarkly-agent-skills--launchdarkly-flag-discovery--17cb9ye/raw.
04Which agents can use Launchdarkly flag discovery?
Launchdarkly flag discovery installs with the cross-agent skills installer (npx skills add), which sets it up for agents such as Claude Code, Cursor and Codex. Each agent loads the SKILL.md when you ask for the skill by name.
05What license is Launchdarkly flag discovery under?
The launchdarkly/agent-skills repository declares the Apache-2.0 license. Read the license file in the repository before you copy or redistribute the skill.
06Is Launchdarkly flag discovery free to use?
Reading, copying and installing Launchdarkly flag discovery costs nothing: it is published in a public GitHub repository under the Apache-2.0 license. Reuse and redistribution follow that license.
07Where is the source of Launchdarkly flag discovery?
Launchdarkly flag discovery comes from https://github.com/launchdarkly/agent-skills, which has 18 GitHub stars. The SKILL.md is at https://github.com/launchdarkly/agent-skills/blob/HEAD/skills/feature-flags/launchdarkly-flag-discovery/SKILL.md. The author is launchdarkly.
Need an agent workflow built around your stack?
Tell us the workflow you want automated. We reply within 4 working hours (IST).
ATTRIBUTION
Launchdarkly flag discovery was written by its original authors and is published in launchdarkly/agent-skills (opens GitHub in a new tab) under the Apache-2.0 license. All rights stay with the original authors.
100xLab did not write, maintain or endorse this skill. This page lists it for discovery. Repo stars belong to the source repository, not to the skill. Review any skill before you install it.