Describe your invention in plain words and get back

Patent Pipeline: From Invention to Filing

by wanshuiyin · MIT license · ★ 16,473 on GitHub · updated Sep 18

Patent Pipeline: From Invention to Filing cover

Describe your invention in plain words and get back a complete first-draft patent application — claims, full description, and abstract — ready to hand to a patent attorney.

---
name: patent-pipeline
description: "Full patent drafting pipeline from invention description to jurisdiction-formatted filing documents. Supports CN (CNIPA), US (USPTO), EP (EPO). Supports invention patents and utility models. Use when user says \"写专利\", \"patent pipeline\", \"专利申请\", \"draft patent\", \"写权利要求书\", or wants to draft a complete patent application."
argument-hint: "[invention-description — jurisdiction]"
allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, Skill, mcp__codex__codex
---

# Patent Pipeline: From Invention to Filing

Draft a complete patent application based on: **$ARGUMENTS**

## Overview

This skill orchestrates the full patent drafting lifecycle -- from prior art search through jurisdiction-formatted filing documents. It chains sub-skills into a patent-specific pipeline:

```
/prior-art-search → /patent-novelty-check → /invention-structuring → /claims-drafting → /specification-writing → /patent-review → /jurisdiction-format
     (search)           (verify)              (structure)             (claims)            (description)          (examiner)         (compile)

Overview

This skill orchestrates the full patent drafting lifecycle -- from prior art search through jurisdiction-formatted filing documents. It chains sub-skills into a patent-specific pipeline:

Example prompts

/patent-pipeline → [file patent] (patent track/patent-pipeline /idea-discovery produces IDEA_REPORT.md ──→ /patent-pipeline (extract patentable aspects/patent-pipeline (from refined research idea/patent-pipeline (patent the method
Manual install (npx, ZIP)
Claude Codenpx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill patent-pipeline -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/wanshuiyin/Auto-claude-code-research-in-sleep/tar.gz/f1bd907b58f6 \ | tar -xz -C ~/.claude/skills --strip-components=2 Auto-claude-code-research-in-sleep-f1bd907b58f6/skills/patent-pipeline
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/15bfd4513e9c3181bdc8/patent-pipeline.zip" -OutFile "$env:TEMP\patent-pipeline.zip"; Expand-Archive "$env:TEMP\patent-pipeline.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md14.2 KB
Read the files here
wanshuiyin/f1bd9071 file
SKILL.md
Show the full text345 lines

Patent Pipeline: From Invention to Filing

Draft a complete patent application based on: $ARGUMENTS

Overview

This skill orchestrates the full patent drafting lifecycle -- from prior art search through jurisdiction-formatted filing documents. It chains sub-skills into a patent-specific pipeline:

/prior-art-search → /patent-novelty-check → /invention-structuring → /claims-drafting → /specification-writing → /patent-review → /jurisdiction-format
     (search)           (verify)              (structure)             (claims)            (description)          (examiner)         (compile)
                                                                                              ├── /figure-description
                                                                                              └── /embodiment-description

This is a parallel branch, not part of the linear research pipeline. After /idea-discovery produces validated ideas, the user can either:

  • Go to /experiment-bridge → /auto-review-loop → /paper-writing (publish track)
  • Go to /grant-proposal (funding track)
  • Go to /patent-pipeline (patent track) <-- this skill
                    ┌→ /experiment-bridge → /auto-review-loop → /paper-writing  (publish track)
/idea-discovery ────┤
                    ├→ /grant-proposal → [get funded] → ...  (funding track)
                    └→ /patent-pipeline → [file patent]       (patent track)

Patents are about protecting inventions (legal scope), not publishing results (academic contribution). This skill handles the unique requirements of patent drafting: prior art analysis, claims hierarchy design, specification writing with enablement support, embodiment descriptions, and jurisdiction-specific formatting.

Constants

  • JURISDICTION = CN — Target patent jurisdiction. Options: CN (CNIPA), US (USPTO), EP (EPO), ALL (generate all three). Override via argument (e.g., /patent-pipeline "invention — US").
  • PATENT_TYPE = invention — invention (发明专利, 20 year protection) or utility_model (实用新型, CN only, 10 year protection, apparatus claims only). Override via argument.
  • REVIEWER_MODEL = gpt-6-astra — Model used via Codex MCP for examiner-style review.
  • MAX_REVIEW_ROUNDS = 2 — Maximum review-revision cycles.
  • AUTO_PROCEED = false — At each checkpoint, always wait for explicit user confirmation. Patent applications require inventor judgment at every stage. Set true only if user explicitly requests autonomous mode.
  • LANGUAGE = auto — Output language. Auto-detected from jurisdiction: CN->Chinese, US->English, EP->English. Override explicitly if needed.
  • OUTPUT_DIR = patent/ — Directory for generated patent files.
  • OUTPUT_FORMAT = markdown — Draft format. markdown for review, docx for filing-ready.

Override defaults via arguments: /patent-pipeline "invention — US, utility model" or /patent-pipeline "invention — ALL, language: Chinese".

Patent Type Specifications

Invention Patent (发明专利)
Field Detail
Protection 20 years from filing date
Subject matter Methods, systems, products, compositions, processes
Examination Substantive examination required
Inventive step High (must involve an inventive step / 创造性)
Timeline 2-4 years to grant (CN); 2-3 years (US); 3-5 years (EP)
Claims Method + system + product claims allowed
Utility Model (实用新型) — CN Only
Field Detail
Protection 10 years from filing date
Subject matter Product shape, structure, or combination thereof only
Examination Formal examination only (no substantive examination)
Inventive step Lower than invention patent
Timeline 6-8 months to grant
Claims Apparatus/device claims only. NO method claims.
Restriction CN jurisdiction only

State Persistence (Compact Recovery)

Patent drafting is a long task that may trigger context compaction. Persist state to patent/PATENT_STATE.json after each phase:

{
  "phase": 3,
  "jurisdiction": "CN",
  "patent_type": "invention",
  "language": "Chinese",
  "codex_thread_id": "019cfcf4-...",
  "invention_title": "...",
  "claims_count": 15,
  "status": "in_progress",
  "timestamp": "2026-04-10T15:00:00"
}

Write this file at the end of every phase. On invocation, check for this file:

  • If absent or status: "completed" -> fresh start
  • If status: "in_progress" and within 24h -> resume from saved phase (read output files to restore context)
  • If older than 24h -> fresh start (stale state)

On completion, set "status": "completed".

Workflow

Phase 0: Input Parsing & Context Gathering

Parse $ARGUMENTS to extract:

  1. Invention description — may be structured (references INVENTION_BRIEF.md), conversational with figures, or output from IDEA_REPORT.md
  2. Jurisdiction — detect from keywords (e.g., "CN" or "中国" -> CN, "US" or "USPTO" -> US, "EP" or "EPO" -> EP, "ALL")
  3. Patent type — detect from keywords (e.g., "utility model" or "实用新型" -> utility_model, default -> invention)
  4. Overrides — language, output format, review rounds

Then gather context from the project directory:

  1. Read INVENTION_BRIEF.md if it exists (user filled in the template)
  2. Read IDEA_REPORT.md if it exists (from /idea-discovery -- can extract invention from research results)
  3. Read refine-logs/FINAL_PROPOSAL.md if it exists
  4. Read NARRATIVE_REPORT.md if it exists (research results that may be patentable)
  5. Search for user-provided figures (PNG, JPG, SVG, PDF) in the project directory
  6. Check for patent/PATENT_STATE.json (resume from prior interrupted run)

If insufficient context exists:

  • No invention description at all -> suggest user describe the invention or fill in INVENTION_BRIEF.md
  • Has IDEA_REPORT.md -> extract patentable aspects from the research
  • Has figures -> reference them in the invention brief
  • No figures -> note that figures will be needed and plan what drawings are required

If the input is conversational (not a structured brief), parse the description into the invention brief structure and write patent/INVENTION_BRIEF.md for downstream phases.

Phase 1: Prior Art Search & Novelty Assessment

Invoke /prior-art-search:

/prior-art-search "patent/INVENTION_BRIEF.md"

This searches patent databases (Google Patents, Espacenet) and academic literature for relevant prior art.

1.2 Novelty Check

Invoke /patent-novelty-check:

/patent-novelty-check "patent/INVENTION_BRIEF.md"

This assesses novelty and non-obviousness against the prior art found in step 1.1.

🚦 Checkpoint: Present the prior art landscape and novelty assessment:

Prior art search complete:
- [X] patent references found
- [Y] non-patent literature references found
- Closest prior art: [reference] -- [why it's closest]
- Novelty assessment: [PATENTABLE / PATENTABLE WITH AMENDMENTS / NOT PATENTABLE]
- Key risk areas: [list]

Ready to proceed with invention structuring?

⛔ STOP HERE and wait for user response. Do NOT auto-proceed unless AUTO_PROCEED=true.

Options:

  • Reply "go" -> proceed to Phase 2
  • Reply with adjustments -> refine the invention scope and re-check novelty
  • Reply "stop" -> save progress to patent/DRAFT_NOTES.md

State: Write PATENT_STATE.json with phase: 1.

Phase 2: Invention Structuring & Claims Design
2.1 Structure the Invention

Invoke /invention-structuring:

/invention-structuring "patent/INVENTION_BRIEF.md"

This decomposes the invention into core inventive concept, supporting features, and optional features. Produces patent/INVENTION_DISCLOSURE.md.

2.2 Draft Claims

Invoke /claims-drafting:

/claims-drafting "patent/INVENTION_DISCLOSURE.md"

This drafts the claims hierarchy -- the most critical part of the patent. Produces patent/CLAIMS.md.

🚦 Checkpoint: Present the invention structure and claims:

Invention structured:
- Core inventive concept: [summary]
- Claim categories: [method, system, etc.]
- Claims drafted: [X] independent + [Y] dependent = [Z] total
- Independent claim 1 (broadest): [first 50 words of claim 1]
- Examiner review score: [X]/10

The claims define the legal scope of protection. Please review before proceeding to specification.

⛔ STOP HERE and wait for user response. Do NOT auto-proceed unless AUTO_PROCEED=true.

Options:

  • Reply "go" -> proceed to Phase 3
  • Reply with adjustments (e.g., "broaden claim 1", "add more dependent claims") -> revise claims
  • Reply "stop" -> save progress

State: Write PATENT_STATE.json with phase: 2.

Phase 3: Specification Writing

Invoke /specification-writing:

/specification-writing "patent/CLAIMS.md"

This writes the full specification section by section. Internally invokes /figure-description (if user-provided figures exist) and /embodiment-description for the detailed description. The specification-writing skill handles figure processing and embodiment writing as sub-skills.

🚦 Checkpoint: Present the specification overview:

Specification written:
- Title: [title]
- Sections: Technical Field, Background, Summary, Drawings Description, Detailed Description, Abstract
- Embodiments: [X]
- Reference numerals: [Y] components mapped
- Abstract length: [Z] words (limit: [jurisdiction limit])
- Claim support: [all elements covered / X elements missing]

Ready to proceed to review?

⛔ STOP HERE and wait for user response.

State: Write PATENT_STATE.json with phase: 3.

Phase 4: Patent Review

Invoke /patent-review:

/patent-review "patent/"

This runs 2 rounds of examiner-style review via GPT-6-Astra xhigh. The examiner evaluates clarity, written description, enablement, novelty, non-obviousness, and claim scope.

State: Write PATENT_STATE.json with phase: 4 and review score.

Phase 5: Jurisdiction Formatting & Output

Invoke /jurisdiction-format:

/jurisdiction-format "patent/"

This compiles the application into the target jurisdiction format(s).

Final Deliverables
Output Location Description
CN: 权利要求书 patent/output/CN/ Claims in CNIPA format
CN: 说明书 patent/output/CN/ Description in CNIPA format
CN: 说明书摘要 patent/output/CN/ Abstract (CN)
US: Claims patent/output/US/ Claims in USPTO format
US: Specification patent/output/US/ Description in USPTO format
US: Abstract patent/output/US/ Abstract (US)
EP: Claims patent/output/EP/ Claims in EPO format
EP: Description patent/output/EP/ Description in EPO format
EP: Abstract patent/output/EP/ Abstract (EP)
Final Report
## Patent Pipeline Complete

### Application Summary
- Title: [invention title]
- Jurisdiction: [CN/US/EP/ALL]
- Patent Type: [Invention / Utility Model]
- Language: [Chinese/English]
- Total Claims: [X] independent + [Y] dependent

### Pipeline Scores
| Phase | Score |
|-------|-------|
| Prior Art Search | [completeness assessment] |
| Novelty Assessment | [PATENTABLE/PATENTABLE WITH AMENDMENTS/NOT PATENTABLE] |
| Examiner Review Round 1 | [X]/10 |
| Examiner Review Round 2 | [Y]/10 |
| Final | [Z]/10 |

### Output Files
[Table of all generated files with paths]

### Next Steps
- [ ] Have a patent attorney review the application
- [ ] Conduct professional prior art search (this tool's search is preliminary)
- [ ] Prepare formal drawings (if user figures need professional rendering)
- [ ] File with the patent office
- [ ] For utility model (CN): formal examination typically takes 6-8 months
- [ ] For invention patent: substantive examination may take 2-4 years

State: Write PATENT_STATE.json with phase: 5, status: "completed".

Key Rules

  • Never fabricate prior art references, patent numbers, or citations.
  • Claims must be supported by the specification (written description requirement).
  • Each jurisdiction has strict format requirements -- do not mix formats.
  • Utility model (实用新型) applies ONLY to CN jurisdiction and ONLY covers apparatus/device claims.
  • AUTO_PROCEED defaults to false -- patent applications require human review at every phase. Sub-skills inherit this flag: when AUTO_PROCEED=false, sub-skills present results and wait at their own internal checkpoints too.
  • The patent pipeline produces drafts for attorney review, not final filing documents.
  • Large file handling: if a Write operation fails, retry with Bash cat <<'EOF' heredoc.
  • Never include experimental results or empirical evaluations in the specification.
  • Consistent terminology is mandatory -- same word for the same concept throughout.
  • If mcp__codex__codex is not available (no OpenAI API key), skip external cross-model review and note it in the output. The pipeline must not fail due to missing reviewer access.

Composing with Other Workflows

The patent pipeline can start from multiple entry points:

User describes invention directly ──→ /patent-pipeline

/idea-discovery produces IDEA_REPORT.md ──→ /patent-pipeline (extract patentable aspects)

/research-refine produces FINAL_PROPOSAL.md ──→ /patent-pipeline (from refined research idea)

/auto-review-loop produces strong results ──→ /patent-pipeline (patent the method)

Acknowledgements

Built on the ARIS (Auto-claude-code-research-in-sleep) skill architecture. Patent writing principles adapted from MPEP (US), CN Patent Examination Guidelines (CN), and EPO Guidelines for Examination (EP).

1---
2name: patent-pipeline
3description: "Full patent drafting pipeline from invention description to jurisdiction-formatted filing documents. Supports CN (CNIPA), US (USPTO), EP (EPO). Supports invention patents and utility models. Use when user says \"写专利\", \"patent pipeline\", \"专利申请\", \"draft patent\", \"写权利要求书\", or wants to draft a complete patent application."
4argument-hint: "[invention-description — jurisdiction]"
5allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, Skill, mcp__codex__codex
6---
7 
8# Patent Pipeline: From Invention to Filing
9 
10Draft a complete patent application based on: **$ARGUMENTS**
11 
12## Overview
13 
14This skill orchestrates the full patent drafting lifecycle -- from prior art search through jurisdiction-formatted filing documents. It chains sub-skills into a patent-specific pipeline:
15 
16```
17/prior-art-search → /patent-novelty-check → /invention-structuring → /claims-drafting → /specification-writing → /patent-review → /jurisdiction-format
18 (search) (verify) (structure) (claims) (description) (examiner) (compile)
19 ├── /figure-description
20 └── /embodiment-description
21```
22 
23**This is a parallel branch, not part of the linear research pipeline.** After `/idea-discovery` produces validated ideas, the user can either:
24- Go to `/experiment-bridge` → `/auto-review-loop` → `/paper-writing` (publish track)
25- Go to `/grant-proposal` (funding track)
26- Go to `/patent-pipeline` (patent track) **<-- this skill**
27 
28```
29 ┌→ /experiment-bridge → /auto-review-loop → /paper-writing (publish track)
30/idea-discovery ────┤
31 ├→ /grant-proposal → [get funded] → ... (funding track)
32 └→ /patent-pipeline → [file patent] (patent track)
33```
34 
35Patents are about **protecting inventions** (legal scope), not publishing results (academic contribution). This skill handles the unique requirements of patent drafting: prior art analysis, claims hierarchy design, specification writing with enablement support, embodiment descriptions, and jurisdiction-specific formatting.
36 
37## Constants
38 
39- **JURISDICTION = `CN`** — Target patent jurisdiction. Options: `CN` (CNIPA), `US` (USPTO), `EP` (EPO), `ALL` (generate all three). Override via argument (e.g., `/patent-pipeline "invention — US"`).
40- **PATENT_TYPE = `invention`** — `invention` (发明专利, 20 year protection) or `utility_model` (实用新型, CN only, 10 year protection, apparatus claims only). Override via argument.
41- **REVIEWER_MODEL = `gpt-6-astra`** — Model used via Codex MCP for examiner-style review.
42- **MAX_REVIEW_ROUNDS = 2** — Maximum review-revision cycles.
43- **AUTO_PROCEED = false** — At each checkpoint, **always wait for explicit user confirmation**. Patent applications require inventor judgment at every stage. Set `true` only if user explicitly requests autonomous mode.
44- **LANGUAGE = `auto`** — Output language. Auto-detected from jurisdiction: CN->Chinese, US->English, EP->English. Override explicitly if needed.
45- **OUTPUT_DIR = `patent/`** — Directory for generated patent files.
46- **OUTPUT_FORMAT = `markdown`** — Draft format. `markdown` for review, `docx` for filing-ready.
47 
48> Override defaults via arguments: `/patent-pipeline "invention — US, utility model"` or `/patent-pipeline "invention — ALL, language: Chinese"`.
49 
50## Patent Type Specifications
51 
52### Invention Patent (发明专利)
53 
54| Field | Detail |
55|-------|--------|
56| **Protection** | 20 years from filing date |
57| **Subject matter** | Methods, systems, products, compositions, processes |
58| **Examination** | Substantive examination required |
59| **Inventive step** | High (must involve an inventive step / 创造性) |
60| **Timeline** | 2-4 years to grant (CN); 2-3 years (US); 3-5 years (EP) |
61| **Claims** | Method + system + product claims allowed |
62 
63### Utility Model (实用新型) — CN Only
64 
65| Field | Detail |
66|-------|--------|
67| **Protection** | 10 years from filing date |
68| **Subject matter** | Product shape, structure, or combination thereof only |
69| **Examination** | Formal examination only (no substantive examination) |
70| **Inventive step** | Lower than invention patent |
71| **Timeline** | 6-8 months to grant |
72| **Claims** | Apparatus/device claims only. NO method claims. |
73| **Restriction** | CN jurisdiction only |
74 
75## State Persistence (Compact Recovery)
76 
77Patent drafting is a long task that may trigger context compaction. Persist state to `patent/PATENT_STATE.json` after each phase:
78 
79```json
80{
81 "phase": 3,
82 "jurisdiction": "CN",
83 "patent_type": "invention",
84 "language": "Chinese",
85 "codex_thread_id": "019cfcf4-...",
86 "invention_title": "...",
87 "claims_count": 15,
88 "status": "in_progress",
89 "timestamp": "2026-04-10T15:00:00"
90}
91```
92 
93**Write this file at the end of every phase.** On invocation, check for this file:
94- If absent or `status: "completed"` -> fresh start
95- If `status: "in_progress"` and within 24h -> **resume** from saved phase (read output files to restore context)
96- If older than 24h -> fresh start (stale state)
97 
98On completion, set `"status": "completed"`.
99 
100## Workflow
101 
102### Phase 0: Input Parsing & Context Gathering
103 
104Parse `$ARGUMENTS` to extract:
105 
1061. **Invention description** — may be structured (references INVENTION_BRIEF.md), conversational with figures, or output from IDEA_REPORT.md
1072. **Jurisdiction** — detect from keywords (e.g., "CN" or "中国" -> CN, "US" or "USPTO" -> US, "EP" or "EPO" -> EP, "ALL")
1083. **Patent type** — detect from keywords (e.g., "utility model" or "实用新型" -> utility_model, default -> invention)
1094. **Overrides** — language, output format, review rounds
110 
111Then gather context from the project directory:
112 
1131. Read `INVENTION_BRIEF.md` if it exists (user filled in the template)
1142. Read `IDEA_REPORT.md` if it exists (from `/idea-discovery` -- can extract invention from research results)
1153. Read `refine-logs/FINAL_PROPOSAL.md` if it exists
1164. Read `NARRATIVE_REPORT.md` if it exists (research results that may be patentable)
1175. Search for user-provided figures (PNG, JPG, SVG, PDF) in the project directory
1186. Check for `patent/PATENT_STATE.json` (resume from prior interrupted run)
119 
120If insufficient context exists:
121- No invention description at all -> suggest user describe the invention or fill in `INVENTION_BRIEF.md`
122- Has IDEA_REPORT.md -> extract patentable aspects from the research
123- Has figures -> reference them in the invention brief
124- No figures -> note that figures will be needed and plan what drawings are required
125 
126**If the input is conversational** (not a structured brief), parse the description into the invention brief structure and write `patent/INVENTION_BRIEF.md` for downstream phases.
127 
128### Phase 1: Prior Art Search & Novelty Assessment
129 
130#### 1.1 Prior Art Search
131 
132Invoke `/prior-art-search`:
133 
134```
135/prior-art-search "patent/INVENTION_BRIEF.md"
136```
137 
138This searches patent databases (Google Patents, Espacenet) and academic literature for relevant prior art.
139 
140#### 1.2 Novelty Check
141 
142Invoke `/patent-novelty-check`:
143 
144```
145/patent-novelty-check "patent/INVENTION_BRIEF.md"
146```
147 
148This assesses novelty and non-obviousness against the prior art found in step 1.1.
149 
150**🚦 Checkpoint:** Present the prior art landscape and novelty assessment:
151 
152```
153Prior art search complete:
154- [X] patent references found
155- [Y] non-patent literature references found
156- Closest prior art: [reference] -- [why it's closest]
157- Novelty assessment: [PATENTABLE / PATENTABLE WITH AMENDMENTS / NOT PATENTABLE]
158- Key risk areas: [list]
159 
160Ready to proceed with invention structuring?
161```
162 
163**⛔ STOP HERE and wait for user response.** Do NOT auto-proceed unless AUTO_PROCEED=true.
164 
165Options:
166- Reply **"go"** -> proceed to Phase 2
167- Reply with **adjustments** -> refine the invention scope and re-check novelty
168- Reply **"stop"** -> save progress to `patent/DRAFT_NOTES.md`
169 
170**State**: Write `PATENT_STATE.json` with `phase: 1`.
171 
172### Phase 2: Invention Structuring & Claims Design
173 
174#### 2.1 Structure the Invention
175 
176Invoke `/invention-structuring`:
177 
178```
179/invention-structuring "patent/INVENTION_BRIEF.md"
180```
181 
182This decomposes the invention into core inventive concept, supporting features, and optional features. Produces `patent/INVENTION_DISCLOSURE.md`.
183 
184#### 2.2 Draft Claims
185 
186Invoke `/claims-drafting`:
187 
188```
189/claims-drafting "patent/INVENTION_DISCLOSURE.md"
190```
191 
192This drafts the claims hierarchy -- the most critical part of the patent. Produces `patent/CLAIMS.md`.
193 
194**🚦 Checkpoint:** Present the invention structure and claims:
195 
196```
197Invention structured:
198- Core inventive concept: [summary]
199- Claim categories: [method, system, etc.]
200- Claims drafted: [X] independent + [Y] dependent = [Z] total
201- Independent claim 1 (broadest): [first 50 words of claim 1]
202- Examiner review score: [X]/10
203 
204The claims define the legal scope of protection. Please review before proceeding to specification.
205```
206 
207**⛔ STOP HERE and wait for user response.** Do NOT auto-proceed unless AUTO_PROCEED=true.
208 
209Options:
210- Reply **"go"** -> proceed to Phase 3
211- Reply with **adjustments** (e.g., "broaden claim 1", "add more dependent claims") -> revise claims
212- Reply **"stop"** -> save progress
213 
214**State**: Write `PATENT_STATE.json` with `phase: 2`.
215 
216### Phase 3: Specification Writing
217 
218Invoke `/specification-writing`:
219 
220```
221/specification-writing "patent/CLAIMS.md"
222```
223 
224This writes the full specification section by section. Internally invokes `/figure-description` (if user-provided figures exist) and `/embodiment-description` for the detailed description. The specification-writing skill handles figure processing and embodiment writing as sub-skills.
225 
226**🚦 Checkpoint:** Present the specification overview:
227 
228```
229Specification written:
230- Title: [title]
231- Sections: Technical Field, Background, Summary, Drawings Description, Detailed Description, Abstract
232- Embodiments: [X]
233- Reference numerals: [Y] components mapped
234- Abstract length: [Z] words (limit: [jurisdiction limit])
235- Claim support: [all elements covered / X elements missing]
236 
237Ready to proceed to review?
238```
239 
240**⛔ STOP HERE and wait for user response.**
241 
242**State**: Write `PATENT_STATE.json` with `phase: 3`.
243 
244### Phase 4: Patent Review
245 
246Invoke `/patent-review`:
247 
248```
249/patent-review "patent/"
250```
251 
252This runs 2 rounds of examiner-style review via GPT-6-Astra xhigh. The examiner evaluates clarity, written description, enablement, novelty, non-obviousness, and claim scope.
253 
254**State**: Write `PATENT_STATE.json` with `phase: 4` and review score.
255 
256### Phase 5: Jurisdiction Formatting & Output
257 
258Invoke `/jurisdiction-format`:
259 
260```
261/jurisdiction-format "patent/"
262```
263 
264This compiles the application into the target jurisdiction format(s).
265 
266#### Final Deliverables
267 
268| Output | Location | Description |
269|--------|----------|-------------|
270| CN: 权利要求书 | `patent/output/CN/` | Claims in CNIPA format |
271| CN: 说明书 | `patent/output/CN/` | Description in CNIPA format |
272| CN: 说明书摘要 | `patent/output/CN/` | Abstract (CN) |
273| US: Claims | `patent/output/US/` | Claims in USPTO format |
274| US: Specification | `patent/output/US/` | Description in USPTO format |
275| US: Abstract | `patent/output/US/` | Abstract (US) |
276| EP: Claims | `patent/output/EP/` | Claims in EPO format |
277| EP: Description | `patent/output/EP/` | Description in EPO format |
278| EP: Abstract | `patent/output/EP/` | Abstract (EP) |
279 
280#### Final Report
281 
282```markdown
283## Patent Pipeline Complete
284 
285### Application Summary
286- Title: [invention title]
287- Jurisdiction: [CN/US/EP/ALL]
288- Patent Type: [Invention / Utility Model]
289- Language: [Chinese/English]
290- Total Claims: [X] independent + [Y] dependent
291 
292### Pipeline Scores
293| Phase | Score |
294|-------|-------|
295| Prior Art Search | [completeness assessment] |
296| Novelty Assessment | [PATENTABLE/PATENTABLE WITH AMENDMENTS/NOT PATENTABLE] |
297| Examiner Review Round 1 | [X]/10 |
298| Examiner Review Round 2 | [Y]/10 |
299| Final | [Z]/10 |
300 
301### Output Files
302[Table of all generated files with paths]
303 
304### Next Steps
305- [ ] Have a patent attorney review the application
306- [ ] Conduct professional prior art search (this tool's search is preliminary)
307- [ ] Prepare formal drawings (if user figures need professional rendering)
308- [ ] File with the patent office
309- [ ] For utility model (CN): formal examination typically takes 6-8 months
310- [ ] For invention patent: substantive examination may take 2-4 years
311```
312 
313**State**: Write `PATENT_STATE.json` with `phase: 5, status: "completed"`.
314 
315## Key Rules
316 
317- Never fabricate prior art references, patent numbers, or citations.
318- Claims must be supported by the specification (written description requirement).
319- Each jurisdiction has strict format requirements -- do not mix formats.
320- Utility model (实用新型) applies ONLY to CN jurisdiction and ONLY covers apparatus/device claims.
321- AUTO_PROCEED defaults to false -- patent applications require human review at every phase. Sub-skills inherit this flag: when AUTO_PROCEED=false, sub-skills present results and wait at their own internal checkpoints too.
322- The patent pipeline produces drafts for attorney review, not final filing documents.
323- Large file handling: if a Write operation fails, retry with Bash `cat <<'EOF'` heredoc.
324- Never include experimental results or empirical evaluations in the specification.
325- Consistent terminology is mandatory -- same word for the same concept throughout.
326- If `mcp__codex__codex` is not available (no OpenAI API key), skip external cross-model review and note it in the output. The pipeline must not fail due to missing reviewer access.
327 
328## Composing with Other Workflows
329 
330The patent pipeline can start from multiple entry points:
331 
332```
333User describes invention directly ──→ /patent-pipeline
334 
335/idea-discovery produces IDEA_REPORT.md ──→ /patent-pipeline (extract patentable aspects)
336 
337/research-refine produces FINAL_PROPOSAL.md ──→ /patent-pipeline (from refined research idea)
338 
339/auto-review-loop produces strong results ──→ /patent-pipeline (patent the method)
340```
341 
342## Acknowledgements
343 
344Built on the ARIS (Auto-claude-code-research-in-sleep) skill architecture. Patent writing principles adapted from MPEP (US), CN Patent Examination Guidelines (CN), and EPO Guidelines for Examination (EP).
345 
View all files on GitHub →

Details

Updated
Sep 18, 2026
License
MIT
Stars on the repo
★ 16,473
Checked
Source
wanshuiyin/Auto-claude-code-research-in-sleep ↗
Creator
wanshuiyin · 7 listings
View creator

Made with patent-pipeline

Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — the evaluator-integrity audit page (from the wanshuiyin/Auto-claude-code-research-in-sleep README)
Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — the evaluator-integrity audit page (from the wanshuiyin/Auto-claude-code-research-in-sleep README)

by wanshuiyin

Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — a multi-panel scene (from the wanshuiyin/Auto-claude-code-research-in-sleep README)
Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — a multi-panel scene (from the wanshuiyin/Auto-claude-code-research-in-sleep README)

by wanshuiyin

Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — the integrity beat (reported +6.2, really moved +1.4) (from the wanshuiyin/Auto-claude-code-research-in-sleep README)
Patent Pipeline: From Invention to Filing — ARIS-Movie-Director frame — the integrity beat (reported +6.2, really moved +1.4) (from the wanshuiyin/Auto-claude-code-research-in-sleep README)

by wanshuiyin

Similar skills

See all →
SkillDescribe your invention in plain words and get backClaims Drafting: The Core Patent Skillwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe your invention in plain words and get back a numbered set of formal patent claims — the legal wording that defines exactly what you own.★ 16.5k GitHub starsSkillDescribe your invention in everyday words and get backPatent Novelty and Non-Obviousness Checkwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe your invention in everyday words and get back a clear read on whether it's new and original enough to patent, plus where it might hit trouble.★ 16.5k GitHub starsPromptAny invention or product photo can be paired with the promptVintage invention patentf/prompts.chat · by magejoshAny invention or product photo can be paired with the prompt if desired specific form is required. I just used the text "Apple Vision Pro" for the invention with no uploaded pic for the example image here.New listingSkillGenerate patent-office-compliant figuresPatentfigdavila7/claude-code-templates · by davila7Generate patent-office-compliant figures via the PatentFig AI API — patent line art from text (PNG or SVG), vectorize drawings to SVG/DXF/vector PDF, AI-upscale images, and convert to filing-ready TIFF/PDF/PNG. Use when the user asks for patent drawings, patent figures, invention diagrams, USPTO/EPO-compliant line art, vectorizing a drawing for CAD, or preparing figures for a patent filing. Requires a PATENTFIG_API_KEY environment variable.★ 32.3k GitHub starsMCPPatent prior-art + landscape intelligence personaCs patentalirezarezvani/claude-skills · by alirezarezvaniPatent prior-art + landscape intelligence persona. Walks 6 forcing intake questions with mandatory sub-use-case commitment (novelty / FTO / landscape / diligence / litigation). Refuses to start without a sub-use-case picked. Refuses generic "patent help" requests. Searches Google Patents + Espacenet + USPTO + optional Lens.org sequentially at 1 q/sec. Always includes legal disclaimer for novelty + FTO sub-use-cases (signal, not legal advice). Family-resolves duplicates across jurisdictions. Outputs 8-section .docx with verdict + audit log.★ 26.3k GitHub starsSkillPatent prior-art and landscape intelligence skillPatent — Prior-Art + Landscape Intelligencealirezarezvani/claude-skills · by alirezarezvaniPatent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search / freedom-to-operate / competitive landscape / acquisition diligence / litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.★ 26.3k GitHub stars

More from wanshuiyin

SkillDescribe your invention in plain words and get backClaims Drafting: The Core Patent Skillwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe your invention in plain words and get back a numbered set of formal patent claims — the legal wording that defines exactly what you own.★ 16.5k GitHub starsSkillDEFAULT poster pipelinePaper Poster (HTML): measurement-gated poster generationwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDEFAULT poster pipeline — build an academic conference poster (ICML/NeurIPS/ICLR/CVPR/...) as a single HTML/CSS file with measurement-driven hard gates, real paper figures, a two-hue design-token system, and print-ready PDF via headless Chromium. Use when the★ 16.5k GitHub starsSkillDescribe your invention in everyday words and get backPatent Novelty and Non-Obviousness Checkwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe your invention in everyday words and get back a clear read on whether it's new and original enough to patent, plus where it might hit trouble.★ 16.5k GitHub starsSkillGet a deep critical review of researchResearch Review via External Reviewer Backend (ultra reasoning)wanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinGet a deep critical review of research from an external reviewer backend (Codex or manual). Use when user says "review my research", "help me review", "get external review", or wants critical feedback on research ideas, papers, or experimental results.★ 16.5k GitHub starsSkillDescribe your invention in plain words and get back a formalStructure Your Invention For A Patent Filingwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe your invention in plain words and get back a formal write-up that lays out the problem it solves, how it works, and which parts are worth protecting.★ 16.5k GitHub starsSkillPeriodically check WandB metrics during training to catchTraining checkwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinPeriodically check WandB metrics during training to catch problems early (NaN, loss divergence, idle GPUs). Avoids wasting GPU hours on broken runs. Use when training is running and you want automated health checks.★ 16.5k GitHub stars