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

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uspto app dl-all 16123456 -o ./downloads/.

Good fit Searching patents and trademarks, checking application history and ownership, retrieving PTAB proceedings and trademark documents, exploring patent families, and exporting results for analysis.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/smcronin/uspto-cli
agentmods
npx agentmods add skills/smcronin/uspto-cli/uspto

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/github.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/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 uspto

Your own site · 80×15
<a href="https://agentmods.dev/skills/smcronin/uspto-cli/uspto"><img src="https://agentmods.dev/badge/skills/smcronin/uspto-cli/uspto.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 45
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 41
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 52
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 45
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00042 $0.04117
Opus 5.5 $0.00017 $0.01647
Sonnet 5.5 $0.00008 $0.00823
Haiku 4.5 $0.00004 $0.00412

Measured 1mo ago against content hash 27495c742d66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (42 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 4,117 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-30.

Related

Other skills, from other repositories

ip-trademark

Use when a non-lawyer operator needs to protect a brand or creative work — clearing and choosing a name or logo, deciding whether and where to register a trademark, using the trademark and registered symbols correctly, knowing what copyright is automatic, or checking whether they own work a freelancer was paid for.…

ericrisco/rsc-harness · 77 tokens

code2prompt

Explore codebases efficiently with code2prompt, using sem-backed entity maps and grouped source reads to reduce agent round trips. Use when understanding an unfamiliar repository, locating implementations, gathering context for changes or reviews, or installing code2prompt.

mufeedvh/code2prompt · 51 tokens

fda-database

Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.

synthetic-sciences/openscience · 43 tokens

atmos-aws-compliance

AWS compliance commands in Atmos: atmos aws compliance report, Security Hub standards, CIS AWS, PCI DSS, SOC2, HIPAA, NIST, report formats, AI summaries.

cloudposse/atmos · 42 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

open-weights

Use when choosing an open-weight LLM and clearing it for use — which family and size fit the task, the hardware and the budget, and above all whether the license permits shipping. Owns the license-class map (OSI-open versus custom-community versus non-commercial), the always-verify-the-model-card rule, size-to-VRAM…

ericrisco/rsc-harness · 146 tokens