provision-hetzner
This skill should be used when provisioning Hetzner sub-projects and tokens for tenant infrastructure.
от jikig-ai★ 21 звезда на GitHub
Установить provision-hetzner в 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.
Provision Hetzner
Guide the operator through Hetzner Console project creation, accept a project-scoped API token, and run a write-class smoke-test to verify scope.
Art. 32 Pre-condition
MUST run on the operator's local machine. MUST NOT run in CI. The Hetzner token is read from SOLEUR_BOOTSTRAP_HCLOUD_TOKEN when that variable is set; otherwise it is prompted for with read -rs on a TTY (credential entry is a class-1 interactive carve-out: the agent never asks for the token in chat); with neither, the script exits 64 with SOLEUR_BOOTSTRAP_INPUT_REQUIRED var=SOLEUR_BOOTSTRAP_HCLOUD_TOKEN. It is never persisted to disk, never exported beyond the smoke-test subshell, and never placed on CLI args.
Usage
soleur:provision-hetzner <tenant-slug> [--dry-run]
| Argument | Required | Description |
|---|---|---|
tenant-slug |
Yes | Canonical tenant identifier (kebab-case) |
--dry-run |
No | Print Console guidance + smoke-test commands without executing |
Execution
bash "${CLAUDE_PLUGIN_ROOT}/skills/provision-hetzner/scripts/provision-hetzner.sh" <slug> [--dry-run]
The script:
- Validates prerequisites (DPA gate, slug format,
hcloudCLI) - Displays guided instructions for Console project creation + token minting
- Accepts the token (environment variable, else the class-1
read -rsentry on a TTY, else exit 64) and, after a per-commandyesacknowledgement that has no skip variable, runs the write-class smoke-test (create + delete cx11) - Uses deterministic probe name (
probe-provision-<slug>) so orphans are findable - Trap handler ensures probe server cleanup on EXIT/INT/TERM
- Prints teardown commands on any exit
Environment
| Variable | Effect |
|---|---|
SOLEUR_BOOTSTRAP_HCLOUD_TOKEN |
Supplies the project-scoped token; the read -rs prompt is skipped. Set it for the current command only (SOLEUR_BOOTSTRAP_HCLOUD_TOKEN="$(…)" bash …), never exported into the shell. |
SOLEUR_BOOTSTRAP_SKIP_HETZNER_TOKEN_BARRIER |
Any non-empty value skips the "Token created? Type 'yes'" barrier. The smoke test that follows is the independent verification the barrier attests to, so skipping it is safe only because that test still runs. |
SOLEUR_BOOTSTRAP_LEDGER |
Run-ledger path. Default: <cwd>/.soleur/bootstrap-runs.jsonl (gitignored; the DPA gate already requires cwd to be the monorepo root). |
There is no variable for the "Create the billable probe server now?" acknowledgement. Without a TTY the script exits 64 there with SOLEUR_BOOTSTRAP_INPUT_REQUIRED var=destructive-write-ack(no-skip-variable-by-design); only a person at a terminal can answer it (hr-menu-option-ack-not-prod-write-auth). This script still uses the typed-yes TTY acknowledgement; migrating it to the staged agent-run approval gate that generated operator scripts use is tracked in #9387. The agent runs every step it can (prerequisites, instructions, verification) and hands over only that one prompt. Exit codes and eve
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/provision-hetzner.sh
FAQ
Что делает скилл provision-hetzner?
This skill should be used when provisioning Hetzner sub-projects and tokens for tenant infrastructure.
Как установить скилл provision-hetzner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл provision-hetzner запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…