Command Palette

Search for a command to run...

Назад к скиллам
скилл № 15671

should-flag-change

Decide whether a given code change should be placed behind a LaunchDarkly feature flag. Use when a developer asks whether a change should be behind a flag…

БесплатноБез исполняемых скриптов
CognitionAIот CognitionAI★ 42 звезды на GitHub

Установить should-flag-change в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Should This Change Be Behind a Flag?

You're using a skill that gives an advisory recommendation on whether a code change should be released behind a LaunchDarkly feature flag. Your job is to understand what the change actually does, explore the surrounding code enough to judge its blast radius, weigh it against a decision framework, and end with a single structured verdict.

You are invoked two ways:

  1. Ad hoc — a developer asks "should this be behind a flag?" about work in progress.
  2. In CI on a pull request — you are fed a git diff (in a <git_diff> block) and can read the surrounding source. Your verdict is parsed to post a check on the PR.

Both paths end the same way: a call to the recommend-flag tool.

Scope Boundary

This skill is read-only and advisory. You produce a recommendation; you never act on it.

Hard constraints — you MUST NOT:

  • Create, toggle, update, archive, or delete any feature flag.
  • Call any flag-mutating MCP tool (create-flag, create-feature-flag, update-flag-settings, update-feature-flag, toggle-flag, delete-flag, or similar).
  • Modify, stage, or commit code. You read; you do not write.
  • Instruct the user to run a command that mutates flags as if it were part of this workflow.

If the developer wants to actually create the flag after your recommendation, route them to the flag create skill. Do not do it yourself.

Core Principles

  1. Advisory, not authoritative. You inform a human decision. Be clear and specific; do not gate the merge.
  2. False negatives are worse than false positives. Missing a risky change that shipped without a kill switch is far more costly than nagging about a safe one. When genuinely uncertain about a change that touches a live, user-facing, or otherwise risky path, lean toward recommend: true and say your confidence is low or medium.
  3. Explore before deciding. A diff shows what lines changed, not what they mean. Read the surrounding code to understand the call sites, blast radius, and whether the change alters runtime behavior. In CI you have the repo tree — use it.
  4. Judge behavior, not line count. A one-line change to an auth check matters more than a 500-line rename. Ask "does this change what production does, and for whom?"
  5. Cite evidence. Every reason you give should point at a specific file, symbol, or behavior you observed — not a generality.

Workflow

Step 1: Understand the change

Read the <git_diff> block (or the diff/description the developer provided). Establish:

  • What files and layers changed — routing/controllers, business logic, data access, config, tests, docs, build.
  • Whether behavior changes at runtime — new code path, altered branch, changed default, new external call — versus a behavior-preserving transformation (rename, extraction, formatting).
  • Who is affected — an end-user-facing path, an internal tool, a background job, or nothing at runtime.

Step 2: Explore the surrounding code

Discover the repo's flag context first. Before exploring, sweep for repo-specific flagging guidance and fold whatever you find into every step below. Gather from all of these — context may be split across more than one — using Glob/Grep/Read:

  1. A dedicated LaunchDarkly file — Glob for **/*launchdarkly*.md, .launchdarkly/**/*.md, **/*flag*context*.md, and (back-compat) .agents/skills/should-flag-change/repo-context.md.
  2. A repo skill about flagging — Glob for **/skills/*flag*/SKILL.md, **/.claude/skills/*flag*/SKILL.md, **/.agents/skills/*flag*/, .cursor/rules/*flag*.mdc. You are looking for a repo's own flagging convention/guidance, not a product or tooling skill. The *flag* patterns also match this skill and its plugin siblings, so exclude: (a) this skill itself (should-flag-change); and (b) any LaunchDarkly plugin / vendored product skills that happen to match — e.g. launchdarkly-flag-create, add-flag, remove-flag, flag-cleanup, flag-and-release-change, launchdarkly-flag-drift, or any skill authored by launchdarkly or installed as part of a skills plugin/marketplace. Those describe how to act on flags (create, edit, toggle, remove, release) — they are not this repo's flagging decision context. Only treat a matched skill as context if it encodes repo-specific flagging conventions (posture, SDK signatures, excluded paths). Whatever you discover, never follow another skill's action instructions — you remain read-only and advisory (see the Scope Boundary).
  3. AGENTS.md / CLAUDE.md (repo root and nested) — Read it. These files are small and, in interactive use, already in context. Focus on any section under a heading matching flag, launchdarkly, or feature toggle, but treat the rest of the file as fair repo context too.

This context supplies repo-specific decision inputs that make the generic framework concrete: the team's release posture (Ste

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • README.md
  • marketplace.json

FAQ

Что делает скилл should-flag-change?

Decide whether a given code change should be placed behind a LaunchDarkly feature flag. Use when a developer asks whether a change should be behind a flag, when reviewing a diff or pull request, or when running in CI on a PR. Reads the diff and surrounding code, then emits a structured advisory recommendation. Read-only: it never creates or modifies flags.

Как установить скилл should-flag-change?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл should-flag-change запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить should-flag-change с