Command Palette

Search for a command to run...

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

unleash-flag-enable

Use to ENABLE, ramp, or roll back a named feature flag in the family's self-hosted Unleash — turning an already-shipped, dark (default-OFF) release flag ON in…

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

Установить unleash-flag-enable в Claude Code и Claude Desktop

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

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

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

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

Enable a feature flag in Unleash

The feature-flags skill covers authoring a flag (type, naming, default, reading it in code, testing both states). This skill covers the other half: operating the toggle — turning a shipped, dark flag ON, ramping it, GA-ing to 100%, or rolling it back — against the family's self-hosted Unleash, as a repeatable procedure instead of a hand-copied runbook that drifts.

Scope boundary (do not blur these — feature-flags skill has the full split):

  • feature-flags-engineer owns Unleash config, the flag taxonomy, and flag administration — this skill.
  • devops-engineer owns the Unleash deployment (Helm/Argo/CI) and the secrets (UNLEASH_ADMIN_TOKEN, CF-Access service token) this skill consumes.
  • backend-engineer owns the @fuzefront/feature-flags client package build, including the browser-exposed catalog (WEB_EXPOSED_FLAGS) — see the catalog gotcha below.

Enabling a flag is not a substitute for authorization. A permission flag is rollout convenience; real entitlement stays in Permit (permit.check). Never flip a flag ON believing it gates access — it gates visibility/rollout, not security.

Before you flip: three preconditions

  1. The flag is default-OFF in code and both states are tested. If it isn't shipped dark and proven in both directions, you are releasing untested code with a toggle, not operating a flag. Stop and finish the feature-flags authoring checklist first.
  2. An owner decision authorizes the target state. Record who decided and the target (e.g. "GA 100%, no segment, prod") — in the flag's Unleash description and the PR/issue that requested it. An enable with no named owner is an unaudited production change.
  3. For a browser-visible flag: it is in WEB_EXPOSED_FLAGS. See the catalog gotcha — this is the single most common "I flipped it and nothing happened" cause.

The browser catalog gotcha — read this before enabling any UI-facing flag

The browser does not read Unleash directly. It reads GET /api/flags, which returns only the keys listed in packages/feature-flags/src/catalog.ts's WEB_EXPOSED_FLAGS. The frontend useFlag(key, default) hook returns the caller's hardcoded default whenever the key is absent from that response — so a UI flag that is not in WEB_EXPOSED_FLAGS reads as permanently its default no matter what Unleash says.

  • Server-only flags (consumed via getClient().getBooleanValue(...) on the backend) take effect on the Unleash flip alone — they are deliberately NOT web-exposed.
  • Browser-visible flags need their key in both FLAG_KEYS and WEB_EXPOSED_FLAGS (owned by backend-engineer), merged and deployed, before or alongside the Unleash flip — otherwise the toggle is green and the UI stays dark, which reads as "the flag is broken" when it is working server-side. Confirm this first; if the key is missing, file/confirm the backend-engineer catalog change as a blocking predecessor.

Reachability + credentials — the wall, and how CI gets past it

Unleash is FuzeFront-hosted. The admin API is reachable two ways, and an ad-hoc interactive session usually has neither:

  • Prod host https://unleash.prod.fuzefront.com — Cloudflare-Access-gated. An unauthenticated request gets a 302 to the CF-Access login page (or a 403), never the API. A browser session with CF-Access SSO can drive the Unleash UI by hand; a programmatic caller needs a CF-Access service token (CF-Access-Client-Id / CF-Access-Client-Secret headers).
  • In-cluster http://fuzefront-unleash:4242 — reachable only with cluster access: kubectl -n fuzefront port-forward svc/fuzefront-unleash 4242:4242. Not resolvable from outside the cluster.

The admin API token is in the unleash-secrets Secret (INIT_ADMIN_API_TOKENS) — never in an app repo, never printed. A frontend/proxy token (for verification via /api/frontend) is a separate, lower-privilege token; use it for read-back and revoke it after.

Because an interactive/agent session generally cannot reach the admin API, the durable answer is the dispatchable workflow below — it runs in CI, where the token lives as a secret, so the flip happens through workflow_dispatch instead of hunting for an operator with a CF-Access session. This is the recommended path; the raw curl procedure is the fallback and the thing the workflow itself runs.

The procedure (Unleash Admin API)

Three distinct switches — a flag evaluates ON only when all three line up: it exists, its environment is enabled, and it has an enabling strategy. A flag with a strategy but a disabled environment still evaluates OFF.

UNLEASH="${UNLEASH_ADMIN_URL:-http://localhost:4242}"   # in-cluster port-forward, or the CF-Access host
TOKEN="$UNLEASH_ADMIN_TOKEN"                             # from unleash-secrets INIT_ADMIN_API_TOKENS — never echo it
PROJECT="${UNLEASH_PROJECT:-default}"
ENVIRONMENT="${UNLEAS
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл unleash-flag-enable?

Use to ENABLE, ramp, or roll back a named feature flag in the family's self-hosted Unleash — turning an already-shipped, dark (default-OFF) release flag ON in an environment, ramping a flexibleRollout percentage, GA-ing to 100%, or breaking-glass an ops-kill-switch. Covers the idempotent Unleash Admin API procedure (create-if-absent, enable the environment, add/patch the flexibleRollout strategy), the credential + reachability reality (CF-Access-gated prod host / in-cluster port-forward, the admin token, the browser WEB_EXPOSED_FLAGS catalog gotcha), a dispatchable GitHub Actions workflow that performs the flip from CI, verification of BOTH states, and rollback. Owned by feature-flags-engineer. Pairs with the `feature-flags` skill (which covers authoring/coding a flag); this one covers operating the toggle.

Как установить скилл unleash-flag-enable?

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

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

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

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

Сравнить unleash-flag-enable с