Describe your invention in plain words and get back a formal

Structure Your Invention For A Patent Filing

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

Structure Your Invention For A Patent Filing cover

Describe 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.

---
name: invention-structuring
description: "Structure a raw invention idea into a formal invention disclosure. Use when user says \"构建发明\", \"structure invention\", \"发明构建\", \"invention disclosure\", or wants to formalize a rough idea into a patent-ready structure."
argument-hint: "[invention-description-or-brief-path]"
allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, mcp__codex__codex
---

# Invention Structuring

Structure the invention into a formal disclosure based on: **$ARGUMENTS**

Adapted from the refinement pattern in `/research-refine` for patent invention decomposition.

## Constants

- `REVIEWER_MODEL = gpt-6-astra` — External reviewer for invention decomposition validation
- `MAX_REFINEMENT_ROUNDS = 3` — Maximum structuring iterations

Overview

Structure the invention into a formal disclosure based on: $ARGUMENTS

Manual install (npx, ZIP)
Claude Codenpx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill invention-structuring -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/invention-structuring
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/e930da3311655e85ab7e/invention-structuring.zip" -OutFile "$env:TEMP\invention-structuring.zip"; Expand-Archive "$env:TEMP\invention-structuring.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.md6.6 KB
Read the files here
wanshuiyin/f1bd9071 file
SKILL.md
Show the full text189 lines

Invention Structuring

Structure the invention into a formal disclosure based on: $ARGUMENTS

Adapted from the refinement pattern in /research-refine for patent invention decomposition.

Constants

  • REVIEWER_MODEL = gpt-6-astra — External reviewer for invention decomposition validation
  • MAX_REFINEMENT_ROUNDS = 3 — Maximum structuring iterations

Inputs

  1. Invention description from $ARGUMENTS
  2. patent/INVENTION_BRIEF.md if exists
  3. patent/PRIOR_ART_REPORT.md — prior art landscape
  4. patent/NOVELTY_ASSESSMENT.md — novelty analysis

Shared References

Load ../shared-references/patent-writing-principles.md for the Problem-Solution-Advantage framework and claimable subject matter guidelines.

Workflow

Step 1: Problem-Solution-Advantage Framework

Structure the invention using the universal patent framework:

Technical Problem (要解决的技术问题):

  • Derived from prior art deficiencies identified in NOVELTY_ASSESSMENT.md
  • Must be a specific, technical problem (not a commercial or social problem)
  • Statement format: "The technical problem to be solved is how to [specific technical objective] given [specific technical constraint]."

Technical Solution (技术方案):

  • The invention's specific technical contribution
  • Focus on the mechanism, not the result
  • Must be described at a level that matches the intended claim scope
  • Identify which features are known vs. inventive

Advantages (有益效果):

  • Measurable or quantifiable improvements over prior art
  • Must result from the inventive features, not just good engineering
  • Include specific technical effects if known (e.g., "reduces processing time by 40%")
Step 2: Invention Decomposition

Break the invention into three layers:

Core Inventive Concept (核心发明构思):

  • The minimal set of features that make the invention patentable
  • This maps to the independent claim scope
  • Test: if you remove this feature, the invention is no longer novel

Supporting Features (支撑性特征):

  • Features that make the invention work well in practice
  • These become dependent claim material
  • They narrow the scope but add practical value

Optional Features (可选特征):

  • Implementation details, preferred parameters, alternatives
  • These become embodiment material
  • They support broader claim interpretation
Step 3: Claimable Subject Matter Identification

For the core inventive concept, determine what categories of claims to draft:

Category Applicability Content
Method/process If invention involves steps Process flow, algorithm, workflow
System/apparatus If invention involves components Hardware structure, modules, connections
Product If invention is a physical device Shape, structure, composition
Computer-readable medium If software invention (US) Stored instructions, non-transitory medium
Product-by-process If structure is hard to define Product defined by how it is made
Step 4: Drawing Plan

Plan what figures are needed to support the claims and specification:

Figure Type Shows Supports Claim Elements
FIG. 1 Block diagram System architecture System claim components
FIG. 2 Flowchart Method steps Method claim steps
FIG. 3 Sequence diagram Interaction between components Specific implementation details

If user has provided figures, reference them here. If figures are missing, note what is needed.

Step 5: Dependency Mapping

Map feature dependencies to plan the claim hierarchy:

Independent Claim 1 (method, broadest scope)
├── Core inventive feature A
├── Core inventive feature B
└── Known feature C (for context)

Dependent Claim 2 → narrows feature A with specific implementation
Dependent Claim 3 → narrows feature B with specific parameters
Dependent Claim 4 → depends on 2, adds optional feature D
Dependent Claim 5 → alternative implementation of feature A
Step 6: Cross-Model Validation

Call REVIEWER_MODEL via mcp__codex__codex with xhigh reasoning:

mcp__codex__codex:
  model: gpt-6-astra
  config: {"model_reasoning_effort": "xhigh"}
  prompt: |
    You are a patent attorney reviewing an invention disclosure.
    Evaluate the structuring choices:

    INVENTION: [Problem-Solution-Advantage summary]
    DECOMPOSITION: [Core/Supporting/Optional features]
    CLAIM PLAN: [intended claim categories and hierarchy]

    Please assess:
    1. Is the Problem-Solution-Advantage framework correctly applied?
    2. Is the core inventive concept correctly identified? Are there features that should be core but are listed as supporting (or vice versa)?
    3. Are the planned claim categories sufficient to protect the invention?
    4. Is the drawing plan adequate for enablement?
    5. Are there any claimable aspects being missed?
Step 7: Output

Write patent/INVENTION_DISCLOSURE.md:

## Invention Disclosure

### Title
[invention title]

### Technical Problem
[formal problem statement]

### Technical Solution
[formal solution description]

### Advantages
[measurable advantages]

### Feature Decomposition

#### Core Inventive Concept
[features that define independent claim scope]

#### Supporting Features
[features for dependent claims]

#### Optional Features
[features for embodiments]

### Claimable Subject Matter
[method, system, product, medium claims planned]

### Drawing Plan
[figures needed, what each shows]

### Dependency Map
[claim hierarchy plan]

### Inventor Information
[names, contributions]

### Target Jurisdiction
[CN/US/EP/ALL]

Key Rules

  • The Problem must come from prior art deficiencies, not from commercial needs.
  • The Solution must describe the technical mechanism, not just the result.
  • The core inventive concept must be the minimum set of features for patentability.
  • Supporting features should be independently valuable -- each should provide a meaningful technical benefit even if other supporting features are removed.
  • Never invent embodiments that do not correspond to the actual invention or user-provided materials.
  • If mcp__codex__codex is not available, skip cross-model validation and note it in the output.
1---
2name: invention-structuring
3description: "Structure a raw invention idea into a formal invention disclosure. Use when user says \"构建发明\", \"structure invention\", \"发明构建\", \"invention disclosure\", or wants to formalize a rough idea into a patent-ready structure."
4argument-hint: "[invention-description-or-brief-path]"
5allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, mcp__codex__codex
6---
7 
8# Invention Structuring
9 
10Structure the invention into a formal disclosure based on: **$ARGUMENTS**
11 
12Adapted from the refinement pattern in `/research-refine` for patent invention decomposition.
13 
14## Constants
15 
16- `REVIEWER_MODEL = gpt-6-astra` — External reviewer for invention decomposition validation
17- `MAX_REFINEMENT_ROUNDS = 3` — Maximum structuring iterations
18 
19## Inputs
20 
211. Invention description from `$ARGUMENTS`
222. `patent/INVENTION_BRIEF.md` if exists
233. `patent/PRIOR_ART_REPORT.md` — prior art landscape
244. `patent/NOVELTY_ASSESSMENT.md` — novelty analysis
25 
26## Shared References
27 
28Load `../shared-references/patent-writing-principles.md` for the Problem-Solution-Advantage framework and claimable subject matter guidelines.
29 
30## Workflow
31 
32### Step 1: Problem-Solution-Advantage Framework
33 
34Structure the invention using the universal patent framework:
35 
36**Technical Problem (要解决的技术问题)**:
37- Derived from prior art deficiencies identified in NOVELTY_ASSESSMENT.md
38- Must be a specific, technical problem (not a commercial or social problem)
39- Statement format: "The technical problem to be solved is how to [specific technical objective] given [specific technical constraint]."
40 
41**Technical Solution (技术方案)**:
42- The invention's specific technical contribution
43- Focus on the mechanism, not the result
44- Must be described at a level that matches the intended claim scope
45- Identify which features are known vs. inventive
46 
47**Advantages (有益效果)**:
48- Measurable or quantifiable improvements over prior art
49- Must result from the inventive features, not just good engineering
50- Include specific technical effects if known (e.g., "reduces processing time by 40%")
51 
52### Step 2: Invention Decomposition
53 
54Break the invention into three layers:
55 
56**Core Inventive Concept (核心发明构思)**:
57- The minimal set of features that make the invention patentable
58- This maps to the independent claim scope
59- Test: if you remove this feature, the invention is no longer novel
60 
61**Supporting Features (支撑性特征)**:
62- Features that make the invention work well in practice
63- These become dependent claim material
64- They narrow the scope but add practical value
65 
66**Optional Features (可选特征)**:
67- Implementation details, preferred parameters, alternatives
68- These become embodiment material
69- They support broader claim interpretation
70 
71### Step 3: Claimable Subject Matter Identification
72 
73For the core inventive concept, determine what categories of claims to draft:
74 
75| Category | Applicability | Content |
76|----------|-------------|---------|
77| Method/process | If invention involves steps | Process flow, algorithm, workflow |
78| System/apparatus | If invention involves components | Hardware structure, modules, connections |
79| Product | If invention is a physical device | Shape, structure, composition |
80| Computer-readable medium | If software invention (US) | Stored instructions, non-transitory medium |
81| Product-by-process | If structure is hard to define | Product defined by how it is made |
82 
83### Step 4: Drawing Plan
84 
85Plan what figures are needed to support the claims and specification:
86 
87| Figure | Type | Shows | Supports Claim Elements |
88|--------|------|-------|------------------------|
89| FIG. 1 | Block diagram | System architecture | System claim components |
90| FIG. 2 | Flowchart | Method steps | Method claim steps |
91| FIG. 3 | Sequence diagram | Interaction between components | Specific implementation details |
92 
93If user has provided figures, reference them here. If figures are missing, note what is needed.
94 
95### Step 5: Dependency Mapping
96 
97Map feature dependencies to plan the claim hierarchy:
98 
99```
100Independent Claim 1 (method, broadest scope)
101├── Core inventive feature A
102├── Core inventive feature B
103└── Known feature C (for context)
104 
105Dependent Claim 2 → narrows feature A with specific implementation
106Dependent Claim 3 → narrows feature B with specific parameters
107Dependent Claim 4 → depends on 2, adds optional feature D
108Dependent Claim 5 → alternative implementation of feature A
109```
110 
111### Step 6: Cross-Model Validation
112 
113Call `REVIEWER_MODEL` via `mcp__codex__codex` with xhigh reasoning:
114 
115```
116mcp__codex__codex:
117 model: gpt-6-astra
118 config: {"model_reasoning_effort": "xhigh"}
119 prompt: |
120 You are a patent attorney reviewing an invention disclosure.
121 Evaluate the structuring choices:
122 
123 INVENTION: [Problem-Solution-Advantage summary]
124 DECOMPOSITION: [Core/Supporting/Optional features]
125 CLAIM PLAN: [intended claim categories and hierarchy]
126 
127 Please assess:
128 1. Is the Problem-Solution-Advantage framework correctly applied?
129 2. Is the core inventive concept correctly identified? Are there features that should be core but are listed as supporting (or vice versa)?
130 3. Are the planned claim categories sufficient to protect the invention?
131 4. Is the drawing plan adequate for enablement?
132 5. Are there any claimable aspects being missed?
133```
134 
135### Step 7: Output
136 
137Write `patent/INVENTION_DISCLOSURE.md`:
138 
139```markdown
140## Invention Disclosure
141 
142### Title
143[invention title]
144 
145### Technical Problem
146[formal problem statement]
147 
148### Technical Solution
149[formal solution description]
150 
151### Advantages
152[measurable advantages]
153 
154### Feature Decomposition
155 
156#### Core Inventive Concept
157[features that define independent claim scope]
158 
159#### Supporting Features
160[features for dependent claims]
161 
162#### Optional Features
163[features for embodiments]
164 
165### Claimable Subject Matter
166[method, system, product, medium claims planned]
167 
168### Drawing Plan
169[figures needed, what each shows]
170 
171### Dependency Map
172[claim hierarchy plan]
173 
174### Inventor Information
175[names, contributions]
176 
177### Target Jurisdiction
178[CN/US/EP/ALL]
179```
180 
181## Key Rules
182 
183- The Problem must come from prior art deficiencies, not from commercial needs.
184- The Solution must describe the technical mechanism, not just the result.
185- The core inventive concept must be the minimum set of features for patentability.
186- Supporting features should be independently valuable -- each should provide a meaningful technical benefit even if other supporting features are removed.
187- Never invent embodiments that do not correspond to the actual invention or user-provided materials.
188- If `mcp__codex__codex` is not available, skip cross-model validation and note it in the output.
189 
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 invention-structuring

Structure Your Invention For A Patent Filing — ARIS-Movie-Director frame — the evaluator-integrity audit page (from the wanshuiyin/Auto-claude-code-research-in-sleep README)
Structure Your Invention For A Patent Filing — ARIS-Movie-Director frame — the evaluator-integrity audit page (from the wanshuiyin/Auto-claude-code-research-in-sleep README)

by wanshuiyin

Structure Your Invention For A Patent Filing — ARIS-Movie-Director frame — a multi-panel scene (from the wanshuiyin/Auto-claude-code-research-in-sleep README)
Structure Your Invention For A Patent Filing — ARIS-Movie-Director frame — a multi-panel scene (from the wanshuiyin/Auto-claude-code-research-in-sleep README)

by wanshuiyin

Structure Your Invention For A Patent 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)
Structure Your Invention For A Patent 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 starsSkillDescribe your invention in plain words and get backPatent Pipeline: From Invention to Filingwanshuiyin/Auto-claude-code-research-in-sleep · by wanshuiyinDescribe 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.★ 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 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