rigor: Skill for Claude Code

.claude/skills/rigor-add-reference/SKILL.md

rigor-add-reference is a skill for Claude Code from rigortype/rigor. It costs 47 tokens per session (2,083 once invoked), scanned C, original, MPL-2.0.

A procedure for adding or repairing a read-only Git submodule under references/. A submodule is a repository linked into another repository at a specific revision.

In plain words
What is it for?
Use it to add an upstream reference repository, or diagnose its cloning, status, rename, and lifecycle problems.
Why use it?
It keeps the repository configuration, setup commands, and selected upstream revision in sync while preventing reference code from being treated as product code.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

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 →

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-add-reference/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-add-reference

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rigortype/rigor/rigor-add-reference"><img src="https://agentmods.dev/badge/skills/rigortype/rigor/rigor-add-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,083 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00047 $0.02083
Opus 5.5 $0.00019 $0.00833
Sonnet 5.5 $0.00009 $0.00417
Haiku 4.5 $0.00005 $0.00208

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

Security

Grade C, and why

rigor-add-reference scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| Orphaned `.git/modules/<name>/` (no longer in `.gitmodules`) | `rm -rf .git/modules/<name>` after confirming nothing references it |
.claude/skills/rigor-add-reference/SKILL.md · 158 lines

How it starts

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

Add a Reference Submodule

Use this skill when the user wants to add a new upstream repo under references/. The change always touches three things together: .gitmodules (via git submodule add), Makefile (REFERENCE_SUBMODULES list + init-submodules body), and the submodule pointer commit. They belong in a single commit.

The standing rule is in AGENTS.md: these submodules are read-only reference material, not Rigor code — never require, import, or copy upstream implementation into product code; read the behaviour, then implement the smallest Rigor-side equivalent. Update a submodule only when intentionally changing the referenced revision.

The catalog — what each tree is for

Submodule Upstream Use
references/rbs https://github.com/ruby/rbs.git RBS syntax, stdlib signatures, test cases, implementation behaviour. The compatibility target for the RBS ecosystem.
references/python-typing https://github.com/python/typing.git Written-down Python typing concepts (gradual typing, generics, protocols, variance), borrowed by idea only. Not a syntax compatibility target.
references/ruby https://github.com/ruby/ruby.git (branch ruby_4_0) Ruby interpreter source. Parsed offline to derive the PHPStan-functionMap-style catalog of built-in methods: argument / return types plus per-method effect facets (pure, self-mutating, block-dependent). Never link Rigor runtime code against it.
references/typeprof https://github.com/ruby/typeprof.git TypeProf source — the reference implementation of Ruby type inference. Read for ideas and behaviour comparisons; never import or require it.

The trees are large, so the root .ignore lists /references/ to keep rg out by default (git is unaffected). Search one intentionally, and scope the path so you do not pull in vendor/:

rg PATTERN --no-ignore references/rbs

Step 0 — Decide the checkout strategy

Before running any command, ask (or infer from context) whether a sparse checkout is needed:

Read the full file on GitHub · 158 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 · 158 lines · 47 tokens per session scan C 9df67204d4cd

Subscribe to this mod's changes

rigor-add-reference is a skill published in the GitHub repository rigortype/rigor (107 stars, last pushed today), licensed MPL-2.0. It adds 47 tokens to every session and 2,083 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

rigor-add-reference compared with skills from other repositories

rigor-add-reference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rigor-add-referencerigortype/rigorSkill107todayMPL-2.0C47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill83k5d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.6ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1kyesterdayMITA51Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
release-helperSahir619/fable-methodSkill2.3k1mo agoMITA43Claude Code