xp-infra
Skill0 starsChanged 17 days agoMITView on GitHub
Guide, validate and audit configured XP self-hosted nodes with read-only checks and an explicit deployment policy.
- Reads credentials
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- buzzer-audio-previewSkill
- cvm-imagegenSkill
- docs-no-revision-markersSkill
- dst-dedicated-serverSkill
- firmware-display-previewSkill
- git-remote-troubleshootSkill
- git-syncSkill
- linux-server-initSkill
- markdown-doc-styleSkill
- step-stl-print-repairSkill
- tavily-hikari-infraSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this Skill for XP node initialization, deployment, cluster joins, upgrades and drift diagnosis.
- Distinctive: line 27
Run bounded port preflight and read-only audit for the selected alias.
- Distinctive: line 28
Use the official matching release deployment/join workflow with the preflight result.
- Distinctive: line 29
Run the complete audit again and stop on any nonzero result.
- Distinctive: line 34
Treat mock command evidence, isolated Linux native-probe evidence and real deployment observations as separate results.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
XP infrastructure
Use this Skill for XP node initialization, deployment, cluster joins, upgrades and drift diagnosis. Deployment-specific aliases, addresses, domains, credentials and exception records stay outside this public repository.
Entrypoints and prerequisites
Run scripts/xp-infra directly with the Bun installed on the operator machine. Local policy, normalization, port selection and audit decisions run in TypeScript/Bun; local commands require neither Ruby nor Python. Native ssh provides transport and curl provides operator-side HTTPS probes. The inspected Linux node needs no Bun installation: retained POSIX probes use native privilege/service tools, /proc, awk, stat, GNU-compatible dd with iflag=fullblock, and timeout for port discovery. See the CLI contract for exact input, output, limits and failure behavior, and the runbook for operating and verification steps.
Policy and safety
Read the private policy configured by XP_POLICY_FILE before any deployment or join. A missing, unconfirmed or incomplete policy blocks mutation. The default policy requires the configured public ingress, DDNS/Geo features and managed endpoint; an exception needs an explicit owner decision and an auditable reason. SS2022 remains disabled unless separately approved.
The helper and audit scripts are read-only. They must fail closed on missing or ambiguous data, never choose another node or port because it is available, and never read administrator tokens. Any mutating command must use its documented confirmation mechanism and separate owner authorization: pass --yes only when that command exposes it. When the documented command has no --yes, require the completed policy and preflight gates and the exact documented command; never invent a flag or substitute Web/API/manual execution.
Configuration
Set XP_INFRA_CONFIG_DIR to a protected directory containing hosts.txt and deployment-policy.yaml, or set XP_HOSTS_FILE and XP_POLICY_FILE individually. By default the helper reads ${XDG_CONFIG_HOME:-$HOME/.config}/xp-infra/. Keep resolved connection details in the operator's SSH configuration. Copy the public references/hosts.txt.example and references/deployment-policy.yaml.example templates into the private directory, and use references/xp.env.template for key names and placeholders; never commit live values.
Workflow
- Validate policy and SSH operator access.
- Run bounded port preflight and read-only audit for the selected alias.
- Use the official matching release deployment/join workflow with the preflight result.
- Run the complete audit again and stop on any nonzero result.
- Record only sanitized role/runtime facts in the private operator configuration, outside this repository.
The local helpers enforce bounded output and timeout behavior. Host-managed probes require non-interactive privilege checks; container probes require an explicit policy override. Neither path silently downgrades failed evidence.
Treat mock command evidence, isolated Linux native-probe evidence and real deployment observations as separate results. A successful fixture run does not establish deployment health.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

