/launchdarkly:flag-and-release-changefrom launchdarkly
Orchestrates end-to-end feature flag workflow for a PR: decides if a change needs a flag, creates the LaunchDarkly flag, wires the code path, and starts a flag release so the change ships safely when merged.
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.
Read when SKILL.md points to them.
You're using a skill that takes a pull request whose change should ship behind a feature flag and drives it end to end: decide it needs a flag, create the guarding flag, wire the new behavior behind it on the PR's branch, and start a flag release so the change ships safely once the PR merges.
The deploy is not the release. The merge ships the control path — the flag is created OFF, so deployment always serves the pre-change behavior. The release is the flag operation the flag release performs afterward, governed by the project's flag release plan when it has one, and by the environment release plans. Creating the flag OFF and starting the release are deliberately separate things.
This skill is a portable PR orchestrator. It doesn't own the flag mechanics or the release mechanics — it composes three focused skills and adds the PR workflow (read the diff, work in a clone, push to the branch) plus the plan→implement sequencing:
| Step | Owned by | This skill's role |
|---|---|---|
| Decide whether to flag | should-flag-change (advisory, read-only) | Act on a "yes"; make the call yourself if it wasn't run |
| Create the flag + wire the code | launchdarkly-flag-create | Invoke it against the change; don't re-teach flag creation or SDK patterns |
| Start the release | flag-release | Hand off once the flag exists and the code is pushed; don't re-teach rollout mechanics |
Don't duplicate any composed skill's mechanics here. This skill's only unique content is the PR wrapper (clone, three-dot diff, commit/push to the branch) and the plan→implement flow that stitches the three together.
Automation note. An orchestrating harness (e.g. a PR pipeline) can skip this skill and invoke the three composed skills directly —
should-flag-change→launchdarkly-flag-create→flag-release— driving the git and sequencing itself. This skill is the portable, human-in-the-loop path for a developer working a PR by hand.
You work in two phases — plan, then implement — and you check in with the user in between. Never create or modify anything during the plan phase.
git CLI that can read and push to the PR's repository.launchdarkly-flag-create (flag creation + code wiring) and flag-release (starting the release). should-flag-change is used if the flag decision hasn't been made.MCP tools are used via the composed skills — create-flag/get-flags through flag-create, get-flag-release-plans/get-environment-release-plans/create-flag-release/create-automated-rollout-config through flag-release. create-flag-release starts a flag release, from a flag release plan (kind: "plan") or from each environment's release plan (kind: "custom"). The second is a normal path: a project without a flag release plan is not blocked. create-automated-rollout-config is only the fallback for a server whose create-flag-release does not offer kind: "custom". This skill calls none directly.
Work from a clone so you can read the change and push the flag wiring back to its branch. Use the git access the user already set up for this repository. Never ask for, print, or store tokens, and do not search environment variables, .env files, or credential files for them.
git clone https://github.com/<owner>/<repo>.git && cd <repo>
git fetch origin pull/<pr_number>/head
git diff origin/HEAD...<head_sha> # three-dot: change relative to the PR's base
The three-dot diff (base...head) shows exactly what the PR introduces. Read the changed files you need to understand the change and its risk. Stay in this clone through both phases — in implement you edit, commit, and push here. Full PR mechanics (clone, three-dot diff, commit/push to the branch): references/pr-wiring.md.
Create nothing in this phase.
should-flag-change already ran, act on its verdict. Otherwise apply the same judgment: favor a flag for user-facing or risky changes; skip config-only, dependency-bump, infra, test-only, or docs changes. If a flag clearly isn't warranted, say so and stop.should-flag-change) surfaced a dependency on a parent flag/feature that isn't live yet, note it — the release step can couple them with a prerequisite.flag-release's plan phase: find the project, choose how to start the release (the flag release plan, or each environment's release plan), preview each environment release plan (the plans don't depend on the flag, so this works before the flag exists), capture the human's release intent (release on merge / hold / notBefore / segment / prerequisite), and check that the release honors it. Don't re-derive the release model here: that's flag-release's job.key, name, boolean, tags) and why it gates this change; where in the code the guard goes; how the release starts (the flag release plan, or each environment's release plan), the per-environment release plan + captured intent (and anything to be held or not part of the release). If the flag release plan does not fit the intent, say that the release starts from each environment's release plan instead, and why. Then wait. Revise on feedback; proceed only on clear approval. Ask a focused question if you're genuinely missing something (project key, environments) rather than guessing.Only after approval:
launchdarkly-flag-create (its Steps 3–4): flag created OFF with the agreed key/tags, guarding evaluation added with a safe default matching the codebase's pattern. Fail closed on creation errors: only an "already exists" result is success-via-reuse. Any other create-flag failure (auth, permissions, not-found, server error) is a hard stop — do not wire the code, start the release, or report success. A false "flag created" yields a green PR referencing a flag that doesn't exist, worse than an honest failure. Surface the error and stop.flag-release's implement phase: it starts the flag release from the agreed plan, honoring the captured intent (it starts nothing that would release a held environment) and returns a config_id. Don't re-teach the release mechanics here.config_id; what was held (and why) versus what releases on merge. Report only what you verified.| Situation | Action |
|---|---|
| Change isn't flag-worthy | Explain why (config-only, dep bump, infra, test-only, docs) and stop. Don't create a flag. |
| Flag already exists | Reuse it — "already exists" is success. Wire the existing key; don't duplicate. |
| Flag creation fails for any other reason (auth, permissions, 5xx) | Hard stop. Don't wire code, start a release, or claim success — surface the error. |
| Codebase has no LaunchDarkly SDK | Wiring can't evaluate a flag — SDK install is separate (onboarding/sdk-install). |
| Guarding needs more than a boolean | Prefer a boolean kill-switch. Only go multivariate if the change serves distinct variants; see flag-create's flag-types. |
Release-specific cases (hold/notBefore, prerequisites, no fitting flag release plan, an active release, no useful metric) | Handled by flag-release — see its edge cases. |
launchdarkly-flag-create and flag-release. Link to them.should-flag-change: the flag-worthiness decision.launchdarkly-flag-create: flag creation + per-SDK guarding patterns.flag-release: starting the flag release (and its auto-release.md release model).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./aiconfig-createDEPRECATED redirect — this skill was renamed to configs-create. Do not use this skill; invoke configs-create instead. Kept only so old references to aiconfig-create still point users to the new name./aiconfig-custom-metricsDEPRECATED redirect — this skill was renamed to custom-metrics. Do not use this skill; invoke custom-metrics instead. Kept only so old references to aiconfig-custom-metrics still point users to the new name./aiconfig-migrateDEPRECATED redirect — this skill was renamed to migrate. Do not use this skill; invoke migrate instead. Kept only so old references to aiconfig-migrate still point users to the new name.Other plugins' skills for the same job