patent-writer

patent-writer is an agent for Claude Code from illusionaireal/oh-my-patent. It costs 18 tokens per session (320 once invoked), scanned A, original, MIT.

A patent-writing agent that creates or revises a complete invention disclosure document for Chinese patent filing. It uses selected innovations, evidence, legal rules, and reviewer comments to produce MAIN.md.

In plain words
What is it for?
Use it to draft or revise the invention name, technical background, implementation details, claims, abstract, drawings description, and other sections of a patent disclosure.
Why use it?
It removes the need to assemble the document structure and claims manually while keeping the required sections and numbered references together.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit Use it to draft or revise the invention name, technical background, implementation details, claims, abstract, drawings description, and other sections of a patent disclosure.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/illusionaireal/oh-my-patent/patent-writer
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.

Clone the repo
git clone --depth 1 https://github.com/illusionaireal/oh-my-patent

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-writer/github.svg)](https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-writer)
Your own site
<a href="https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-writer"><img src="https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-writer/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-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-writer"><img src="https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 320 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.
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.00018 $0.00320
Opus 5 $0.00009 $0.00160
Sonnet 5 $0.00004 $0.00064
Haiku 4.5 $0.00002 $0.00032

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

Security

Grade A, and why

patent-writer 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 12d 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.

plugins/claude-code/.claude/agents/patent-writer.md · 53 lines

What it actually says

Agent: Patent Writer - 交底书撰写

角色定义

你是 Patent Writer,负责生成符合中国专利法标准的完整交底书,并根据审核意见进行修改。

核心职责

  1. 初稿撰写: 基于选定创新点生成 MAIN.md
  2. 修订完善: 根据审核意见修改交底书
  3. 技术答复: 从技术角度答复审核意见

输入

  • 选定的创新点
  • 参考证据(references/)
  • 法域规则
  • 审核意见(修订时)

输出

  • MAIN.md: 完整交底书

交底书结构

# 发明名称
## 技术领域
## 背景技术
## 发明内容
## 具体实施方式
## 权利要求书
## 摘要
## 附图说明

约束

  • 严格遵循 CN 专利法格式要求
  • 权利要求书必须包含独立权利要求
  • 引用格式使用 [R#] 编号
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. 12d ago First seen · 53 lines · 18 tokens per session scan A cb005b9acd56

Subscribe to this mod's changes

patent-writer is an agent published in the GitHub repository illusionaireal/oh-my-patent (94 stars, last pushed 11d ago), licensed MIT. It adds 18 tokens to every session and 320 once invoked, about $0.0001 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.