flag-release
Record an automated rollout for an existing LaunchDarkly flag that guards a pull request's change, so the change releases safely when the PR merges. Honors a…
от CognitionAI★ 42 звезды на GitHub
Установить flag-release в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Record a Flag's Automated Release
You're using a skill that takes an existing feature flag (created OFF) that guards a pull request's change, and records an automated rollout so the change releases safely once the PR merges — no human toggling a flag. It defers per-environment to the team's release policies and honors any human-stated release intent.
This is the release step of the PR flag workflow, and it's deliberately atomic:
| Step | Owned by |
|---|---|
| Decide whether to flag | should-flag-change (advisory) |
| Create the flag + wire the code | launchdarkly-flag-create |
| Record the release | this skill |
By the time this skill runs, the flag exists (OFF) and the guarding code is wired and pushed. This skill only records the rollout — it never creates flags or edits code. It can be driven directly by an automation harness, or as the final step of the flag-and-release-change orchestrator.
The deploy is not the release. The merge ships the control path (flag OFF); the release is the flag operation this rollout performs afterward, governed by the environment's policy.
Honoring a hold is the one thing you must get right. There is no "hold" release type, and
policyis NOT a manual gate. On merge,policyautomatically performs the environment's release (immediate, progressive, or guarded) with no human promotion step — a guarded rollout still starts on its own the moment the PR merges. So recording a held environment aspolicydoes not hold it; it releases it on merge, before anynotBeforedate. The only way to hold an environment is to omit it from theenvironmentsarray entirely, which leaves the flag OFF there. If the user wants an environment held (or not released until a date), exclude it from the call and report it as held. When in doubt, omit.
Prerequisites
- The remotely hosted LaunchDarkly MCP server.
- The guarding flag already exists in LaunchDarkly, created OFF, with the agreed key/tags.
- A pull-request reference (
repoFullName+prNumber, orprUrl) so the rollout binds to the right merge.
MCP tools this skill uses:
create-automated-rollout-config— record the rollout for the flag against the PR (the deliverable)match-release-policies— resolve which release policy governs each environment (call before proposing the plan)list-release-policies— see the project's release policies and the metrics they auto-attachget-flag— confirm the flag exists and is OFF before recording
Full release model — simple vs policy, precedence, previewing, prerequisites, metric adequacy: references/auto-release.md.
Plan Phase
Record nothing in this phase.
- Confirm the flag.
get-flagto verify the guarding flag exists and is OFF. If it doesn't exist yet, stop — creation islaunchdarkly-flag-create's job, and recording a rollout for a missing flag fails confusingly. - Pick the target environments. Use the environments named by the user or harness. Don't hardcode a set — a given change can't always release to every environment. If none are named, enumerate the project's real keys and confirm the set rather than assuming.
- Preview each environment's policy. Call
match-release-policies(byflagKey+environmentKey) to resolve, deterministically, what apolicyrelease will do per environment —winningReleaseMethod(immediate / progressive / guarded / none). Don't reason about policy scope by hand. For a guarded winner, check the auto-attached metrics can actually compare this change (see the metric-adequacy note in references/auto-release.md). - Capture the human's release intent. Ask (briefly, only if not already stated): release on merge, hold (recorded but not released yet), or wait until a
notBeforedate? A cohort/segment to target first? A prerequisite parent flag this must not precede? Intent sits above the policy in precedence and is honored or explicitly held — never silently dropped. - Present the per-environment plan and stop. For each environment, state either the
releaseTypeit will be recorded with (simple/policy, and what that does on merge) or that it will be held — omitted from the recorded config so the flag stays OFF there — with the reason. Wait for confirmation; revise on feedback.
Implement Phase
Only after confirmation:
Sort every target environment into exactly one bucket — RELEASE or HOLD. Do this before you build the call. There is no third bucket, and
releaseTypedoes not create one.Bucket Meaning What goes in the call RELEASE Goes live on merge — now, or per its policy Add `
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- README.md
- marketplace.json
- references/auto-release.md
FAQ
Что делает скилл flag-release?
Record an automated rollout for an existing LaunchDarkly flag that guards a pull request's change, so the change releases safely when the PR merges. Honors a stated release intent (release now / hold / notBefore / segment / prerequisite) and defers per-environment to the project's release policies. Use as the release step once the guarding flag exists and its code is wired. Keywords: record release, automated rollout, release policy, guarded rollout, staged rollout, simple vs policy, release intent, hold release, dark launch.
Как установить скилл flag-release?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flag-release запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…