/launchdarkly:launchdarkly-metric-choosefrom launchdarkly
Helps select the right metrics for LaunchDarkly experiments, guarded rollouts, or environment release plans. Surfaces existing release plan metrics before recommending additional ones.
Ships in launchdarkly. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You're using a skill that helps users select the right metrics before setting up an experiment, guarded rollout, or environment release plan. Your job is to understand the feature context, surface the metrics that the environment's release plans already use, inventory what's available and healthy, and produce a clear typed recommendation.
This skill is advisory. It does not create metrics, attach them to experiments, or configure rollouts. For those tasks, see the related skills at the end of this document.
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
get-metrics — inventory available metrics with their types and event keysget-metric-events — check which event keys have recent activityOptional MCP tools (enhance workflow):
get-environment-release-plans — fetch an environment's release plans (projectKey, environmentKey). Each plan's progressiveRelease.metrics are the metrics that a release with that plan is guarded by, and default: true marks the plan that releases use unless they name another. Use this for the guarded rollout and release plan paths.Ask two questions upfront:
What is this for?
What is the change?
For experiments — skip this step. There is no pre-existing configuration to surface.
For guarded rollouts and release plan work, ask which environment the rollout or plan is for (if not stated), then call get-environment-release-plans first:
get-environment-release-plans(projectKey, environmentKey)
Surface the results before making any recommendations:
production has 2 release plans:
Plan: "Guarded rollout" (default)
Guarded by:
✓ api-error-rate (count, LowerThanBaseline, auto-rollback)
✓ p95-latency (value, LowerThanBaseline, auto-rollback)
Plan: "Progressive"
No metrics (progressive only).
This tells the user what's already covered before they choose anything additional. A release that uses the default plan is guarded by its metrics, so the recommendation is about what to add on top, not rebuild from scratch. A guarded rollout started by hand takes only the metrics you give it: say so, and offer the plan's metrics as the starting point.
If the environment has no release plans, or none has metrics, note that all metrics must be selected manually. An incomplete plan (migrated from a release policy) cannot start a release; say so when you name one.
Call get-metrics to see all metrics in the project, then cross-reference with get-metric-events.
Organize into two groups:
| Group | Criteria | Note |
|---|---|---|
| Healthy | Event key appears in get-metric-events | Safe to recommend |
| At-risk | Event key absent from get-metric-events | Warn: may not produce data |
Pageview and click metrics have no custom event key, so get-metric-events cannot vouch for them. List them separately as "not checked" rather than at-risk.
Show this inventory before recommending — it may reveal that a metric the user has in mind has no events flowing.
The reasoning differs meaningfully by context.
Start with the hypothesis, not the metric list.
Ask the user to complete this sentence before looking at available metrics:
"If this change succeeds, [metric] will [increase / decrease]."
The primary metric must directly measure that hypothesis — not a proxy, not a correlation. If the user can't complete the sentence, help them get there first.
Propose one primary metric. It must:
HigherThanBaseline or LowerThanBaseline)Propose typed secondary metrics. Suggest at least one of each type that applies:
| Type | Purpose | Example |
|---|---|---|
| Guardrail | Did the change break anything? | Error rate, crash rate, latency p95 |
| Counter-metric | Did A improve at the cost of B? | If primary is conversion, add support tickets or session length |
| Supporting signal | Does correlated behavior confirm the hypothesis? | If primary is signup, add onboarding step 2 completion |
One of each type is usually the right amount. More secondary metrics add noise and interpretation burden.
Guarded rollouts are safety mechanisms, not experiments. Each metric you add is a potential automatic rollback trigger — if it regresses beyond its threshold before the rollout completes, LaunchDarkly can stop and revert the release.
Start from what the release plan already uses. After surfacing the release plans in Step 2, ask: "Are the default plan's metrics enough, or do you want to add more for this specific rollout?"
When recommending additional metrics:
Suggested starting point for any guarded rollout (if not already covered by the release plan):
An environment release plan's metrics guard every release that uses the plan, and the default plan is used by most releases in that environment. This is the highest bar.
Start from the current state. After surfacing the environment's release plans in Step 2, ask: "Which plan are you editing, or do you want to create a new one? Which environments will use it?"
When recommending metrics for a release plan:
Typical strong release plan candidates: error rate, a core conversion or engagement metric, latency.
Output a clear, named list. Be explicit about what each metric is for and what's already covered:
Recommended metrics for: new checkout flow guarded rollout (environment: production)
ALREADY IN THE DEFAULT RELEASE PLAN ("Guarded rollout", production):
✓ api-error-rate (count, LowerThanBaseline)
✓ p95-latency (value, LowerThanBaseline)
ADDITIONAL — recommended for this rollout:
✓ checkout-conversion (occurrence, HigherThanBaseline)
→ Confirms the rollout isn't degrading the core conversion the feature targets
⚠ page-load-time — no recent events. Instrument the event before including it,
or remove it from the list to avoid a false rollback trigger.
Then close with next steps:
device context but the experiment randomizes on user, the event won't be attributed correctly. Confirm that the context kind in track() calls matches the experiment's randomization unit.analysisUnits entry for the plan's randomizationUnit. If the user proposes metrics with mismatched context kinds, flag it before they try to configure the plan.launchdarkly-metric-create — create a metric that doesn't exist yetlaunchdarkly-metric-instrument — add a track() call so events start flowinglaunchdarkly-release-plans — create or change an environment release plan and its metricsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub launchdarkly/ai-tooling --plugin launchdarkly56 skills in this plugin
/agent-graphsCreate and manage agent graphs — directed graphs of configs connected by edges with handoff logic. Use when building multi-agent workflows where configs route to each other./aiconfig-agent-graphsDEPRECATED 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./aiconfig-ai-metricsDEPRECATED 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.Other plugins' skills for the same job