Borrowing it
Nothing to install: this file belongs to ZimoLiao/scholaraio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/patent-fetch/SKILL.mdgit clone --depth 1 https://github.com/ZimoLiao/scholaraioWrote 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.
[](https://agentmods.dev/skills/zimoliao/scholaraio/patent-fetch)<a href="https://agentmods.dev/skills/zimoliao/scholaraio/patent-fetch"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/patent-fetch/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.
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/patent-fetch"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/patent-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01056 |
| Opus 5.5 | $0.00013 | $0.00422 |
| Sonnet 5.5 | $0.00006 | $0.00211 |
| Haiku 4.5 | $0.00003 | $0.00106 |
Grade A, and why
patent-fetch 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
patent-fetch — 专利 PDF 下载
优先通过 USPTO PPUBS 官方导出接口下载美国专利 PDF,并在必要时回退到 Google Patents 页面抓取,自动保存到 configured patent inbox(fresh 默认 data/spool/inbox-patent/),供后续 pipeline ingest 入库。旧版 data/inbox-patent/ 先用 scholaraio migrate upgrade --migration-id <id> --confirm 迁移。
常与 patent-search 配合使用:先用 patent-search 发现专利,再用 patent-fetch 或 --fetch 参数下载 PDF。
功能
- 专利 ID 直输:只需输入专利公开号(如
US20240176406A1),优先走 USPTO 官方导出 - 完整 URL 支持:也支持直接传入完整的专利页面链接
- 官方下载优先:美国专利优先走 PPUBS 导出,避免 Google 页面抓取不稳定
- 自动去重:如果目标文件已存在,跳过下载
- 仅用于发现下载:不入库,下载后需手动执行
scholaraio pipeline ingest走专利入库流程
用法
通过专利 ID 下载
scholaraio patent-fetch US20240176406A1
通过完整 URL 下载
scholaraio patent-fetch "https://patents.google.com/patent/US20240176406A1"
与 patent-search 联动
# 方式一:搜索后根据提示手动下载
scholaraio patent-search "neural network" --count 5
# 输出中每条结果会显示:下载: scholaraio patent-fetch <公开号>
# 方式二:搜索时自动下载所有结果 PDF
scholaraio patent-search "neural network" --count 5 --fetch
输出示例
已下载: /path/to/data/spool/inbox-patent/US20240176406A1.pdf (1679017 bytes)
已保存到: /path/to/data/spool/inbox-patent/US20240176406A1.pdf
如果文件已存在:
文件已存在: /path/to/data/spool/inbox-patent/US20240176406A1.pdf
已保存到: /path/to/data/spool/inbox-patent/US20240176406A1.pdf
如果页面没有 PDF 链接:
未在该页面找到 PDF 下载链接
推荐工作流
手动下载流程
# 1. 搜索专利
scholaraio patent-search "quantum computing" --count 10
# 2. 根据公开号下载目标专利 PDF
scholaraio patent-fetch US20230123456A1
# 3. 走正常专利入库流程(自动按公开号去重、标记 patent 类型)
scholaraio pipeline ingest
# 4. 本地检索
scholaraio search "voltage overshoot"
自动下载流程
# 1. 搜索并自动下载前 5 条结果的 PDF
scholaraio patent-search "quantum computing" --count 5 --fetch
# 2. 直接入库
scholaraio pipeline ingest
故障排除
页面请求超时或下载失败
- 美国专利默认优先走 USPTO PPUBS 官方导出,通常不需要额外代理
- 若已回退到 Google Patents,某些网络环境下可能需要配置 HTTP 代理
未在该页面找到 PDF 下载链接
- 该专利可能尚未上传 PDF(如非常新的 WO 专利)
- 尝试在浏览器中打开页面确认是否有 PDF 下载入口
- 部分非美国专利或特殊文档类型可能需要换源(如 EPO)
下载失败
- 检查 configured patent inbox(fresh 默认
data/spool/inbox-patent/)是否有写入权限 - 确认磁盘空间充足
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.
- 2mo ago First seen · 111 lines · 32 tokens per session scan A 9dabe46d15cf
patent-fetch is a skill published in the GitHub repository ZimoLiao/scholaraio (584 stars, last pushed 10d ago), licensed MIT. It adds 32 tokens to every session and 1,056 once invoked, about $0.0001 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.
patent-fetch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| patent-fetchZimoLiao/scholaraio | Skill | 584 | 10d ago | MIT | A | 32 | Claude Code |
| infrastructure-validationdocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| template-pitch-deckdocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 35 | Claude Code, Codex |
| infrastructure-steganographydocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 55 | Claude Code, Codex |
| template-validation-qualitydocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 64 | Claude Code, Codex |
| template-storybookdocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 28 | Claude Code, Codex |
| template-textbookdocxology/template | Skill | 23 | yesterday | Apache-2.0 | A | 29 | Claude Code, Codex |