flag-delete
This skill should be used to delete a runtime feature flag end-to-end (the inverse of flag-create): removes it from Flagsmith, server.ts RUNTIME_FLAGS…
от jikig-ai★ 21 звезда на GitHub
Установить flag-delete в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name":space:*::space:*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
flag-delete
Removes a runtime feature flag from all five sites — the exact inverse of
flag-create, the Delete verb of the flag CRUD set. Destructive: gated by a
dry-run, a typed-yes confirmation, and a WORM audit row written before any
mutation.
When to use
- Retiring a runtime flag whose rollout is complete (or was abandoned).
- Before deleting, run
soleur:flag-listto see the flag's blast radius (which segments/roles/orgs it targets — all destroyed by the Flagsmith cascade).
When NOT to use
- Turning a flag off without removing it →
soleur:flag-set-role <flag> <env> off. - Removing a build-time DCE flag (
dev-signin) → hand-editENV_FLAGSinserver.ts+.env.example(it has no Flagsmith feature).
When to use this skill vs other flag skills
The flag CRUD set: soleur:flag-create (Create), soleur:flag-set-role
(Update — per-role/per-org), soleur:flag-list (Read),
soleur:flag-delete (Delete — this). Initial wiring is the
${CLAUDE_PLUGIN_ROOT}/skills/flag-bootstrap/SETUP.md runbook (operator documentation, not an invocable
skill).
Arguments
#$ARGUMENTS
Required positional: <kebab-flag-name>.
Optional: --dry-run (enumerate the 5 mutations and exit before any change).
There is intentionally no --yes/--force bypass — the typed-yes prompt
always gates a real delete, and it needs a person at a terminal, because the audit row accepts only that
acknowledgement (ADR-249; staged-gate migration is tracked in #9387).
Prerequisites
- Doppler authed with access to
soleurconfigsdev,prd,cli_ops. - Worktree of the soleur repo (the script edits
apps/web-platform/+flip.sh). curl+python3+jqon PATH.
Procedure
The agent runs only the preview:
bash "${CLAUDE_PLUGIN_ROOT}/skills/flag-delete/scripts/delete.sh" <flag-name> --dry-run
The write is the one typed-yes handoff (ADR-249)
The write path asks for a typed yes through the operator-script library's TTY
acknowledgement, because the audit row this script writes records only that kind of
acknowledgement (ADR-249); moving it to the staged agent-run approval gate that
generated operator scripts use is tracked in #9387. It has no skip variable and no
flag. An agent's shell has no TTY, so a write run there stops with exit 64 and SOLEUR_BOOTSTRAP_INPUT_REQUIRED on
stdout, before any credential is fetched. Exit 64 is a refusal, never a success.
The agent therefore does every other step itself (reads, the dry-run preview,
preflight, verification) and hands over only the typed-yes write:
- Runs the script with
--dry-runand shows the preview. That mode needs no TTY and makes no writes. - Prints the exact write command below, in a fenced block, for the operator to type
at a terminal prompt (Warp), the one step an agent cannot take. It replaces
<WORKTREE>with the absolute path of the worktree that holds this change (git rev-parse --show-toplevel) and<ARGS>with `<flag-
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/delete.sh
FAQ
Что делает скилл flag-delete?
This skill should be used to delete a runtime feature flag end-to-end (the inverse of flag-create): removes it from Flagsmith, server.ts RUNTIME_FLAGS, .env.example, the flag-set-role flip.sh map, and Doppler dev+prd, with a WORM audit and typed-yes guardrail.
Как установить скилл flag-delete?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flag-delete запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…