deploy
БесплатноЗапускает вложенные скриптыНе проверенGitHub Actions deployment: workflows, releases, GHCR, CI/CD with safety gates. Triggers: deploy, release, workflow.
от kochetkov-ma★ 41 звезда на GitHubОб этом скилле
[DICT: P=Phase, EXEC=EXECUTE using Bash tool, AUQ=AskUserQuestion, WF=workflow, CFG=config, REF=references, GH=gh CLI, TPL=template]
GitHub Actions Deployment
Prompt contract
$ARGUMENTS is one free-form RU/EN prompt; mode tokens and flags may sit anywhere in it.
- Mode: an explicit mode token wins outright; else the most distinct whole-word keyword hits
(table in P0). Scored tie with monitor -> read-only monitor; other ties -> ask before actions.
No hit or empty ->
setup(no GH CFG) ormonitor(GH CFG exists). - Scope: prose that is not a mode/id/path is still input: take the id, path or target from it.
- Ask: at most ONE
AskUserQuestion(max 4 questions) to resolve mode and scope, before any work, only when the answer changes what gets written (e.g.releasevsdeploy).monitor/checkask nothing. P4/P5 confirmation gates cover the destructive cases separately.
Print once, before the first mutation — P0 is its home for mutating modes; monitor prints it
immediately before its P6 report (labels and plan values English, INPUT verbatim):
PLAN — brewtools:deploy
INPUT: <arguments verbatim, or "(empty)">
MODE: <resolved> — <explicit | matched keyword: X | default>
SCOPE: <resolved paths / target / level / flags>
DO: <2-5 imperative bullets>
RESULT: <what the user ends up holding>
Robustness Rules (MANDATORY — ALL phases)
Fail-Fast
| Rule | Scope |
|---|---|
Every Bash call reports OK/FAILED and preserves non-zero status; && echo "OK ..." || { rc=$?; echo "FAILED ..." >&2; exit "$rc"; } |
ALL scripts; probe/no-data exceptions stay explicit |
| On FAILED: stop the phase and report, !=retry blindly; max 2 retries per op | ALL |
| Script exits non-zero: read stderr, fix root cause, retry ONCE | Scripts |
Loop Protection
gh auth attempts: max 2, then AUQ. GH commands per phase: max 5. AUQ per phase: max 3. update-agent mode WFs per run: max 5.
Timeouts — always via ght, never bare timeout
GNU timeout is Homebrew-only on macOS (a bare bound exits 127 before gh runs), so every bounded call sources:
. "${CLAUDE_SKILL_DIR}/scripts/lib/deploy-common.sh" # provides ght, ght_backend, ght_reason
| Op | Bound | On non-zero |
|---|---|---|
| GH CLI cmds | ght 30 gh ... |
classify with ght_reason $?: timeout / no_tool / failed, never one sentinel |
gh run watch |
ght 900 gh run watch <id> --exit-status |
report the run URL + the last failing job |
| Entire invocation | max 15 GH calls total | stop, report progress, suggest manual |
no_tool(127) = gh itself is missing, !=a GitHub outage. A failed bound → includeght_backend.
Fallback Strategy
Report the exact error, then run the op by hand (scripts are helpers, not gatekeepers); both fail →
report both + AUQ. !=continue on stale/missing data. Manual: detect-mode.sh → keyword-match the
prompt against the P0 table; gh-env-check.sh → gh auth status, gh repo view --json name, gh secret list;
workflow-discover.sh → ls .github/workflows/, gh workflow list, gh run list -L 5;
deploy-local-ops.sh → Read/Edit CLAUDE.local.md directly.
Error Reporting (MANDATORY)
On ANY failure, before stopping or AUQ:
SCRIPT_ERROR: <name>
EXIT_CODE: <code>
STDERR: <message>
PHASE: <current>
ACTION: <attempted>
FALLBACK: <next OR "asking user">
Delegation (any Agent spawn, e.g. deploy-admin)
This skill owns every spawn and acceptance; delegates never nest and return unresolved decisions. One SA = ONE deliverable (~5 files, ~10 steps), ONE repo, ONE environment; more → N tasks in ONE message.
Every spawn brief carries six labeled fields, since a subagent starts with an empty context: GOAL (task + why), ROLE (owns, must not touch), SCOPE (paths/commands in and out), CONTEXT (done, by whom, in parallel), CONSUMER (who uses the result + its shape), DONE (acceptance + return: verdict first, evidence, bounded; long output to a file, path returned). A bare one-line task is never enough. Name the repo and environment in SCOPE, and the gated operations the delegate may only return as envelopes in DONE.
Safety gates stay here (P4 Step 3, P5 Step 4): an ordinary SA has no AskUserQuestion even if
declared, and capability never bypasses the approval contract. Delegates finish non-destructive
work, execute no unapproved mutation and return:
## APPROVAL REQUIRED
### A1
COMMAND: <exact command, one line>
HOST: <local | user@host>
EFFECT: <what changes, irreversibly or remotely>
ROLLBACK: <exact reverse command, or NONE>
EVIDENCE: <why this is the right command — file:line / run URL / probe output>
PRECONDITION: <what must still hold at execution time>
One envelope per destructive operation (irreversible or touching a remote/shared system: force-push,
tag delete, deploy/rollback, service restart, docker system prune, remote ssh mutations, secret
rotation), none executed. Sho
Установить deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashAgentAskUserQuestionGlobGrepВложенные файлы
FAQ
Что делает скилл deploy?
GitHub Actions deployment: workflows, releases, GHCR, CI/CD with safety gates. Triggers: deploy, release, workflow.
Как установить скилл deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deploy запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub