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-tidygit 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-tidy)<a href="https://agentmods.dev/skills/agent-rig/rig/rig-tidy"><img src="https://agentmods.dev/badge/skills/agent-rig/rig/rig-tidy/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-tidy"><img src="https://agentmods.dev/badge/skills/agent-rig/rig/rig-tidy.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.00056 | $0.00823 |
| Opus 5.5 | $0.00022 | $0.00329 |
| Sonnet 5.5 | $0.00011 | $0.00165 |
| Haiku 4.5 | $0.00006 | $0.00082 |
Grade A, and why
rig-tidy 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Post-Merge Cleanup
Audit and clean up the diff from the last N commits. Catches dead code, unused imports, stale comments, and obvious duplicates that slipped in during rapid development.
Configuration
Reads .rig/config.json:
sourceScope[0]— the default directory to audit when no scope is given (default:src).test.command— the suite run in the verify step (default:npm test).agents.reviewer— the project's name for the canonicalreviewerrole (default:rig-reviewer).
If the file is absent, use the defaults above and note you're running unconfigured.
Arguments
The user invoked this with: $ARGUMENTS
What to do
-
Parse the arguments.
- scope: directory to audit (default: the default source scope from
.rig/config.json(sourceScope[0], defaultsrc)). - commits: number of recent commits to review (default:
10)
Examples:
/rig-tidy→ default scope, 10 commits/rig-tidy path/to/dir 5→ that directory, 5 commits/rig-tidy 20→ default scope, 20 commits
- scope: directory to audit (default: the default source scope from
-
Show what will be audited.
git log --oneline -${commits} git diff HEAD~${commits} --stat -- ${scope} | tail -20 -
Audit the diff via a fresh-context subagent. Spawn a
revieweragent (mapped throughagents.reviewer) with this prompt (don't do the audit inline — the implementer context is too close to the code to spot dead-on-arrival abstractions):"Audit the diff
git diff HEAD~${commits} -- ${scope}for cleanup candidates. Categories: (a) dead code — exported symbols with no callers in the tree, internal helpers used once; (b) unused imports; (c) stale comments — TODOs completed by the diff, comments describing prior behavior, doc lines that no longer match the code; (d) duplicates — near-identical helpers, repeated inline expressions that could collapse; (e) inconsistencies — naming drift, mixed patterns introduced during the window.For each finding give file:line, the category, one-line justification, the proposed deletion or merge, and a confidence (high/medium/low). Include findings you're unsure of — only the high-confidence ones get applied. If the window is clean, say so."
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 · +1 lines 1ae6ab2516b9
- 3mo ago First seen · 81 lines · 56 tokens per session scan A a59c0437531c
rig-tidy is a skill published in the GitHub repository agent-rig/rig (4 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 823 once invoked, about $0.0002 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-tidy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rig-tidyagent-rig/rig | Skill | 4 | 1mo ago | MIT | A | 56 | Claude Code |
| karpathy-guidelinescoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 25 | Claude Code |
| gsd-code-reviewcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 56 | Claude Code |
| gsd-code-review-fixcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 53 | Claude Code |
| ponytail-auditcoco-research/coco | Skill | 324 | today | Apache-2.0 | A | 105 | Claude Code, Codex |
| template-comprehensive-assessmentdocxology/template | Skill | 25 | today | Apache-2.0 | A | 77 | Claude Code, Codex |
| code-reviewfastagent-sh/fastagent | Skill | 68 | today | MIT | A | 22 | Claude Code, Codex |