us-code

A local lookup tool for the United States Code, the organised collection of federal laws in the United States. It provides access to full sections of the Code and citation lookup.

In plain words
What is it for?
Use it to read individual U.S. Code sections, find statutory citations, search the corpus, or compare provisions. It is intended for questions that require the actual text of federal law.
Why use it?
It lets an agent check statutory text and citations from a local corpus instead of relying on memory. After setup, lookups and searches work locally.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/docketdrafter/docketdrafter-plugins/us-code
Any agent
npx skills add DocketDrafter/docketdrafter-plugins --skill us-code
Clone the repo
git clone --depth 1 https://github.com/DocketDrafter/docketdrafter-plugins

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,769 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.01769
Opus 5 $0.00025 $0.00885
Sonnet 5 $0.00010 $0.00354
Haiku 4.5 $0.00005 $0.00177

Measured 2d ago against content hash b7e2da688f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

us-code 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/corpus.py, scripts/read_section.py), 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.

plugins/us-code/skills/us-code/SKILL.md · 142 lines

How it starts

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

U.S. Code

The reader scripts automatically install the latest verified corpus on first use. After installation, lookups are local and the corpus is not checked for updates in that environment.

Use this skill when a task requires local U.S. Code text, section lookup, statutory citation checking, or statutory analysis based on federal code sections.

After first-use installation, lookup, listing, comparison, and search operate entirely against the local corpus.

Before the first command, locate the reader once. Cowork standalone skills normally use the first path below; the fallback also supports marketplace plugins and Claude Code:

SCRIPT="/root/.claude/skills/synced/us-code/scripts/read_section.py"
if [ ! -f "$SCRIPT" ]; then
  SCRIPT="scripts/read_section.py"
fi
if [ ! -f "$SCRIPT" ]; then
  SCRIPT="$(find /root/.claude /sessions -type f -path '*/us-code/scripts/read_section.py' -print -quit 2>/dev/null)"
fi
if [ -z "$SCRIPT" ] || [ ! -f "$SCRIPT" ]; then
  echo "Could not locate the installed U.S. Code reader." >&2
  exit 1
fi

Use python "$SCRIPT" ... for all commands. Do not run additional filesystem-wide searches unless this block fails.

Corpus

  • references/index.json contains title metadata and corpus currency.
  • references/titles/{titleKey}/index.json supports citation and heading lookup.
  • Each title's sections.html contains its statutory section text.
  • The first-use installer may normalize release files during extraction; the reader handles both canonical and distributed representations transparently.
  • Appendix titles use keys such as 18-app.

Source checked August 6, 2026. The latest OLRC bulk preliminary release available on that date was current through Public Law 119-102, July 12, 2026. An installed corpus does not update itself at runtime.

This corpus includes statutory section text and section metadata only. Source credits, amendment and effective-date notes, transfer and historical notes, and other editorial material are not included.

Read the full file on GitHub · 142 lines

Files

What ships with it

3 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. 2d ago First seen · 142 lines · 50 tokens per session scan A b7e2da688f61

Subscribe to this mod's changes

us-code is a skill published in the GitHub repository DocketDrafter/docketdrafter-plugins (9 stars, last pushed 8d ago), licensed BSD-3-Clause. It adds 50 tokens to every session and 1,769 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

skills-load

Load skills from a GitHub repository into the current Cowork session as a unified plugin. Use when the user says "load skills from GitHub", "import skills from repo", "add skills from URL", "install skills from this link", or runs /skills-load with a GitHub URL. Also trigger when the user pastes a GitHub URL and…

idan-yaron/claude-cowork-skills-toolkit · 92 tokens

skills-save

Save the current in-conversation version of loaded skills as a new plugin. Use when the user says "save these skills", "save my iterated skills", "save loaded", "package what I've been working on", "save this as a plugin", "install what I loaded", "I forgot to click save plugin", or runs /skills-save. Captures the…

idan-yaron/claude-cowork-skills-toolkit · 104 tokens

skills-update

Refresh plugins previously installed by skills-toolkit by re-fetching their GitHub sources and presenting updated .plugin files to Cowork. Use when the user says "update my loaded skills", "refresh skills from github", "pull latest skills", "sync skills-toolkit plugins", "check for skill updates", or runs…

idan-yaron/claude-cowork-skills-toolkit · 97 tokens

detect-github-url

Detects when the user pastes or mentions a GitHub URL that may contain Claude skills or plugins. Triggers on messages containing github.com URLs, especially when user says things like "here's a repo", "check out this repo", "load this", "use these skills", "I found these skills", or simply pastes a github.com link.…

idan-yaron/claude-cowork-skills-toolkit · 107 tokens

skills-share

Package skills already installed in your Cowork session as a downloadable .zip file you can save to disk and share. Use when user says "share my skills", "export installed skills", "download my skills", "send these skills to a colleague", "package skills for sharing", or runs /skills-share. This is for exporting…

idan-yaron/claude-cowork-skills-toolkit · 90 tokens

watch

File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills. Poll-based via git diff against the last scan commit. Writes intake items for batch processing and routes marker actions through /do. Use for automatic reactions to file changes; do NOT use for…

SethGammon/Citadel · 70 tokens