pb-machine-setup
Installation
SKILL.md
New machine to a verified AOS install
What you get: a machine with AOS, MCP servers, hooks, memB and OpenWiki installed and checked by the doctor, with a before-and-after report and a backup of every harness config that was edited.
Inputs
- machine_role —
dev,showorserver, asked if missing; aserverskips the desktop-only rows (LaunchAgents, Synapse) and logs that choice - harnesses — the harnesses to wire (Claude Code, Antigravity, Codex, OpenCode, Cursor, Roo), asked if missing; only these are touched
Steps
- aos-setup (Measure) —
command -v node(Node 22 or newer, else stop with an install hint), then the doctor read-only, exactly as the aos-setup skill gives it:node skills/global_config/aos-setup/scripts/aos-doctor.mjsfrom the AOS repo, ornode ~/.claude/skills/aos-setup/scripts/aos-doctor.mjsfrom an installed copy → baseline table (failing rows with their fix commands) in the run log — doctor ran, exit code and failing-row count logged; nothing was installed or edited. Then the backup: copy every harness config of the chosen harnesses (for example~/.claude.json,~/.gemini/config/mcp_config.json,~/.codex/config.toml,opencode.jsonc) intoproduction_artifacts/pb-machine-setup-<date>/config-backup/and log the copied paths; a config that is missing is logged, not created — backup files exist before step 2, because the installer itself rewrites the harness configs - [GO] install — the install or update commands aos-setup section 3 gives for the harnesses chosen, for example
npx -y @hybridlabor-api/aos@latest— the WAITING FOR GO line shows the exact command, the harness list and the backup path (and the installer's--dry-runoutput if aos-setup section 3 offers it). The run stops here until the human types GO. The hook does not guard npm installs, so this GO is the only guard; the installedaosbinary is never run to inspect the version (it starts the full installer and rewrites harness configs). - mcp-manage — chosen harnesses → wire the MCP servers the machine_role needs per harness → server list per harness in the run log — this step never edits a config that step 1 has not backed up; a missing config is logged, not created blind
- memb-skill and openwiki-skill — memB engine, MCP registration and ambient hook; OpenWiki CLI,
~/.openwiki/.envcredentials and refresh daemon → check results in the run log — each check passes or is logged with its fix hint from aos-setup; credentials are never written into the run log - aos-setup (Verify) — the doctor again, same command as step 1 → delta (fixed, still failing, new) in the run log — zero failing rows, or each remaining one logged with its fix hint and a note whether it is deliberate for this machine_role
Run log: production_artifacts/pb-machine-setup-<date>.md in the start directory, never committed; the config backups are never committed