rig-doctorlisted
Install: claude install-skill the-cloud-clockwork/agentihooks
# Rig Doctor
1. Run the script with the operator's arguments. Resolve this skill's directory
from the loaded SKILL.md. Use the Python interpreter that has agentihooks
installed; requires Python, agentihooks, git, authenticated gh, and a linked
bundle. Install agentihooks with `uv tool install agentihooks`. Run
`agentihooks deps check` for missing git or gh; their system installation
requires operator approval. Authenticate gh with `gh auth login`.
```bash
python3 "$SKILL_DIR/scripts/rig_doctor.py" LEDGER
python3 "$SKILL_DIR/scripts/rig_doctor.py"
python3 "$SKILL_DIR/scripts/rig_doctor.py" stop
```
Run exactly one form: a ledger starts its Doctor; no argument resets the
demo and executes the init-swarm ledger, task, create and start primitives;
`rig doctor stop` maps to `stop`. `LEDGER stop` closes a specific Doctor.
A watched swarm's master adds `--quote "<the operator's words>"`, copied
from what he typed in its pane within the last thirty minutes, to every
form, and `--max-eng-agents N` / `--max-ci-agents N` to a start when he
names a crew size; without the quote the master is refused.
Completion: exit zero and Doctor status prints, or the stop command prints
its closed summary. On failure use the script's remediation and rerun.
2. Return the printed ledger link and Doctor status or closed summary.
Completion: the operator has the link and observed state.
The demo is owned by this skill under `$AGENTIHOOKS_HOM