USPTO Patent and Trademark Data
davila7/claude-code-templates
Searches USPTO patent and trademark data through its APIs: patent search, PEDS examination history, assignments, citations, office actions and TSDR status.
专利 PDF 批量下载工具。当用户需要下载专利全文 PDF、查询专利信息、批量导出专利文件时使用。支持多平台(Google Patents 优先),自动处理申请号和公告号格式。
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills patent-download --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/patent-download .claude/skills/patent-download && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .claude/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-downloadType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills patent-download --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/patent-download .agents/skills/patent-download && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .agents/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills patent-download --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/patent-download .cursor/skills/patent-download && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .cursor/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/patent-download--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills patent-download --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/patent-download .gemini/skills/patent-download && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .gemini/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills patent-downloadInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/patent-download .github/skills/patent-download && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .github/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill patent-download -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills patent-download --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/patent-download .opencode/skills/patent-download && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "patent-download" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/patent-download into .opencode/skills/patent-download/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "patent-download", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
patent-download专利 PDF 批量下载工具。当用户需要下载专利全文 PDF、查询专利信息、批量导出专利文件时使用。支持多平台(Google Patents 优先),自动处理申请号和公告号格式。
Patent Download is an agent skill from cat-xierluo/legal-skills. 专利 PDF 批量下载工具。当用户需要下载专利全文 PDF、查询专利信息、批量导出专利文件时使用。支持多平台(Google Patents 优先),自动处理申请号和公告号格式。
Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. The skill folder holds 23 other files, including scripts and reference files (for example `CHANGELOG.md`, `references/accounts-setup.md` and `references/examples.md`).
It sits in Legal & Compliance, covering Intellectual property. It works with Playwright and Python. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 9 files in scripts/ (Python and Shell, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
pythonpipplaywrightFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Patent Download loads about 951 tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 26 tokens; SKILL.md has 210 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
1. `cp config/.env.example config/.env`2. 编辑 `config/.env`,填入你注册的账号(已 .gitignore,不入库)3. 账号自动从环境变量 / `.env` 加载(`scripts/platforms/_creds.py`,无需额外依赖)thon scripts/platforms/_creds.py` —— 检查 `.env` 是否被误提交到 git,并显示各平台账号是否就绪(不打印密码)ME` / `PATENT_<平台>_PASSWORD`)或本地 `config/.env` 读取(见「凭证」章节)。凭证仅用于登录下载,不硬编码、不打印密码。Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 210 words, ~951 tokens.
.claude/skills/patent-download/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.根据专利号从多个平台下载专利文本(PDF / 摘要 / 全文)。
用:下载专利全文 PDF、批量导出专利文件、查询专利基本信息。 不用:专利侵权比对 / 权利要求分析 / 有效性核查等,请用专用分析工具。
Google Patents(API、免费免登录)为首选,度衍专利(浏览器)为备选。各平台实测状态、推荐度与接入方式见 references/platform-status.md。
用户给的往往是申请号(如 202421964517.8),Google Patents 用公告号(如 CN223081266U)索引。两者无数学对应关系,google_patents.py 会尝试自动匹配但不保证成功。
完整的申请号/公告号结构、种类代码(A/B/U/S)、发明 A vs B 区别、默认下载规则见 references/patent-number-formats.md。
# 进入脚本目录(相对 skill 根)
cd scripts
# 查看支持的平台及状态
python cli.py --list
# Google Patents 下载(推荐,免费免登录)
python cli.py google CN223081266U
python cli.py google 202421964517.8 # 申请号自动匹配
# 仅查询专利信息,不下载
python cli.py google CN223081266U --info
# 度衍浏览器自动化(账号自动从环境变量读取)
python cli.py uyanip CN223081266U -m browser
# 批量下载
python cli.py google CN223081266U CN118198150A CN118198150Bpython platforms/google_patents.py CN223081266U
python platforms/google_patents.py 202421964517.8 -o ~/Downloads
python platforms/uyanip.py 2024214535561各平台账号通过环境变量配置,代码不硬编码、仓库不存储任何账号密码。
命名:PATENT_<平台>_USERNAME / PATENT_<平台>_PASSWORD(如 PATENT_UYANIP_USERNAME)。
配置流程:
cp config/.env.example config/.envconfig/.env,填入你注册的账号(已 .gitignore,不入库).env 加载(scripts/platforms/_creds.py,无需额外依赖)python scripts/platforms/_creds.py —— 检查 .env 是否被误提交到 git,并显示各平台账号是否就绪(不打印密码)各平台账号获取方式与 ToS 合规提示见 references/accounts-setup.md。Google Patents 与 CNIPA epub 为公开免登录,无需配置。
| 参数 | 说明 |
|---|---|
-m, --method | 下载方式:api 或 browser |
-u, --username | 用户名(默认从环境变量读) |
-p, --password | 密码(默认从环境变量读) |
-o, --output | 输出目录(默认当前目录) |
--headless | 无头模式(浏览器方式) |
--info | 仅查询信息,不下载(仅 Google Patents) |
python cli.py google <号> --info 仅用标准库,零依赖python cli.py --list、python platforms/_creds.py 零依赖ImportError首次下载前按所用通道安装(统一命令:pip install -r scripts/requirements.txt):
| 通道 | 依赖 | 安装命令 |
|---|---|---|
| Google Patents 下载(推荐) | patent-downloader | pip install patent-downloader |
| 度衍/粤港澳/PSS 浏览器自动化 | playwright + 浏览器 | pip install playwright && playwright install chromium |
| PatentStar/epub API 等 | requests | pip install requests |
一条命令装全部:pip install -r scripts/requirements.txt。
本技能会执行本地脚本完成专利下载,涉及以下能力边界,请在使用前知悉:
scripts/patent-download.sh 包装脚本在缺少依赖时会自动执行 pip install 与 playwright install chromium:google 时,若未装 patent-downloader 会自动 pip install patent-downloader;playwright 会自动 pip install -r requirements.txt 并下载 Chromium 浏览器二进制。scripts/requirements.txt,或改为手动安装(pip install -r scripts/requirements.txt)。python cli.py <平台> <专利号> 不会触发自动安装,缺依赖时只会打印清晰提示并退出。requests / patent-downloader / playwright(浏览器自动化)等依赖完成下载。PATENT_<平台>_USERNAME / PATENT_<平台>_PASSWORD)或本地 config/.env 读取(见「凭证」章节)。凭证仅用于登录下载,不硬编码、不打印密码。--headless 无头模式。会在本机启动浏览器进程执行登录与下载操作。-o,默认当前目录)写入下载的 PDF/文件。references/examples.mdCHANGELOG.md© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 19 other files (scripts, references) in skills/patent-download of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Patent Download next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Patent Download this skillcat-xierluo/legal-skills | 720 | — | ~951 | Automated safety check: Notes | MIT | |
| USPTO Patent and Trademark Datadavila7/claude-code-templates | 33k | 11 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Web Application Testinganthropics/skills | 180k | 51 repos | ~966 | Automated safety check: Pass | Apache-2.0 | |
| Paper to Chinese Patent DrafterYuan1z0825/nature-skills | 47k | 1 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Merge Dependabot PRsonyx-dot-app/onyx | 32k | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Trigger.dev Configurationpapermark/papermark | 9.2k | — | ~1.2k | Automated safety check: Pass | Custom licence |
davila7/claude-code-templates
Searches USPTO patent and trademark data through its APIs: patent search, PEDS examination history, assignments, citations, office actions and TSDR status.
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
Yuan1z0825/nature-skills
Drafts Chinese invention patent applications and technical disclosures from research papers or inventor materials, tying each claim feature to source evidence.
onyx-dot-app/onyx
Triages and lands a batch of open Dependabot PRs in the Onyx repo, where main is gated exclusively by GitHub's merge queue: approves and enqueues green PRs, closes superseded duplicates, fixes…
papermark/papermark
Configures Trigger.dev projects through trigger.config.ts, with build extensions for Prisma, Playwright, Puppeteer, FFmpeg, Python and system packages.
minsight-ai-info/AI-Search-Hub
Run the AI Search Hub browser automation scripts for Yuanbao, LongCat, Doubao, Qwen, Gemini, Grok, and MiniMax.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
Works with
Categories
专利 PDF 批量下载工具。当用户需要下载专利全文 PDF、查询专利信息、批量导出专利文件时使用。支持多平台(Google Patents 优先),自动处理申请号和公告号格式。. Patent Download is an agent skill from cat-xierluo/legal-skills.
Patent Download fits situations like: tasks that involve Intellectual property.
Run `npx skills add cat-xierluo/legal-skills --skill patent-download -a claude-code`. Or copy the skill folder (skills/patent-download in cat-xierluo/legal-skills) into .claude/skills/patent-download in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill patent-download -a codex`. Or copy the skill folder (skills/patent-download in cat-xierluo/legal-skills) into .agents/skills/patent-download in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill patent-download -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/patent-download, .gemini/skills/patent-download, .github/skills/patent-download and .opencode/skills/patent-download in your project.
Going by SKILL.md and its folder, Patent Download needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python, pip and playwright). Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Patent Download is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 951 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Patent Download: USPTO Patent and Trademark Data (davila7/claude-code-templates, 33k stars), Web Application Testing (anthropics/skills, 180k stars), Paper to Chinese Patent Drafter (Yuan1z0825/nature-skills, 47k stars) and Merge Dependabot PRs (onyx-dot-app/onyx, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.