flag-and-release-change
БесплатноБез исполняемых скриптовНе проверенDrive a pull request's change end to end: decide it's flag-worthy, create the guarding flag, wire the new code path behind it on the PR branch, and start a…
от launchdarkly★ 32 звезды на GitHubОб этом скилле
Flag & Release a PR Change
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.
Prerequisites
- The remotely hosted LaunchDarkly MCP server.
- A
gitCLI that can read and push to the PR's repository. - The composed skills available:
launchdarkly-flag-create(flag creation + code wiring) andflag-release(starting the release).should-flag-changeis 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.
Working With the Pull Request
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.
Plan Phase
Create nothing in this phase.
- Confirm it should be flagged. If
should-flag-changealready 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. - Understand the change and conventions. Read the three-dot diff and changed files — what does it do, what's the blast radius? Then follow flag-create's Step 1 to learn how this codebase already uses flags (SDK, wrapper, key constants, naming). Don't reinvent that exploration here.
- Design the flag. Usually a single boolean kill-switch around the new path (flag-create's [flag-types](../launch
Установить flag-and-release-change в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flag-and-release-change?
Drive a pull request's change end to end: decide it's flag-worthy, create the guarding flag, wire the new code path behind it on the PR branch, and start a flag release so the change ships safely when the PR merges. A portable orchestrator that composes should-flag-change, launchdarkly-flag-create, and flag-release. Keywords: flag a PR, wrap change in a flag, dark launch, kill switch, auto-release, flag release, end-to-end flag workflow.
Как установить скилл flag-and-release-change?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flag-and-release-change запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic