uspto

uspto is a skill for Claude Code, Codex from smcronin/uspto-cli. It costs 42 tokens per session (4,117 once invoked), scanned A, original, MIT.

A command-line tool for searching and retrieving United States Patent and Trademark Office records. The USPTO is the US government agency that manages patent and trademark filings.

In plain words
What is it for?
Searching patents and trademarks, checking application history and ownership, retrieving PTAB proceedings and trademark documents, exploring patent families, and exporting results for analysis.
Why use it?
Patent and trademark research often involves several separate government databases, documents, and status systems. This brings searches, records, documents, and structured exports into one command-line workflow.

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/smcronin/uspto-cli/uspto
Any agent
npx skills add smcronin/uspto-cli --skill uspto
Clone the repo
git clone --depth 1 https://github.com/smcronin/uspto-cli

Made for: Claude Code, Codex.

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 uspto

README.md
[![agentmods](https://agentmods.dev/badge/skills/smcronin/uspto-cli/uspto.svg)](https://agentmods.dev/skills/smcronin/uspto-cli/uspto)
Your own site
<a href="https://agentmods.dev/skills/smcronin/uspto-cli/uspto"><img src="https://agentmods.dev/badge/skills/smcronin/uspto-cli/uspto.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,117 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.00042 $0.04117
Opus 5 $0.00021 $0.02058
Sonnet 5 $0.00008 $0.00823
Haiku 4.5 $0.00004 $0.00412

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

Security

Grade A, and why

uspto 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 5d 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.

skills/uspto/SKILL.md · 341 lines

How it starts

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

USPTO CLI

When to Use

Use this skill when the user asks to:

  • Search trademarks by wordmark, owner, goods/services, class, design code, attorney, date, or live/dead status
  • Retrieve trademark status, owners, prosecution events, assignments, maintenance data, documents, or mark images through TSDR
  • Search for patents by keyword, inventor, assignee, CPC class, examiner, or date range
  • Look up a specific patent application's metadata, prosecution history, continuity, or assignments
  • Download patent documents (PDFs, DOCX, XML) from the file wrapper
  • Download a full patent artifact bundle in one command (JSON + XML + PDFs + README)
  • Extract structured patent text (claims, citations, abstract, description) from patent XML (grant/pgpub)
  • Search or retrieve PTAB trial proceedings, decisions, appeals, or interferences
  • Search petition decisions
  • Browse or download bulk data products from USPTO
  • Look up patent application status codes
  • Build a patent family tree or get a one-shot application summary
  • Export patent data to CSV, JSON, or NDJSON for analysis

Prerequisites

The uspto binary must be installed and on PATH. Patent ODP and trademark TSDR are separate systems with separate credentials. Anonymous Trademark Search needs no key.

Install:

go install github.com/smcronin/uspto-cli/cmd/uspto@latest
# Or update an existing install:
uspto update

API Key Setup:

uspto config set-api-key your-key-here       # Save to global config
uspto config set-api-key --from-dotenv .env   # Import from .env file
uspto config show                             # Verify key status

If the user doesn't have a key: create account at https://data.uspto.gov/apis/getting-started, verify via ID.me, copy key from https://data.uspto.gov/myodp.

For trademark case/status/document retrieval, obtain a separate TSDR key from https://account.uspto.gov/api-manager/ and configure it with:

uspto config set-tsdr-api-key your-tsdr-key
uspto config set-tsdr-api-key --from-dotenv .env
uspto config show

Read the full file on GitHub · 341 lines

Files

What ships with it

1 file 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. 5d ago First seen · 341 lines · 42 tokens per session scan A 27495c742d66

Subscribe to this mod's changes

uspto is a skill published in the GitHub repository smcronin/uspto-cli (39 stars, last pushed 29d ago), licensed MIT. It adds 42 tokens to every session and 4,117 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories