scholaraio: Skill for Claude Code

.claude/skills/patent-fetch/SKILL.md

patent-fetch is a skill for Claude Code from ZimoLiao/scholaraio. It costs 32 tokens per session (1,056 once invoked), scanned A, original, MIT.

A tool for downloading patent PDFs from a patent publication number, a patent URL, or patent-search results. It prioritizes the official United States Patent and Trademark Office download service and can save files to a configured patent inbox.

In plain words
What is it for?
Fetch US patent PDFs by publication ID or URL, optionally download results from patent searches, and place them in the inbox for a later knowledge-base import. It only downloads files; it does not import them.
Why use it?
It removes the need to find and download each patent document manually. It also avoids downloading a file again when that file is already present.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ZimoLiao/scholaraio's own configuration. It tells Claude Code how to work on scholaraio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scholaraio configures →

Part of the scholaraio plugin — 47 skills, 1 hook, 1 MCP server shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/patent-fetch/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZimoLiao/scholaraio

Made for: Claude Code.

Or install scholaraio, the plugin that ships this one along with the rest of its 47 skills, 1 hook, 1 MCP server.

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 patent-fetch

README.md
[![agentmods](https://agentmods.dev/badge/skills/zimoliao/scholaraio/patent-fetch/github.svg)](https://agentmods.dev/skills/zimoliao/scholaraio/patent-fetch)
Your own site
<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.

agentmods 80×15 button for patent-fetch

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 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 pass 7 Sept 2026
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.00032 $0.01056
Opus 5 $0.00016 $0.00528
Sonnet 5 $0.00006 $0.00211
Haiku 4.5 $0.00003 $0.00106

Measured 11d ago against content hash 9dabe46d15cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 11d 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.

.claude/skills/patent-fetch/SKILL.md · 111 lines

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/)是否有写入权限
  • 确认磁盘空间充足

Read the full file on GitHub · 111 lines

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. 11d ago First seen · 111 lines · 32 tokens per session scan A 9dabe46d15cf

Subscribe to this mod's changes

patent-fetch is a skill published in the GitHub repository ZimoLiao/scholaraio (570 stars, last pushed 12d ago), licensed MIT. It adds 32 tokens to every session and 1,056 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

infrastructure-validation

Skill for the validation infrastructure module providing PDF validation, markdown validation, output integrity checks, link verification, documentation audits, issue categorization, and repository scanning. Use when validating research outputs, checking document quality, running audits, or verifying cross-references.

docxology/template · 54 tokens

template-pitch-deck

Pitch-deck generation exemplar — short/medium/long PDF+PPTX decks from one token-resolved, diligence-cited content source.

docxology/template · 35 tokens

infrastructure-steganography

Skill for the steganography infrastructure module providing QR code generation with dynamic mailto links, hash manifests, metadata payloads, and document-wide overlay processing. Use this module to insert opt-in cryptographic and steganographic provenance data onto PDFs.

docxology/template · 55 tokens

template-validation-quality

Run validation CLI, prerender, markdown/PDF/integrity gates, and QA workflows for the Research Project Template. USE WHEN validate manuscript, check PDF for ?? refs, prerender gate, link checker, output integrity, or pre-commit validation — even without validationquality prompt.

docxology/template · 64 tokens

template-storybook

Full-page illustrated storybook exemplar — symbolic shape-family characters, page-level raster scenes, text overlays, deterministic PDF assembly.

docxology/template · 28 tokens

template-textbook

Modular fillable textbook scaffold — parts/chapters/labs/question banks from config.yaml, auto-numbering, deterministic figures, structural contract enforcement.

docxology/template · 34 tokens