Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 with host, reason, and optional intentional.
  • events: objects with timestamp, phase, optional host, action, outcome, and evidence. Host completion uses action: "host_visit" and the terminal status as outcome.
  • finalHealth: an object with checkedAt, tailscale, flat endpoints (each including host, expected/actual status, and passed), allPassed, excludedHosts, and hostsWithoutEndpoints; use null only before the first health gate.
  • deploymentBase: { "revision": string|null, "source": string }, set by pre-flight. A null revision 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.

  1. Run git status --porcelain in the repository. Any untracked *.nix file is a blocker because a git+file flake cannot see it.
  2. Confirm Colmena is available.
  3. Run colmena build --dry-run --impure to catch cross-fleet evaluation errors, type errors, or Nixpkgs stable/unstable API mismatches across all hosts before applying to any machine.
  4. Probe every canonical SSH alias with BatchMode and a short timeout, for example ssh -o BatchMode=yes -o ConnectTimeout=10 <alias> true.
  5. Record unreachable hosts in skippedHosts and events. They are skips, not blockers; Anton may be asleep. Record the confirmed prior deployment revision in deploymentBase; if unavailable, set its revision to null.
  6. Return PREFLIGHT_BLOCKED if every host is unreachable or any blocker remains. Otherwise return PREFLIGHT_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.toml and apps/fetcher/containers-sha.nix and acco
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить mass-deploy с