mass-deploy
БесплатноБез исполняемых скриптовНе проверенUse when a user requests a mass deploy, deploy everything or all remote hosts, a full fleet rollout, or a fleet-wide Colmena deployment of this NixOS…
от fred-drake★ 28 звёзд на GitHubОб этом скилле
Mass Deploy
Overview
Coordinate a health-gated NixOS fleet rollout with normal Pi subagents. The coordinator delegates every operational action; fresh workers deploy exactly one host at a time and a repaired problem always forces a clean pass from Stormwind.
Core principle: speed, maintenance-window pressure, and accepted risk never weaken sequential applies, activation verification, whole-fleet health checks, or truthful reporting.
Coordinator and worker contract
The active parent agent is the coordinator. It MUST use the installed subagent
tool as follows:
- Launch
agent: "generalist", one fresh worker at a time. Never set model or thinking overrides, and never run two host workers concurrently. - Give each worker a self-contained brief containing the absolute repository
path, role, phase or host,
/tmp/pi-mass-deploy-state.json, applicable references, constraints, and required report and terminal status. - Wait for the automatic later message after each launch. Never poll, sleep, inspect session files, resume a completed child, or duplicate delegated work.
- Never run Colmena, SSH, health probes, repairs, or repository edits in the coordinator context. Workers keep that operational output isolated. The coordinator may read state and reports, validate a transition, launch the next worker, and issue the final summary.
- Treat a missing response, child loss, ambiguous status, malformed final line,
or report/state disagreement as
ABORTED. Do not infer success.
Every worker returns a concise evidence report and ends its final line with exactly one status token from the status contract below.
Shared state
Every invocation is a fresh run. The pre-flight worker MUST overwrite any stale
/tmp/pi-mass-deploy-state.json with at least:
{
"skippedHosts": [],
"events": [],
"restartCount": 0,
"completedHostsThisPass": [],
"containerPreview": [],
"workaroundAudit": [],
"finalHealth": null,
"deploymentBase": { "revision": null, "source": "unconfirmed" }
}
Workers preserve all fields and update the file atomically (write valid JSON to a
temporary file in /tmp, then rename it). Use this canonical shape; do not
invent alternate field names or nesting:
skippedHosts: objects withhost,reason, and optionalintentional.events: objects withtimestamp,phase, optionalhost,action,outcome, andevidence. Host completion usesaction: "host_visit"and the terminal status asoutcome.finalHealth: an object withcheckedAt,tailscale, flatendpoints(each includinghost, expected/actual status, andpassed),allPassed,excludedHosts, andhostsWithoutEndpoints; usenullonly before the first health gate.deploymentBase:{ "revision": string|null, "source": string }, set by pre-flight. Anullrevision means no confirmed prior deployment revision.
Store full preview, audit, repair, skip, restart, and endpoint results rather than only summaries. The coordinator validates this exact shape before relying on a terminal report.
There is no mid-fleet resume. An interruption or lost child fails closed; a
later invocation starts over and pre-flight replaces stale /tmp state. Never
claim a successful resume from that file.
Fixed order and targeting
Canonical order is:
stormwind → ironforge → orgrimmar → anton → gnomeregan → headscale
headscale is the gateway. For SSH reachability and deployment work, use these
~/.ssh/config aliases exactly. Never substitute raw IPs, FQDNs, user@host,
or explicit ports.
Workflow
1. Pre-flight worker
The worker reads .agents/skills/infrastructure/SKILL.md (or
.pi/skills/infrastructure/SKILL.md) and
.agents/skills/infrastructure/references/host-mapping.md, overwrites the state,
and does not deploy or repair anything.
- Run
git status --porcelainin the repository. Any untracked*.nixfile is a blocker because a git+file flake cannot see it. - Confirm Colmena is available.
- Run
colmena build --dry-run --impureto catch cross-fleet evaluation errors, type errors, or Nixpkgs stable/unstable API mismatches across all hosts before applying to any machine. - Probe every canonical SSH alias with BatchMode and a short timeout, for
example
ssh -o BatchMode=yes -o ConnectTimeout=10 <alias> true. - Record unreachable hosts in
skippedHostsand events. They are skips, not blockers; Anton may be asleep. Record the confirmed prior deployment revision indeploymentBase; if unavailable, set its revision tonull. - Return
PREFLIGHT_BLOCKEDif every host is unreachable or any blocker remains. Otherwise returnPREFLIGHT_READY.
On PREFLIGHT_BLOCKED, the coordinator stops and reports the blockers.
2. Container-upgrade preview worker
This phase is advisory: do not deploy or modify files.
- Inspect the old/new diffs for
apps/fetcher/containers.tomlandapps/fetcher/containers-sha.nixand acco
Установить mass-deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mass-deploy?
Use when a user requests a mass deploy, deploy everything or all remote hosts, a full fleet rollout, or a fleet-wide Colmena deployment of this NixOS repository.
Как установить скилл mass-deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mass-deploy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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