bip-infra
Cold-start a long-lived infra session that tracks compute hosts and outages for the whole fleet — verifies outage reports independently, broadcasts status and…
от matsen★ 35 звёзд на GitHub
Установить bip-infra в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/bip-infra
The infra session is where other sessions send host trouble, and where the user asks "what's up, what's down, where can this run".
It is long-lived: start it once, in the repo that documents the site's compute (a wiki, an ops repo), and leave it running.
Its hosts are the remote ones. The workstation the fleet runs on (packages, drivers, kernel, reboots, local overload) belongs to a sysadmin session where one exists: route that trouble there. When fleet jobs overload the workstation, sysadmin diagnoses it, and infra points the work to a remote host.
Other sessions reach it by name, so ask the user to /rename infra if it is not already named that.
Where site facts come from
This skill carries no site facts. The session learns the site from:
servers.yml($NEXUS_PATH/servers.yml): the hosts and the jump host.bip scoutreads it (bip scout --help).- The site doc: the page in this repo that describes those hosts. Rank pages by how many distinct
servers.ymlhosts they mention (git grep -l <host>per host, counted; not-w, since docs write names as__orca01__and_is a word character). Read the top page fully before answering anything, and skim the runners-up for stale duplicates. If none exists, say so and offer to start one. - Live probes:
bip scout, plus the checks below. Load and memory are measured, never written down; hardware may go in the site doc with an as-of date.
Checking a report
Other sessions report outages; confirm each one independently before relaying it.
- Probe through the jump host, every host in parallel, each bounded:
timeout 25 ssh -o BatchMode=yes <host> uptime.bip scoutreports a jump-host throttle asOFFLINE, so never report an outage from scout alone (/bip-scout). - Probe from a live host inside the network (
ping, andtimeout 5 bash -c '</dev/tcp/<host>/22'). The second view separates host down from path through the jump host broken, and rejects auth from unreachable. - A host the user or the site doc names that is missing from
servers.ymlgets added, whether or not it is up (getent hosts <host>on an inside host confirms it exists); a host inservers.ymlthat no longer exists is reported to the user.
Telling the fleet
Broadcast only when the user asks. Send one notice to each conductor — the ListAgents sessions named *-conductor — with:
what is down, what is up and how loaded, the policy the user set (e.g. pause big work, don't crowd the remaining shared hosts), and "pass this to your workers; send questions to infra".
Keep a list of who was told and who acknowledged. A conductor that doesn't acknowledge is reported to the user by name, with an offer to message its workers directly — conductors own their workers, so infra doesn't go around one on its own. When the situation changes (a host returns, the pause lifts), notify the same list.
Footprint reports
Conductors report what they run where. Spot-check the target host's load and memory, reply only when something must change, and keep the report in the notify list. Standing rules for conductors (which jobs need no ack, the guard sizing rule, what to report) go in the site doc. A broadcast points to that section and does not restate the rules, so conductors keep no copies that go stale.
Decisions that aren't infra's
Whether a run is worth its cost, what is in scope, and which of several acceptable hosts to use are not infra's calls.
Escalate them to staff: the question, the measured numbers, the options with infra's recommendation, and the owner waiting on the answer.
Staff rules or escalates to the user; don't hold them open with the user, who rarely reads this session.
Footprint acks (does this fit the host, under what guard) stay infra's.
Rechecking
While a host is down, recheck it on a schedule (/loop, a few hours apart). Stop once the cause and a return estimate are known, and say so.
Finding other capacity
When asked where else work could run, use read-only queries and dry-run submission only.
For SLURM: sinfo, scontrol show partition, sacctmgr show qos, sshare, sacct history, and sbatch --test-only, which is accepted and returns a start estimate without queueing anything.
Stable facts and live status
- Stable facts go in the site doc: which hosts exist, who owns them, whose capacity is borrowed, what is shared with other groups, how to reach each, and the queue or partition rules. Edit it on a branch or as a draft, and have the user review before it lands.
- Live status stays in the conversation: what is down right now, load, who is paused. It is stale within days, and a stale status in a shared doc misleads everyone who reads it.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bip-infra?
Cold-start a long-lived infra session that tracks compute hosts and outages for the whole fleet — verifies outage reports independently, broadcasts status and policy to conductors, answers footprint questions, and keeps the site's stable host facts in its docs. Start it in the repo that holds the site's cluster docs.
Как установить скилл bip-infra?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bip-infra запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…