rigor-type-oracle

rigor-type-oracle is a skill for Claude Code, Codex from rigortype/rigor. It costs 72 tokens per session (2,681 once invoked), scanned A, original, MPL-2.0.

A procedure for asking Rigor, a Ruby code-analysis tool, for the type of an expression before writing a type annotation or type-based documentation. It supports Ruby type formats such as RBS, Sorbet, and YARD.

In plain words
What is it for?
Use it when adding Ruby type signatures, inline annotations, documentation types, or checks justified by a value's type.
Why use it?
It replaces guessed types with types produced by the project's analysis tool, reducing incorrect annotations and guards.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it when adding Ruby type signatures, inline annotations, documentation types, or checks justified by a value's type.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rigortype/rigor/rigor-type-oracle
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 rigortype/rigor --skill rigor-type-oracle
Clone the repo
git clone --depth 1 https://github.com/rigortype/rigor

Made for: Claude Code, Codex.

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 rigor-type-oracle

README.md
[![agentmods](https://agentmods.dev/badge/skills/rigortype/rigor/rigor-type-oracle/github.svg)](https://agentmods.dev/skills/rigortype/rigor/rigor-type-oracle)
Your own site
<a href="https://agentmods.dev/skills/rigortype/rigor/rigor-type-oracle"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-type-oracle/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 rigor-type-oracle

Your own site · 80×15
<a href="https://agentmods.dev/skills/rigortype/rigor/rigor-type-oracle"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-type-oracle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,681 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.00072 $0.02681
Opus 5.5 $0.00029 $0.01072
Sonnet 5.5 $0.00014 $0.00536
Haiku 4.5 $0.00007 $0.00268

Measured 11d ago against content hash af49fe925cdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rigor-type-oracle 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (evals/fixtures/budget_ledger.rb), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/rigor-type-oracle/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rigor Type Oracle

You are about to write a type. Stop and ask Rigor first.

This project has a deterministic type oracle installed. Reading the source and concluding "currency is a String, pattern is a Regexp" is plausible-guess behaviour: it is right often enough to feel safe and wrong often enough to poison a signature file, a doc comment, or a reviewer's mental model. Rigor already knows the answer — for every expression, at every line, from the same engine that will check the code tomorrow. Asking it costs one command.

The rule: a type you did not obtain from Rigor is a guess, and a guessed type is never written anywhere. Not in sig/, not in an inline annotation (#:, # @rbs), not in a Sorbet sig, not in a YARD tag, not in a doc sentence, not in a review comment, and not as the stated reason for a nil check or an is_a? guard.

First: load the version-current copy

This skill's exact commands, flags, output spellings, and skip-reason ids drift between Rigor releases, so follow the copy that ships with the installed Rigor rather than any vendored or frozen copy of this file. Get the complete current procedure in one call:

rigor skill --full rigor-type-oracle   # this body + all its references/, inline

If you already loaded this skill via rigor skill you have the current copy — just proceed (read any references/NN-*.md from the directory the header names). If rigor is not on PATH, this task needs it: run rigor-next-steps to install Rigor first, then come back.

When to use

Trigger on the act, not on the user saying the word "type". You are in scope the moment you are about to write or assert one:

  • Writing or editing RBS under sig/.
  • Writing an inline annotation — rbs-inline #:, # @rbs, a %a{rigor:v1:…} override.
  • Writing a Sorbet sig do … end, or any other type DSL.
  • Writing a YARD / RDoc @param / @return / @raise, or any doc sentence that names a type ("returns an Array of entries").
  • Stating a type in a review comment, a PR description, or a chat answer.
  • Justifying a nil check, an is_a? / respond_to? guard, or a defensive to_s with "this should be an X".
  • Being asked "what type is this?", "what does this method return?", "add types to this class", "document this file".

Read the full file on GitHub · 227 lines

Files

What ships with it

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

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. 11d ago First seen · 227 lines · 72 tokens per session scan A af49fe925cdc

Subscribe to this mod's changes

rigor-type-oracle is a skill published in the GitHub repository rigortype/rigor (107 stars, last pushed today), licensed MPL-2.0. It adds 72 tokens to every session and 2,681 once invoked, about $0.0003 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-10-26.

Related

rigor-type-oracle compared with skills from other repositories

rigor-type-oracle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rigor-type-oraclerigortype/rigorSkill107todayMPL-2.0A72Claude Code, Codex
sentry-ruby-sdkgetsentry/sentry-for-aiSkill275yesterdayMITA98Claude Code
error-tracking-rubyPostHog/skillsSkill79yesterdayMITA13Claude Code
sentry-ruby-sdkis-bo/fullstack-forge-skillSkill26d agoApache-2.0A98Claude Code
Upgrade Fixdhruvasagar/ruby-upgrade-toolkitSkill146mo agononeA101Claude Code
Upgrade Auditdhruvasagar/ruby-upgrade-toolkitSkill146mo agononeA63Claude Code
debug:railsSnakeO/claude-debug-and-refactor-skills-pluginSkill99mo agononeA61Claude Code