Cnipa Patent Writer — Development skill for Claude Code
中国发明专利(CNIPA)撰写 Claude Code 技能:只借模板版式、内容据你的材料自生成;npx 一键安装.
How to install Cnipa Patent Writer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open fnjialun/cnipa-patent-writer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cnipa Patent Writer does
中国发明专利(CNIPA)撰写 Claude Code 技能:只借模板版式、内容据你的材料自生成;npx 一键安装.
Alternatives in Development
- Om Review Peer — Peer Review Writer 4.6k ★
- Scientific Writer Init 1.6k ★
- Skill Install — 一键安装 cc-use-exp 配置体系 1k ★
README
cnipa-patent-writer
A [Claude Code](https://claude.com/claude-code) **Agent Skill** for drafting Chinese invention patents (CNIPA). It borrows **only the formatting** of a reference patent and generates all text & figures from **your own** materials — never copying the template's technical content.
一个用于撰写**中国发明专利**(CNIPA)申请文档的 Claude Code 技能(Agent Skill)。它**只借一份"模板专利"的版式与 行文风格**(页眉页脚、分节、字体字号、缩进行距、分页、附图编排),而**说明书/权利要求/配图的全部技术内容,一律 据你自己的技术方案重新生成**——绝不照抄模板里的具体技术。产出可直接提交/继续打磨的 `.docx`(含纯黑白配图)。
为什么是它:一条红线
套模板写专利最大的坑,是把模板那篇专利的**具体技术内容**(架构、层级、模块、流程、配图)也一起抄了进来—— 换个用户就是另一套技术,照抄既写错又涉抄袭。本技能把"**只借格式、绝不抄技术内容**"作为**硬性红线**贯穿始终: 一切文本与配图都据你提供的材料/代码生成,模板只提供"长什么样"的通用版式参照。
能力
- 覆盖中国发明专利全部四部分:说明书摘要 / 权利要求书 / 说明书(技术领域·背景技术·发明内容·有益效果· 附图说明·具体实施方式/实施例)/ 说明书附图,复刻标准的"四节四运行页眉 + 各部分独立页码"结构。
- 两种装配器:
- 有模板 → 克隆模板真实段落作原型,版式逐项继承(含逐节复刻模板真实的页脚/页码),并自动剥离模板内嵌的 字体子集(避免跨主题套模板时新文字渲染成豆腐块)。
- 无模板 → 按 CNIPA 标准版式从零生成。
- 配图据内容生成(不是每篇都固定 5 张/JSON 图):纯黑白、单列竖排、框随文字自适应、字够大;matplotlib 与 graphviz 两套画法。
- 可视化校验:
docx → pdf → 逐页 png,按清单逐页核对版式/页眉/页码/配图(结构对 ≠ 视觉对)。 - 行文范式、权利要求"功能/模式抽象求宽保护"手法、以及一份"真实踩过的坑"反面清单。
仓库结构
cnipa-patent-writer/
├── SKILL.md 技能入口:何时用、工作流、核心原则
├── references/
│ ├── writing-style.md 中国专利行文手法、各部分范式、功能抽象、反面清单
│ ├── docx-format.md 克隆复刻法、四节四页眉、页码/内嵌字体处理
│ ├── cnipa-format-spec.md CNIPA 精确版式参数(字体/字号/页边距/段长…)
│ └── figures.md 配图六条硬规则 + 强制逐图自查
└── scripts/
├── inspect_template.py 扒模板 docx 的真实版式(只读版式,不读内容)
├── build_patent.py 有模板装配器(克隆原型 + 四节页眉 + 页码 + 嵌图)
├── build_patent_cnipa.py 无模板兜底装配器(区块 JSON → CNIPA 四节)
├── make_figures.py matplotlib 配图(vflow/vmodules 自适应单列)
├── gen_figures_graphviz.py graphviz 纯黑白流程/架构图
├── gen_json_figs.py 结构化输出面板图(长行自动换行不溢出)
└── render_check.py docx → 逐页 png 渲染校验
安装
方式一:`npx`(推荐,一条命令装进 agent 技能目录)
npx cnipa-patent-writer
Related Skills
Check Pct Formalities
Check international patent application formalities for PCT compliance (PCT Rules 5-12, Administrative Instruct
Configure Bigquery
Configure Google BigQuery authentication for patent search (100M+ patents)
Korean Patent Diagram
특허 명세서를 입력하면 도면 유형을 자동 분석해 PNG로 생성하는 Claude Code 스킬. 플로우차트·블록도·상태도·그래프·공정도 지원. KIPO 규격(300 DPI, 흑백, A4) 준수.
Patent Application Drafting Skill
특허 출원 초안 작성 지원 스킬 (patent-draft-assistant)
Kimicc
一步命令 npx kimicc 使用 Kimi K2 运行 Claude Code。
Agent Blackbox
Local-first flight recorder for coding agents : replay every run as a live session map, score the context bill
Related Agents
Tech Validator
ライブラリ選定・技術検証を行うエージェント。WebSearch・Bash(npm/npx)・WebFetch を使い、要件に最適なライブラリを調査し、最新バージョン・新機能・活用例を含む選定レポートを返す。新技術スタック
CLI Engineer
Ingénieur du CLI Hookstack (packages/cli/, package npm hookstack-cli). Utiliser pour toute évolution du CLI in
View Dependency Tree
npm ls yarn list pnpm list npm outdated yarn outdated npm audit yarn audit npx depcheck npx webpack-bundle-ana