Command Palette

Search for a command to run...

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

infrastructure

БесплатноБез исполняемых скриптовНе проверен

Manage NixOS infrastructure for this nix flake project. Deploy configurations with Colmena, troubleshoot services, and maintain servers. Use when: (1)…

fred-drakeот fred-drake★ 28 звёзд на GitHub

Об этом скилле

Infrastructure Management

Quick Reference

Full-fleet deployment: required mass-deploy skill

REQUIRED SUB-SKILL: Any "deploy everything" request (including /update-all-remote) MUST use the project-local mass-deploy skill. It is the authoritative full-fleet coordinator contract for normal Pi generalist subagents; do not replace it with ad-hoc Colmena calls.

The skill enforces this deployment contract:

  • Hosts are applied one machine at a time, in canonical order: stormwind → ironforge → orgrimmar → anton → gnomeregan → headscale ("gateway").
  • After each clean switch, every documented web endpoint in the fleet (the tables in references/host-mapping.md) is probed and must return its expected status (default: 2xx after redirects). The legacy-named headscale gateway has zero web endpoints; successful private Hetzner application probes indirectly exercise its Tailscale subnet route and DNS.
  • Any repaired deploy/build/activation problem, repository or remote-state change, or endpoint heal restarts the sequence from stormwind (max 3 full restarts). The run never advances directly after a repair.
  • A pre-flight worker blocks the run on untracked *.nix files (invisible to the git+file flake). Unreachable machines never block: a down host is recorded as skipped, its endpoints are excluded from health checks, and the result is partial. A sleeping laptop can be deployed later with an ad-hoc single-host run.
  • Advisory container-upgrade preview and workaround audit workers persist their results for the final report. The audit follows "Workaround Hygiene" below: only WORKAROUND(-tagged overrides under overlays/ are stock-tested at the pinned nixpkgs-unstable revision; outside markers are reported, not modified.

If the run aborts, surface its stop point, timeline, and next manual action rather than silently retrying or claiming partial work succeeded.

Ad-hoc single-host deploys: the colmena-deployer subagent

For one-off work on a single host (build checks, a quick iteration loop on one machine), run the colmena call through the colmena-deployer subagent — one subagent per colmena call. A deploy emits thousands of lines of flake-lock diff and per-host build output; running it in the main context buries everything else. The subagent runs the command, watches it to completion, and returns just a pass/fail summary (plus the root-cause lines on failure). Do not call colmena directly from the main context.

Spawn it with the Task tool, for example:

Use the colmena-deployer subagent: "Run colmena apply --on gnomeregan --impure from /Users/fdrake/nix. Return the host's activation result. Note: anton can exit 4 on a spurious user dbus-broker reload timeout even when the switch succeeded — verify its current generation against the built path rather than trusting the exit code."

The underlying commands the subagent runs:

colmena apply --on <hostname> --impure        # single host
colmena build --on <hostname> --impure        # build only, no deploy

After an ad-hoc apply, verify the host's web endpoints from the tables in references/host-mapping.md before declaring success.

Server Inventory

Hetzner Servers (Colmena-managed, root user)

Host Type Services
headscale (aka "gateway") Hetzner VPS Official Tailscale SaaS subnet/DNS gateway advertising 10.1.0.0/16 (all tailnet access to the other Hetzner boxes rides through it); despite the legacy name, it runs no Headscale control plane or web endpoint
ironforge Hetzner dedicated media stack, all podman: jellyfin, seerr (+ jellyseerr redirect), sonarr, radarr, lidarr, prowlarr, sabnzbd, bazarr
orgrimmar Hetzner dedicated gitea (+ gitea-status), woodpecker, paperless (+ paperless-ai), calibre-web, resume, filebrowser
stormwind Hetzner dedicated traceway (observability stack), gatus (internal uptime dashboard)

LAN NixOS Hosts (Colmena-managed, fdrake user with sudo)

Host Type Services
gnomeregan Home LAN x86_64 box (Wi-Fi) Borg backups, glance dashboard, personal automation jobs (process-daily, archive-email) under fdrake's systemd-user timers. Runs full workstation home-manager stack. See references/gnomeregan.md.

WSL Hosts (Colmena-managed, nixos user with sudo)

Host Type Purpose
anton WSL NixOS on Windows laptop Gaming and AI processing

Troubleshooting Workflows

Many *.internal.freddrake.com names unreachable at once

If "service X is down" but other internal sites are also unreachable, check local Tailscale first: a disconnected probing machine makes the private fleet look down. Internal service names are resolved by the legacy-named headscale gateway on official Tailscale SaaS. If local Tailscale is ready, diagnose that gateway's Tailscale client and `

Полный SKILL.md на GitHub

Установить infrastructure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/gnomeregan.mdreferences/host-mapping.md

FAQ

Что делает скилл infrastructure?

Manage NixOS infrastructure for this nix flake project. Deploy configurations with Colmena, troubleshoot services, and maintain servers. Use when: (1) Deploying NixOS configurations with colmena, (2) Troubleshooting server issues via SSH, (3) Checking service status across hosts, (4) Any infrastructure maintenance task. IMPORTANT architecture notes: - Hetzner servers are remote VPS/dedicated hosts, deployed as root. - anton is a WSL NixOS host on a Windows laptop, deployed as the nixos user via sudo. - gnomeregan is a home LAN NixOS box (Wi-Fi). Unusual: tracks nixpkgs-unstable, runs the full workstation home-manager stack, uses its own SSH host key as sops identity. See references/gnomeregan.md before changing its config or rebuilding it. - Full-fleet deployments require the project-local `mass-deploy` skill (one host at a time, with web health verification after every switch) — not ad-hoc colmena calls.

Как установить скилл infrastructure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл infrastructure запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить infrastructure с