rig-doctor

rig-doctor is a skill for Claude Code from agent-rig/rig. It costs 105 tokens per session (1,441 once invoked), scanned A, original, MIT.

A preflight checker for projects using Rig, reporting setup problems in the repository, tracker, board, configuration, and automated checks.

In plain words
What is it for?
Use it before working with Rig to check authentication, project-board access, configuration, CI checks, and the review catalogue.
Why use it?
It finds issues that could prevent Rig from working or leave changes without required checks or review. Each finding includes the exact fix, while changes require confirmation.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Good fit Use it before working with Rig to check authentication, project-board access, configuration, CI checks, and the review catalogue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agent-rig/rig/rig-doctor
Install

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.

Any agent
npx skills add agent-rig/rig --skill rig-doctor
Clone the repo
git clone --depth 1 https://github.com/agent-rig/rig

Made for: Claude Code.

Wrote 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.

agentmods badge for rig-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-rig/rig/rig-doctor/github.svg)](https://agentmods.dev/skills/agent-rig/rig/rig-doctor)
Your own site
<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.

agentmods 80×15 button for rig-doctor

Your own site · 80×15
<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>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 0a6a19461079, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/rig-doctor/SKILL.md · 103 lines

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)
  • project scope — when tracker.board is set, gh auth status must list project. 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's select --limit 1 (.rig/rig-tracker if executable, else <RIG_DIR>/scripts/rig-tracker.sh). Fix: correct tracker.board.owner/projectNumber.
  • config valid — .rig/config.json parses and matches rig.schema.json (.rig/schema.json). vcs.baseRef and vcs.defaultBranch exist on the remote (git ls-remote --heads origin <branch>). Fix: correct the fields.
  • test command runs — the runtime behind test.command is installed (cargo / bun / node per runtime.packageManager). Fix: install it.

Warnings

  • CI gates — the default branch has required status checks (gh api repos/<repo>/branches/<default>/protection → required_status_checks.contexts non-empty), and .github/workflows/ has a test gate. Empty/absent → "merges aren't gated." Fix: add a test-gate workflow (see rig's ci/), then mark its check required. (manual — protection is sensitive)
  • shape labels exist — on tracker: github, the tracker.shapeLabels values exist as repo labels (gh label list). (--fix: gh label create.)
  • board columns match — tracker.board.statusOptions values exist as columns on the board (gh project field-list). Fix: add the columns, or correct the config. (--fix: add via gh if missing.)
  • review catalog — review.patternsFile (default .claude/REVIEWER.md) exists. Fix: copy the template from rig templates/. (--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 rig templates/. (--fix: copy it in.)
  • review bot reachable — if review.bot ≠ none, the bot is installed on the repo. Fix: install it or set review.bot: none.

Read the full file on GitHub · 103 lines

Changes

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.

  1. 1mo ago Changed 0a6a19461079
  2. 2mo ago Changed · +3 lines a6a60dd379a2
  3. 3mo ago First seen · 100 lines · 105 tokens per session scan A c2f7813fc71b

Subscribe to this mod's changes

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.

Related

rig-doctor compared with skills from other repositories

rig-doctor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rig-doctoragent-rig/rigSkill41mo agoMITA105Claude Code
session-handoffwanshuiyin/HERO-Anti-OverDefenseSkill9482d agoMITA34Claude Code, Codex
proxmox-fullmarcusquinn/aidevopsSkill481todayMITA27Claude Code
coco-loopcoco-research/cocoSkill324todayApache-2.0A99Claude Code, Codex
create-rulecoco-research/cocoSkill324todayApache-2.0A53Claude Code, Codex
context-budgetcoco-research/cocoSkill324todayApache-2.0A49Claude Code, Codex
gsd-code-reviewcoco-research/cocoSkill324todayApache-2.0A56Claude Code