rigor: Skill for Claude Code

.claude/skills/rigor-builtin-import/SKILL.md

rigor-builtin-import is a skill for Claude Code from rigortype/rigor. It costs 52 tokens per session (4,607 once invoked), scanned A, original, MPL-2.0.

A procedure for adding a Ruby core or standard-library class to Rigor's built-in knowledge. The Ruby standard library is the set of libraries distributed with Ruby.

In plain words
What is it for?
Use it to add classes such as Hash, Range, Set, Pathname, Time, or Date, or to add a family of refinement names to Rigor's catalogues.
Why use it?
It extends the analyzer's ability to infer known behaviour while checking generated reference data against trusted rules.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is rigortype/rigor's own configuration. It tells Claude Code how to work on rigor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rigor configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bundle exec ruby tool/scaffold_builtin_catalog.rb <topic> <ClassName> \.

Reuse

Borrowing it

Nothing to install: this file belongs to rigortype/rigor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rigortype/rigor/master/.claude/skills/rigor-builtin-import/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rigortype/rigor

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 rigor-builtin-import

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rigortype/rigor/rigor-builtin-import"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-builtin-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,607 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.00052 $0.04607
Opus 5.5 $0.00021 $0.01843
Sonnet 5.5 $0.00010 $0.00921
Haiku 4.5 $0.00005 $0.00461

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

Security

Grade A, and why

rigor-builtin-import 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.

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.

.claude/skills/rigor-builtin-import/SKILL.md · 275 lines

How it starts

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

Rigor Built-in Type Import

Use this skill to fold a new core / stdlib class (or a new family of refinement names) into Rigor's catalog-driven inference pipeline. The flow is the same whether you are importing Hash, Range, Set, Pathname, Time, Date, Enumerable-aware projections, or a brand-new Refined-tier predicate.

Background

Rigor's constant-fold dispatcher consults two complementary surfaces:

  • Hand-rolled allow lists in lib/rigor/inference/method_dispatcher/constant_folding.rb — INTEGER_UNARY / STRING_BINARY / NIL_UNARY etc. These are the trusted floor.
  • Generated catalogues under data/builtins/ruby_core/<topic>.yml — produced offline from the CRuby reference checkout by tool/extract_builtin_catalog.rb and consumed by lib/rigor/inference/builtins/method_catalog.rb plus the per-topic singletons (STRING_CATALOG, ARRAY_CATALOG, …).

The catalog tier is the additive superset; the hand-rolled tier remains the safety net. Adding a new class means deciding for each method whether the catalog's static classification is correct and, when it is not, how to express the override (blocklist, hand-rolled add, RBS-tier rule).

The principled background lives in:

Read those before extending the catalogue if you have not already; the decision points below assume the principle's framing.

Workflow

The flow has six stages. The first four are mechanical; the last two are decision-heavy.

Stage 0 — Run the scaffold script (recommended)

tool/scaffold_builtin_catalog.rb automates the mechanical 70 % of stages 1–4 and 7. Run it once and the manual work that remains is just the per-class judgement calls — blocklist curation, fixture body, and the changelog fragment.

Read the full file on GitHub · 275 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. 11d ago First seen · 275 lines · 52 tokens per session scan A dcc66a0fdb52

Subscribe to this mod's changes

rigor-builtin-import is a skill published in the GitHub repository rigortype/rigor (107 stars, last pushed today), licensed MPL-2.0. It adds 52 tokens to every session and 4,607 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-10-26.

Related

rigor-builtin-import compared with skills from other repositories

rigor-builtin-import next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rigor-builtin-importrigortype/rigorSkill107todayMPL-2.0A52Claude Code
newclacky-ai/openclackySkill1.2kyesterdayMITA10Claude Code
rspec-conventionsrootstrap/rails_api_baseSkill6342d agoMITA82Claude Code
dhh-rails-styledavekilleen/DexSkill5128d agoMITA115Claude Code
ruby-patternssoftspark/ai-toolkitSkill17910d agoApache-2.0A60Claude Code
ruby-idiomsirahardianto/awesome-agvSkill15823d agoMITA61Claude Code, Codex
ruby-rulessoftspark/ai-toolkitSkill17910d agoApache-2.0A48Claude Code