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★ 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-engineerowns Unleash config, the flag taxonomy, and flag administration — this skill.devops-engineerowns the Unleash deployment (Helm/Argo/CI) and the secrets (UNLEASH_ADMIN_TOKEN, CF-Access service token) this skill consumes.backend-engineerowns the@fuzefront/feature-flagsclient 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
- 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-flagsauthoring checklist first. - 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.
- 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_KEYSandWEB_EXPOSED_FLAGS(owned bybackend-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 thebackend-engineercatalog 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 a302to the CF-Access login page (or a403), 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-Secretheaders). - 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
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…