Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add agent-rig/rig --skill rig-doctorgit clone --depth 1 https://github.com/agent-rig/rigWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/agent-rig/rig/rig-doctor)<a href="https://agentmods.dev/skills/agent-rig/rig/rig-doctor"><img src="https://agentmods.dev/badge/skills/agent-rig/rig/rig-doctor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/agent-rig/rig/rig-doctor"><img src="https://agentmods.dev/badge/skills/agent-rig/rig/rig-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.01441 |
| Opus 5.5 | $0.00042 | $0.00576 |
| Sonnet 5.5 | $0.00021 | $0.00288 |
| Haiku 4.5 | $0.00011 | $0.00144 |
Grade A, and why
rig-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rig-doctor — is this project set up for rig?
Inspect the environment, the tracker/board, the repo's gates, and .rig/config.json,
then report what would make rig run worse or fail — each finding with the exact
fix. Read-only by default. With --fix, apply the safe fixes after showing
them and getting a yes; leave sensitive changes (auth, branch protection) as
printed commands.
Pairs with /rig-onboard: onboard installs, doctor verifies.
Output
Group findings by severity and print the fix under each:
rig-doctor — <project> on <branch>
BLOCKERS (n) … rig won't work right until these are fixed
WARNINGS (n) … rig runs, but ungated or degraded
NITS (n) … advisories
✓ when a section is clean.
Read .rig/config.json first (if absent → the only blocker is "not onboarded;
run /rig-onboard"). Everything below is gated on what the config actually uses
(e.g. skip board checks when tracker.provider ≠ github or no tracker.board).
Checks
Blockers
- gh present + authed —
gh --version,gh auth status. Fix: install https://cli.github.com /gh auth login. (manual — interactive) projectscope — whentracker.boardis set,gh auth statusmust listproject. Fix:gh auth refresh -s project --hostname github.com. (manual)- board reachable —
gh project view <n> --owner <owner>succeeds, and the adapter returns: run the resolved tracker adapter'sselect --limit 1(.rig/rig-trackerif executable, else<RIG_DIR>/scripts/rig-tracker.sh). Fix: correcttracker.board.owner/projectNumber. - config valid —
.rig/config.jsonparses and matchesrig.schema.json(.rig/schema.json).vcs.baseRefandvcs.defaultBranchexist on the remote (git ls-remote --heads origin <branch>). Fix: correct the fields. - test command runs — the runtime behind
test.commandis installed (cargo/bun/nodeperruntime.packageManager). Fix: install it.
Warnings
- CI gates — the default branch has required status checks (
gh api repos/<repo>/branches/<default>/protection→required_status_checks.contextsnon-empty), and.github/workflows/has a test gate. Empty/absent → "merges aren't gated." Fix: add a test-gate workflow (see rig'sci/), then mark its check required. (manual — protection is sensitive) - shape labels exist — on
tracker: github, thetracker.shapeLabelsvalues exist as repo labels (gh label list). (--fix:gh label create.) - board columns match —
tracker.board.statusOptionsvalues exist as columns on the board (gh project field-list). Fix: add the columns, or correct the config. (--fix: add viaghif missing.) - review catalog —
review.patternsFile(default.claude/REVIEWER.md) exists. Fix: copy the template from rigtemplates/. (--fix: copy it in.) - writing-style guide —
style.guideFile(default.claude/STYLE.md) exists, so every agent writes PR bodies, tickets, and findings to one standard. Absent → "agent prose is unconstrained." Fix: copy the template from rigtemplates/. (--fix: copy it in.) - review bot reachable — if
review.bot≠none, the bot is installed on the repo. Fix: install it or setreview.bot: none.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 0a6a19461079
- 2mo ago Changed · +3 lines a6a60dd379a2
- 3mo ago First seen · 100 lines · 105 tokens per session scan A c2f7813fc71b
rig-doctor is a skill published in the GitHub repository agent-rig/rig (4 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 1,441 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
rig-doctor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rig-doctoragent-rig/rig | Skill | 4 | 1mo ago | MIT | A | 105 | Claude Code |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 948 | 2d ago | MIT | A | 34 | Claude Code, Codex |
| proxmox-fullmarcusquinn/aidevops | Skill | 481 | today | MIT | A | 27 | Claude Code |
| coco-loopcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 99 | Claude Code, Codex |
| create-rulecoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| context-budgetcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 49 | Claude Code, Codex |
| gsd-code-reviewcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 56 | Claude Code |