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 rigortype/rigor --skill rigor-rbs-contractgit clone --depth 1 https://github.com/rigortype/rigorWrote 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/rigortype/rigor/rigor-rbs-contract)<a href="https://agentmods.dev/skills/rigortype/rigor/rigor-rbs-contract"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-rbs-contract/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/rigortype/rigor/rigor-rbs-contract"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-rbs-contract.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.00095 | $0.02291 |
| Opus 5.5 | $0.00038 | $0.00916 |
| Sonnet 5.5 | $0.00019 | $0.00458 |
| Haiku 4.5 | $0.00010 | $0.00229 |
Grade A, and why
rigor-rbs-contract 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 19d 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 — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rigor RBS Contract
An RBS declaration is not a record of what a method happens to return. It is a promise about what callers may rely on. Ruby returns every method's last expression, so inference always finds some type; whether callers may depend on it is a choice only a declaration makes. This skill turns that into a repeatable loop: find where declarations and code disagree, decide which side is wrong on cited evidence, change the declaration, prove the change, and explain it so a reviewer can re-check it.
First: load the version-current copy
Commands, flags, rule ids and skip-reason ids drift between Rigor releases, so follow the copy that ships with the installed Rigor rather than a vendored or frozen copy of this file:
rigor skill --full rigor-rbs-contract # this body + all its references/, inline
If you already loaded it via rigor skill, proceed. If rigor is not on PATH, run
rigor-next-steps first.
When to use
- A gem author wants their shipped
sig/checked, corrected or extended. - An application's quality owner wants the RBS their
rigor checkrelies on — the project'ssig/, or a dependency's community RBS — audited, or a wrong dependency signature fixed. - Someone is contributing to
ruby/gem_rbs_collection: adding methods, fixing a declaration, or acting on a discrepancy Rigor surfaced. - A diagnostic or a review comment says "the RBS says X but the code does Y", and the task is to settle which one is right.
When NOT to use
- Writing one type in the middle of another task →
rigor-type-oracle. It owns where a single type comes from; this skill owns what a set of declarations should promise. - Raising
rigor coverage --protectionnumbers on the project's own code →rigor-protection-uplift. - Installing community RBS that exists but is not set up →
rigor-rbs-setup. - A Rigor diagnostic you believe is wrong about correct code →
rigor-ask; that is an engine question, not a contract one.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/evals.json 6.2 KB
- evals/fixtures/courier.rb 777 B runs code
- evals/fixtures/courier.rbs 373 B
- references/01-finding-candidates.md 13 KB
- references/02-contract-rules.md 12 KB
- references/03-target-own-code.md 5.1 KB
- references/04-target-gem-rbs-collection.md 11 KB
- references/05-declaration-mutants.md 9.3 KB
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.
- 19d ago First seen · 148 lines · 95 tokens per session scan A 4a3e4419ee6d
rigor-rbs-contract is a skill published in the GitHub repository rigortype/rigor (108 stars, last pushed today), licensed MPL-2.0. It adds 95 tokens to every session and 2,291 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-11-11.
rigor-rbs-contract compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rigor-rbs-contractrigortype/rigor | Skill | 108 | today | MPL-2.0 | A | 95 | Claude Code, Codex |
| simplifymaquina-app/rails-claude-code | Skill | 48 | 8d ago | MIT | A | 123 | Claude Code |
| gem-docs-reviewVSN2015/concerns_on_rails | Skill | 27 | 3d ago | MIT | A | 152 | Claude Code |
| sgcop-setupSonicGarden/sgcop | Skill | 23 | today | MIT | A | 169 | Claude Code |
| gemtrackerspaquet/gemtracker | Skill | 22 | today | MIT | A | 49 | Claude Code, Codex |
| review-ruby-codeel-feo/ai-context | Skill | 12 | 9d ago | MIT | A | 128 | Claude Code |
| rubocopel-feo/ai-context | Skill | 12 | 9d ago | MIT | A | 37 | Claude Code |