patent-search

patent-search is a skill for Claude Code from handsomestWei/patent-disclosure-skill. It costs 46 tokens per session (840 once invoked), scanned A, original, MIT.

A search tool for published Chinese patent records, using fields such as inventor, applicant, classification number, and title.

In plain words
What is it for?
It is for finding Chinese patent publications by inventor, company, title, or classification number and saving the results as a report.
Why use it?
It narrows patent searches with specific fields instead of relying on a broad keyword box. It also helps avoid claiming that every result was found when pagination was incomplete.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It is for finding Chinese patent publications by inventor, company, title, or classification number and saving the results as a report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/handsomestwei/patent-disclosure-skill/patent-search
About the project

中国专利.skill is a Chinese-language agent skill for finding patentable ideas, writing patent disclosure documents, explaining published patents, tracking examination policies, and helping prepare examination responses. It is for developers and researchers working with Chinese invention, utility-model, and design patents, with workflows that can store related research in Obsidian.

handsomestWei/patent-disclosure-skill · 9,078 stars · on GitHub · skillhub.cn

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.

Any agent
npx skills add handsomestWei/patent-disclosure-skill --skill patent-search
Clone the repo
git clone --depth 1 https://github.com/handsomestWei/patent-disclosure-skill

Made for: Claude Code.

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-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/handsomestwei/patent-disclosure-skill/patent-search/github.svg)](https://agentmods.dev/skills/handsomestwei/patent-disclosure-skill/patent-search)
Your own site
<a href="https://agentmods.dev/skills/handsomestwei/patent-disclosure-skill/patent-search"><img src="https://agentmods.dev/badge/skills/handsomestwei/patent-disclosure-skill/patent-search/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-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/handsomestwei/patent-disclosure-skill/patent-search"><img src="https://agentmods.dev/badge/skills/handsomestwei/patent-disclosure-skill/patent-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 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.00046 $0.00840
Opus 5 $0.00023 $0.00420
Sonnet 5 $0.00009 $0.00168
Haiku 4.5 $0.00005 $0.00084

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

Security

Grade A, and why

patent-search 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 3d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (tests/__init__.py, tests/test_cnipa_search.py, tests/test_emit_search_report.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/patent-search/SKILL.md · 44 lines

What it actually says

著录检索

通用公布站高级查询,不是「个人清单技能」。个人公开清单只是一种用法。

Read prompts/patent_search.md 用户给单图或权要时再 Read prompts/derived_query.md

默认少翻页

  • 阈值在 config.yamlmax_pages(默认 3);max_pages_hard(默认 20)仅在探测不到「共 N 页」时启用。
  • page_size 只是探测不到「每页 N 条」时的回退,不要用它估总条数。
  • 对话里用户说「多翻几页 / 翻 5 页」→ 传 --max-pages N(普通检索仍受 hard 限制);或改 config.yaml
  • 不要一上来爬完全部分页。只有用户明确要求穷举清单时才加 --complete
  • --complete 第一页若读到「共 N 页」,按总页数翻完(硬上限随总页数);读不到才用 max_pages_hard
  • 采到总页数才能说「已翻完全部分页」或「还剩 x 页」;没采到只谈还能不能点「下页」。
  • complete: false 时禁止称为「全部」。退出码 3 表示分页不完整。

命令

python skills/patent-search/tools/cnipa_search.py --inventor "姓名" --applicant "单位"
python skills/patent-search/tools/cnipa_search.py --title "数据处理" --abstract "吸附 and 再生" --class B01J20 --max-pages 2
python skills/patent-search/tools/cnipa_search.py --abstract "折叠 and 杯盖" --type design --derived-from image --type-inferred --derived-note "折叠杯盖"
python skills/patent-search/tools/cnipa_search.py --inventor "姓名" --complete

单图必须 --type design|utility_model|invention,不能 all。用户没说类型时看图推断并加 --type-inferred。权要按文本选类型,可用 all

单独拷走本包时:python tools/cnipa_search.py …

结果默认落到 outputs/patent-search/SEARCH-YYYYMMDD-HHMMSS.md(gitignore)。改版式只动 tools/emit_search_report.py

机读前缀:EPUB_SEARCH_MD: / EPUB_SEARCH_JSON: / EPUB_SEARCH_NOTE: / EPUB_SEARCH_INCOMPLETE:。对话里告诉用户 Markdown 路径,不要只倒 JSON。

必须走高级查询字段(#e72 发明人、#ti 名称、#abs 摘要/简要说明、#e51 分类号等),禁止把发明人姓名填进首页综合框代替。申请号填表前去掉校验点。

不做:Google Patents / 学术检索与跨库去重、PSS 登录站、权利要求全文/同族深挖、按附图视觉相似检索、按权利要求语义检索。单图/权要只生成公布站布尔式。
禁止被交底 Step 5 当查新引擎调用。

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. 3d ago Changed · +3 lines · +16 tokens per session dc1019c6d780
  2. 8d ago First seen · 41 lines · 30 tokens per session scan A 49b621bbc3aa

Subscribe to this mod's changes

patent-search is a skill published in the GitHub repository handsomestWei/patent-disclosure-skill (9,078 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 840 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-09-03.

Related

Other skills, from other repositories