explaingit

fuyuxiang/patent-disclosure-skill

17PythonAudience · pm founderComplexity · 2/5LicenseSetup · easy

TLDR

A plug-in skill for AI coding assistants like Claude Code and Cursor that guides inventors through a multi-round conversation to produce a complete, formally structured patent disclosure document with SVG diagrams.

Mindmap

mindmap
  root((patent-disclosure))
    What it does
      Guides inventors
      Generates disclosure doc
      Produces SVG figures
    Process
      Multi-round conversation
      Domain classification
      Formal patent language
    Output
      CNIPA structure
      SVG diagrams
      Word export
    Domains
      Computer software
      Electronics
      Mechanical
    Tech stack
      Python
      SVG
      Markdown
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Walk through a guided conversation in your AI coding tool to generate a complete patent disclosure document ready for your patent attorney.

USE CASE 2

Automatically generate black-and-white SVG patent figures such as system diagrams and flowcharts that meet patent office formatting rules.

USE CASE 3

Export your completed patent disclosure and diagrams to a formatted Word file with a single command.

Tech stack

PythonSVGMarkdown

Getting it running

Difficulty · easy Time to first run · 30min
Use, copy, modify, and distribute freely for any purpose including commercial use, with the original copyright notice kept.

In plain English

This is a skill (a plug-in set of instructions) for AI coding tools such as Claude Code, Cursor, Windsurf, and similar assistants. Its purpose is to help inventors write patent disclosure documents, which are the detailed technical write-ups that patent attorneys and agents need before they can file a patent application. The skill guides the user through this process using a multi-round conversation rather than asking them to fill out a form. When you activate it, the skill starts by asking a few questions to understand who you are (inventor or patent agent), what you have (a rough verbal description, an existing document, or a code repository), and which technical domain your invention belongs to. From there it asks one focused question at a time to extract the necessary information. The whole conversation typically takes between five and twenty rounds depending on how much material you already have ready. Once it has gathered enough detail, the skill generates a complete patent disclosure document structured the way the China National Intellectual Property Administration expects: technical field, background, description of the invention, technical problem, technical solution, beneficial effects, description of figures, and specific implementation methods. It writes in formal patent language rather than casual AI-generated phrasing, filtering out generic filler phrases automatically. The skill also produces supporting diagrams in SVG format, following the strict rules that patent offices apply to figures: pure black-and-white lines, three-digit reference numbers, no overlapping lead lines. Supported diagram types include system architecture diagrams, flowcharts, and data-flow diagrams. Once the document and diagrams are ready, you can export the whole package to a properly formatted Word file with a single command. The project includes reference files for three technical domains (computer software, electronics and communications, and mechanical manufacturing), each containing a terminology guide and standard sentence patterns used in that field. You can add new domains by creating additional reference files in the same format. The repository is written in Python and is licensed under MIT.

Copy-paste prompts

Prompt 1
I have a rough description of my software invention. Activate the patent-disclosure-skill and start the intake conversation to produce a patent disclosure document.
Prompt 2
The skill generated my patent disclosure but I need to add a second implementation method. How do I continue the conversation to expand that section?
Prompt 3
Generate a system architecture SVG diagram for my invention using the patent-disclosure-skill, showing three components connected by data flow arrows.
Prompt 4
I want to add an electronics domain reference file to patent-disclosure-skill. What format and sections does it need to match the existing computer software reference file?
Open on GitHub → Explain another repo

← fuyuxiang on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.