us-code

us-code is a skill for Claude Code from DocketDrafter/docketdrafter-plugins. It costs 50 tokens per session (1,769 once invoked), scanned A, original, BSD-3-Clause.

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 Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the us-code plugin — 1 skill shipped together

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/docketdrafter/docketdrafter-plugins/us-code
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 DocketDrafter/docketdrafter-plugins --skill us-code
Clone the repo
git clone --depth 1 https://github.com/DocketDrafter/docketdrafter-plugins

Made for: Claude Code.

Or install us-code, the plugin that ships this one along with the rest of its 1 skill.

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 us-code

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/docketdrafter/docketdrafter-plugins/us-code"><img src="https://agentmods.dev/badge/skills/docketdrafter/docketdrafter-plugins/us-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00050 $0.01769
Opus 5.5 $0.00020 $0.00708
Sonnet 5.5 $0.00010 $0.00354
Haiku 4.5 $0.00005 $0.00177

Measured 1mo ago against content hash b7e2da688f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (11 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 50 tokens to every session and 1,769 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-08-31.

Related

Other skills, from other repositories

commerce-ad-claim-compliance-kr

A pre-publication check for Korean advertising and product-page wording. It reviews claims against South Korea's advertising, food-safety, and e-commerce laws.

modu-ai/moai-cowork · 381 tokens

data-court-auction

A read-only lookup for property sale notices and case information from South Korea's official court-auction website. It shows details such as the case number, property use, address, assessed value, minimum sale price, and auction date.

modu-ai/moai-cowork · 272 tokens

legal-compliance-check

A compliance and internal-audit assistant focused on Korean regulations. It compares current policies and processes with legal or reporting requirements and can organize gaps, risks, and corrective plans.

modu-ai/moai-cowork · 49 tokens

legal-law-research

A legal research tool for finding and checking South Korean laws, court decisions, administrative rules, local ordinances, treaties, and official interpretations. It can also verify whether cited provisions or decisions exist and are still applicable.

modu-ai/moai-cowork · 44 tokens

legal-iros-registry-automation

A guide for helping automate bulk requests for company or property registry certificates from South Korea’s Supreme Court Internet Registry Office (IROS). The user handles login, authentication, and payment in the browser, while the workflow assists with collecting, saving, and reporting the documents.

modu-ai/moai-cowork · 52 tokens

legal-legal-risk

A tool for identifying and assessing legal risks in a company’s operations, including contracts, privacy, employment, regulation, and intellectual property (IP). IP means rights such as patents, trademarks, copyrights, and trade secrets.

modu-ai/moai-cowork · 50 tokens