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.
curl -O https://raw.githubusercontent.com/rigortype/rigor/master/.claude/skills/rigor-builtin-import/SKILL.mdgit 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-builtin-import)<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.
<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>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.00052 | $0.04607 |
| Opus 5.5 | $0.00021 | $0.01843 |
| Sonnet 5.5 | $0.00010 | $0.00921 |
| Haiku 4.5 | $0.00005 | $0.00461 |
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.
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_UNARYetc. These are the trusted floor. - Generated catalogues under
data/builtins/ruby_core/<topic>.yml— produced offline from the CRuby reference checkout bytool/extract_builtin_catalog.rband consumed bylib/rigor/inference/builtins/method_catalog.rbplus 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:
docs/adr/3-type-representation.md— type-object layout and the OQ3 working decision (Difference + Refined).docs/adr/5-robustness-principle.md— strict-on-returns, lenient-on-parameters.docs/type-specification/imported-built-in-types.md— the canonical kebab-case refinement names.
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.
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.
- 11d ago First seen · 275 lines · 52 tokens per session scan A dcc66a0fdb52
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.
rigor-builtin-import compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rigor-builtin-importrigortype/rigor | Skill | 107 | today | MPL-2.0 | A | 52 | Claude Code |
| newclacky-ai/openclacky | Skill | 1.2k | yesterday | MIT | A | 10 | Claude Code |
| rspec-conventionsrootstrap/rails_api_base | Skill | 634 | 2d ago | MIT | A | 82 | Claude Code |
| dhh-rails-styledavekilleen/Dex | Skill | 512 | 8d ago | MIT | A | 115 | Claude Code |
| ruby-patternssoftspark/ai-toolkit | Skill | 179 | 10d ago | Apache-2.0 | A | 60 | Claude Code |
| ruby-idiomsirahardianto/awesome-agv | Skill | 158 | 23d ago | MIT | A | 61 | Claude Code, Codex |
| ruby-rulessoftspark/ai-toolkit | Skill | 179 | 10d ago | Apache-2.0 | A | 48 | Claude Code |