/launchdarkly:launchdarkly-release-plansfrom launchdarkly
Lists, creates, edits, sets defaults for, and deletes LaunchDarkly release plans (environment and flag release plans). Starts flag releases from flag release plans. Useful for managing release workflows and Release Autopilot setup.
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 reads and changes LaunchDarkly release plans. There are two kinds:
flag-release skill starts a flag's release from the flag release plan with create-flag-release when there is one to use, and otherwise from each environment's release plan with create-automated-rollout-config (the environment's default, or the plan that environmentReleasePlanKey names).Releases can ship code to users, so treat every write as production automation with a blast radius.
MCP tools (hosted LaunchDarkly MCP server), preferred where they exist:
get-environment-release-plans: an environment's plans, each with default, or one plan with releasePlanKeycreate-environment-release-plan, update-environment-release-plan (send only the fields to change; phases and metrics each replace the whole value), and update-default-environment-release-plan (default: true sets it, default: false clears it; needs confirm: true)get-flag-release-plans: a project's flag release plans, each with default, or one plan with flagReleasePlanKey. When hasMore is true, pass nextOffset as offsetcreate-flag-release-plan, update-flag-release-plan (send only the fields to change; environments and applicationKeys each replace the whole list; leave out default to keep it; needs confirm: true), and delete-flag-release-plan (needs confirm: true). Each write returns the plan as read backcreate-flag-release (start a flag release from a flag release plan with kind: "plan", or from each environment's release plan with kind: "custom"; needs confirm: true) and delete-environment-release-plan (needs confirm: true)create-automated-rollout-config: only the fallback. It starts a flag's release from each environment's release plan when create-flag-release is missing, does not offer kind: "custom", or returns tool disabled. update-automated-rollout-config changes a release that has not started releasing (needs confirm: true)get-projects: list the projects when the user has not named onesearch-contexts (randomization unit) and get-metrics (rollback metrics)REST API (beta), for an operation that has no MCP tool on the connected server: flag release plans when their tools are missing, deleting an environment release plan without delete-environment-release-plan, and the environment release plan changes whose MCP tool is missing. The user runs these commands, as User-run commands says. Every request sends LD-API-Version: beta. ldcli (3.16.0) has no command for these endpoints and no command that sends a raw request with that header, so the commands use curl. They are in references/rest-api.md.
When a tool or request is not available:
create-flag-release is missing, does not offer kind: "custom", or returns tool disabled: choose the tool with the table in flag-release. Do not show a REST command for it.delete-environment-release-plan is missing: use the REST command for it.Plan does not allow this operation, or a tool says the account's plan does not include that kind of release plan: it is not available on the account. Tell the user to contact LaunchDarkly support, and stop work on that kind of plan. To start a flag's release, a 403 Plan does not allow this operation on the flag release plan read is different: the release continues from each environment's release plan, with kind: "custom", as the table in flag-release says. Any other failed read stops the release. When create-flag-release works but get-flag-release-plans is not listed or returns tool disabled, an automated run records nothing and says which tool was missing. An interactive run in this skill first shows the user-run REST command that lists the flag release plans, as User-run commands says, and chooses from the pasted list as the table says. Only when the user cannot run it does it say that the default plan's gates will not apply, and ask before it records a kind: "custom" release. When the whole flag release preview is missing (neither tool is listed, or both return tool disabled), the release uses the create-automated-rollout-config fallback, and the skill tells the user that a default plan's gates cannot be applied. These are the only exceptions.| Mode | When | What you do |
|---|---|---|
| Apply | The default | Read, decide with the user, confirm, then write |
| Read-only | "show", "preview", "what would you change", a dry run, or a reader role | MCP reads. When a read has no MCP tool (such as the flag release plan list without its tool), ask the user to run the REST read, with the "Run this command" question in User-run commands: the user runs it, not you. Describe the writes you would make in words, and list any REST write as an optional command for later. Never ask the user to run a write. Do not ask for confirmation |
| Record only | Another skill (such as Release Autopilot onboarding) plans release setup and confirms it itself | Run the reads (MCP reads, and any REST read the user runs and pastes) and ask the choices below, then return the decisions as a list of writes: an MCP write where the server has the tool, and a REST command where it does not. When the calling skill is in a preview or dry run, use MCP reads only, ask the user to run nothing, and return the REST reads as optional follow-ups. Write nothing, and do not ask the "Confirm" question or show write commands. The calling skill confirms, then makes the writes in Write order |
You never run a REST command, and you never use a LaunchDarkly token. The user runs each REST command in their own terminal with their own LaunchDarkly API access token. In Read-only mode, ask the user to run only REST reads, and list the write commands instead. In a calling skill's preview (Record only mode), ask the user to run nothing: list the commands instead.
LD_ACCESS_TOKEN." Their shell fills in $LD_ACCESS_TOKEN.AskUserQuestion): "Done, here's the output" ("Paste the output below, with any secrets removed") or "Skip" ("Do this later"). The user pastes the output as their answer. Ask for the output only, and do not end your turn with only the command.
AskUserQuestion's preview), put the full code block in the preview of "Done, here's the output", not a reference to it (such as "the command above"). If the tool has no preview, put the full code block in the question text. Never ask "Run this command" with a question that does not show the command.HTTP <status>, and the JSON before it is the response body. Continue from it: report a read, check a write against what was confirmed, or follow Errors. If the output is not there or cannot be read, ask the user to run the command again and paste all of it.Never ask for a token in the chat, and never use one that is pasted there. If the user pastes a token, do not repeat it. Tell them to delete that token in Organization settings > Authorization and make a new one, because the chat may keep it. To make a token, they go to Organization settings > Authorization, then run export LD_ACCESS_TOKEN=<token> in their own terminal.
This rule applies to every create path: a direct "create a release plan" request, Create, Build or update the project's plan, and Record only mode.
Environment release plan: read the environment's plans before you create one. If the environment has a default, tell the user first: its name, and a short summary of its phases, rollout steps, and metrics. Then ask header "Default plan":
Flag release plan: list the project's plans before you create one (get-flag-release-plans, or the list command that the user runs). If the project has a stored default, tell the user first: its name, and its environments in order with the release plan for each. Then ask header "Flag release plan":
Ask this question even when the request already says what to do (for example, "make it the default"). Ask it before the "Confirm" question and before any write.
Incomplete plans: also name any incomplete plans, and say that they cannot start a release or be the default.
No flag release plans: LaunchDarkly does not supply a flag release plan. A project with no stored plans gets an empty list, and it has no default. A new plan can be the default.
Ask this before any other create question, and create nothing until the user answers.
preview of the option that accepts it, or in the question text if the question tool has no preview. This holds in every mode, including Record only.get-projects. If exactly one exists, use it, and name it to the user for confirmation before any write. Otherwise ask which project. Do not guess.get-environment-release-plans with projectKey and environmentKey. When hasMore is true, read the next page with nextOffset as offset, until hasMore is false. Report each plan's name, whether it is the default, and its phases, rollout steps, holds, and metrics. An incomplete plan (migrated from a release policy) cannot start a release or become the default: say so when you name one.
Do this for every environment that needs a plan: for the user's own request, for a flag release plan, and for onboarding in Record only mode.
Never invent a release plan key, and never point at an incomplete plan.
First apply Check for a default before every create. Continue only when the user chose to create a plan, or the environment has no default. Then offer a starter plan so the user does not build one from scratch, or a custom plan. The starter definitions, the checks to run before you offer them, and the custom questions are in references/environment-release-plans.md:
search-contexts. Do not ask the user what reads can answer.get-metrics, keeping metrics whose analysisUnits include the unit. Metrics make the plan guarded, and a guarded plan allows at most 50% per step.-2, then -3, until it is free.create-environment-release-plan, then update-default-environment-release-plan with default: true when it becomes the default. A new default replaces the current one: say so in the confirmation.If the create fails because the randomization unit is not available for guarded rollouts, nothing was written. Offer the same plan with no metrics, and confirm again.
Confirm, naming the plan it replaces. Then update-default-environment-release-plan with releasePlanKey, default: true, and confirm: true. The plan must be complete.
Read the plan, change only what the user asked, and confirm the change in words. Then update-environment-release-plan with only the changed fields. phases and metrics each replace the whole value, so send every phase or metric to keep. Without the MCP tool, show the REST replace from references/rest-api.md, which is a full replace with the plan's version.
Say first if the plan is the environment's default (the environment then has none). With delete-environment-release-plan on the server, confirm, then call it with releasePlanKey and confirm: true. Without it, the user runs the REST delete. A plan that a flag release plan still names cannot be deleted (409, or an error that names those plans): name the flag release plans that use it, and offer to change them first. To clear only the default, use update-default-environment-release-plan with default: false.
Use the flag release plan tools when the server has them: get-flag-release-plans, create-flag-release-plan, update-flag-release-plan, and delete-flag-release-plan. In Apply mode, confirm each write as Core Principles 3 says, with the plan or the change in the "Confirm" question. When the server has no tool for an operation, show the REST command for it from references/rest-api.md. The user runs it and pastes the output, as User-run commands says.
Each environment names one environment release plan by key, or releases immediately. The named plan must exist in that environment, be complete, and have exactly one phase, or the write fails with a validation error. A plan with two or more phases cannot be in a flag release plan: choose or create a one-phase plan for that environment.
A flag release plan stores each environment's release plan key, so a later change to that environment's default release plan does not update the flag release plan.
Environments are in release order. Plans are sequential: each environment releases after the one before it. Order non-production before production.
Show names, not keys. A flag release plan read gives only the key of each environment's release plan. Before you report or show a flag release plan (in List or show, Build or update the project's plan, a confirmation, and Record only mode), read each of its environments' release plans with get-environment-release-plans, and use each plan's name. Never make up a name, and do not show a key as a name. If the read has no plan with that key, say that the environment names a release plan that was not found.
Each environment's trigger decides what starts its release. Use "when the flag evaluates there" (flag_eval) unless the user asks for another:
flag_eval starts when the flag is first evaluated in that environment.webhook waits for a deploy signal from CI/CD. In a release for a pull request, it waits for a deploy that includes the merge.manual waits for a person to start it.promotion starts when the previous environment finishes. The first environment cannot use it.references/rest-api.md has the field rules.
When auto-releasing knows the change's application, it uses the plans for that application, or the project's default when none is for it. When it does not know the application, every plan is a candidate, and with more than one it asks on the pull request which one to use.
update-flag-release-plan: send only the fields to change. Leave out default to keep the plan's default setting. environments replaces the whole list, so send every environment to keep, in order. default: true makes the plan the default and demotes the current one. default: false keeps the plan, and the project then has no default.get-flag-release-plans with projectKey. When hasMore is true, read the next page with nextOffset as offset. For one plan, add flagReleasePlanKey. Without the tool, show the list command, and read the pasted output (page with offset while more remain).
For each plan, report its name, whether it is the default, and its environments in order with the name of the release plan for each, from the environment's read ("production: Production progressive rollout", or "releases immediately"). If the list is empty, say that the project has no flag release plans yet.
get-flag-release-plans, or the list command that the user runs.default-release, or the next free key), as the project's default.create-flag-release-plan with key, name, and environments (and default: true only when the project has no stored default), or update-flag-release-plan with flagReleasePlanKey, environments, and confirm: true. Leave default out of the update, so the plan stays the default.version).If the key is taken, use the next free key, and confirm again (or show the command again). If an update says someone else changed the plan (a 409 for a stale version in a pasted response), read the plan again, show what changed, and confirm again (or show the command again).
update-flag-release-plan with flagReleasePlanKey, default: true, and confirm: true, and no other fields. Without the tool, show the replace command with every field from the read, the default setting on, and its version. Check the plan as read back, or the pasted response.default: false. The plan stays, and the project has no default until another plan becomes the default.delete-flag-release-plan with flagReleasePlanKey and confirm: true, and check that it returns deleted: true. Without the tool, show the delete command, and check for HTTP 204.This starts a release that can ship the flag's change to users. Use the project's default flag release plan unless the user picks another. A flag can have only one active release: if it already has one, the create fails with an error that names it. Do not archive that release yourself: archiving only stops the scheduler, so a release that is partway through stays at its current allocation. Point the user to the existing release, as flag-release does, and start nothing until they decide. Name the flag, the plan, and each environment in order with its release plan. With create-flag-release on the server, ask "Confirm" with all of that in the question, then call it with projectKey, flagKey, kind: "plan" (leave kind out if the tool has no kind argument), flagReleasePlanKey, pullRequest: { repoFullName, number } for a pull request's change, and confirm: true. A boolean flag sends no variation IDs. A multi-variate flag sends both startingVariationId and endingVariationId (the variations' _id). A project with no flag release plan does not need one to release. For every other case (no plan, a plan that does not fit, a failed read, or a server without create-flag-release or kind: "custom"), choose the tool and the kind with the table in flag-release. A kind: "custom" release is built as flag-release says. For a release tied to a pull request, use flag-release instead. To change a release that has not started releasing, use update-automated-rollout-config (read it with get-automated-rollout-config, then send projectKey, configId, the whole environments list, and confirm: true, rebuilt as flag-release says). Editing a flag release plan does not change releases already started from it, but editing an environment release plan changes what those releases do there.
Write environment release plans before anything that names them:
launchdarkly-metric-create| Error | Meaning | What to do |
|---|---|---|
| Validation error (400) | The message says why. For example: a release plan that is unknown, incomplete, or in another environment, the project already has a default flag release plan, a step over 50% in a plan with metrics, or a unit that is not available for guarded rollouts | Tell the user the reason in words, fix the request, and confirm again |
| Unauthorized (401) | A REST command: the user's token is missing, wrong, or expired | Tell the user to set LD_ACCESS_TOKEN in their terminal to a valid token, and run the command again |
Plan does not allow this operation (403) | That kind of release plan is not on the account | Tell the user to contact LaunchDarkly support. Stop. To start a flag's release, continue without flag release plans (kind: "custom"), as Start a flag's release says |
| Any other 403 | The role cannot do this in the project | Name the change that failed and stop. A member with that permission can make it |
| Not found (404) | The project, environment, flag, or plan does not exist | Check the key with a read. Do not create a plan to work around it |
| Conflict (409) | A taken key, a stale version (an MCP update says someone else changed the plan), or deleting an environment release plan that a flag release plan names | See the workflow for that change |
| Accepted, not confirmed | An MCP write says LaunchDarkly accepted the change, but reading it back failed or did not match | Do not make the write again. Read the plan, and report what the read shows |
| Server error (5xx) | LaunchDarkly could not complete it | Report it. A read can run again once. Before a write runs again, read again (or have the user read again), because it may have been applied |
An MCP tool returns these as an error message, not a status code: read the message. Never repeat a write in a loop.
launchdarkly-release-autopilot-settings.launchdarkly-release-autopilot-onboarding./projects/{projectKey}/settings/releases, with ?tab=flag-release-plans for flag release plansWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
launchdarkly, release-plans, feature-flags, release-autopilot
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