Agent skill

Patent Diagram Generator

by RobThePCGuy in RobThePCGuy/Claude-Patent-Creator

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering

MITAuto-check: notesLegal & Compliance

Install Patent Diagram Generator

skills CLI
$ npx skills add RobThePCGuy/Claude-Patent-Creator --skill patent-diagram-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RobThePCGuy/Claude-Patent-Creator patent-diagram-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/patent-diagram-generator .claude/skills/patent-diagram-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
patent-diagram-generator
GitHub stars
196
Token cost
~1.7k tokens
SKILL.md length
424 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering

  • Works in 4 steps: Flowchart Generation → Block Diagram Creation → Custom Diagram Rendering → …
  • Tasks that involve Diagrams
  • SKILL.md covers When to Use, What This Skill Does, Required Dependencies and How to Use, plus 9 more sections
  • Calls pip, choco and apt

What it does

Patent Diagram Generator is an agent skill from RobThePCGuy/Claude-Patent-Creator. Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Diagrams and Intellectual property. The repository describes itself as: USPTO patent creation system with MCP server + Claude Code plugin. Hybrid RAG search over MPEP/USC/CFR, BigQuery access to 76M+ patents, automated 35 USC 112 compliance checks… The licence is MIT.

When your agent uses it

  • Tasks that involve Diagrams
  • Tasks that involve Intellectual property

Example prompts

  • “/patent-diagram-generator”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Flowchart Generation
  2. Block Diagram Creation
  3. Custom Diagram Rendering
  4. Patent-Style Formatting

What it can do on your machine

Read from SKILL.md and the folder at commit a089731. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • choco
    • apt
    • brew
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Patent Diagram Generator loads about 1.7k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 424 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:57
    sudo apt install graphviz

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RobThePCGuy/Claude-Patent-Creator at commit a089731, republished under its MIT licence (© RobThePCGuy). 424 words, ~1,725 tokens.

Download SKILL.mdSave it as .claude/skills/patent-diagram-generator/SKILL.md (or your agent's skills folder).
name
patent-diagram-generator
description
Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering
tools
Bash, Read, Write
model
sonnet

Patent Diagram Generator Skill

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz.

When to Use

Invoke this skill when users ask to:

  • Create flowcharts for method claims
  • Generate block diagrams for system claims
  • Draw system architecture diagrams
  • Create technical illustrations for patents
  • Add reference numbers to diagrams
  • Generate patent figures

What This Skill Does

  1. Flowchart Generation:

    • Method step flowcharts
    • Decision trees
    • Process flows with branches
    • Patent-style step numbering
  2. Block Diagram Creation:

    • System component diagrams
    • Hardware architecture diagrams
    • Software module diagrams
    • Component interconnections
  3. Custom Diagram Rendering:

    • Render Graphviz DOT code
    • Support multiple formats (SVG, PNG, PDF)
    • Multiple layout engines (dot, neato, fdp, circo, twopi)
  4. Patent-Style Formatting:

    • Add reference numbers (10, 20, 30, etc.)
    • Use clear labels and connections
    • Professional formatting for USPTO filing

Required Dependencies

This skill requires Graphviz to be installed:

Windows:

bash
choco install graphviz

Linux:

bash
sudo apt install graphviz

Mac:

bash
brew install graphviz

Python Package:

bash
pip install graphviz

How to Use

When this skill is invoked:

  1. Load diagram generator:

    python
    import os
    import sys
    sys.path.insert(0, os.environ.get('CLAUDE_PLUGIN_ROOT', '.'))
    from mcp_server.diagram_generator import PatentDiagramGenerator
    
    generator = PatentDiagramGenerator()
  2. Create flowchart from steps:

    python
    steps = [
        {"id": "start", "label": "Start", "shape": "ellipse", "next": ["step1"]},
        {"id": "step1", "label": "Initialize System", "shape": "box", "next": ["decision"]},
        {"id": "decision", "label": "Is Valid?", "shape": "diamond", "next": ["step2", "error"]},
        {"id": "step2", "label": "Process Data", "shape": "box", "next": ["end"]},
        {"id": "error", "label": "Handle Error", "shape": "box", "next": ["end"]},
        {"id": "end", "label": "End", "shape": "ellipse", "next": []}
    ]
    
    diagram_path = generator.create_flowchart(
        steps=steps,
        filename="method_flowchart",
        output_format="svg"
    )
  3. Create block diagram:

    python
    blocks = [
        {"id": "input", "label": "Input\\nSensor", "type": "input"},
        {"id": "cpu", "label": "Central\\nProcessor", "type": "process"},
        {"id": "memory", "label": "Memory\\nStorage", "type": "storage"},
        {"id": "output", "label": "Output\\nDisplay", "type": "output"}
    ]
    
    connections = [
        ["input", "cpu", "raw data"],
        ["cpu", "memory", "store"],
        ["memory", "cpu", "retrieve"],
        ["cpu", "output", "processed data"]
    ]
    
    diagram_path = generator.create_block_diagram(
        blocks=blocks,
        connections=connections,
        filename="system_diagram",
        output_format="svg"
    )
  4. Render custom DOT code:

    python
    dot_code = """
    digraph PatentSystem {
        rankdir=LR;
        node [shape=box, style=rounded];
    
        Input [label="User Input\\n(10)"];
        Processor [label="Processing Unit\\n(20)"];
        Output [label="Display\\n(30)"];
    
        Input -> Processor [label="data"];
        Processor -> Output [label="result"];
    }
    """
    
    diagram_path = generator.render_dot_diagram(
        dot_code=dot_code,
        filename="custom_diagram",
        output_format="svg",
        engine="dot"
    )
  5. Add reference numbers:

    python
    # After creating a diagram, add patent-style reference numbers
    reference_map = {
        "Input Sensor": 10,
        "Central Processor": 20,
        "Memory Storage": 30,
        "Output Display": 40
    }
    
    annotated_path = generator.add_reference_numbers(
        svg_path=diagram_path,
        reference_map=reference_map
    )

Diagram Templates

Get common templates:

python
templates = generator.get_diagram_templates()

# Available templates:
# - simple_flowchart: Basic process flow
# - system_block: System architecture
# - method_steps: Sequential method
# - component_hierarchy: Hierarchical structure

Shape Types

Flowchart Shapes
  • ellipse: Start/End points
  • box: Process steps
  • diamond: Decision points
  • parallelogram: Input/Output operations
  • cylinder: Database/Storage
Show full SKILL.md (237 more words)Show less
Block Diagram Types
  • input: Input devices/sensors
  • output: Output devices/displays
  • process: Processing units
  • storage: Memory/storage
  • decision: Control logic
  • default: General components

Layout Engines

  • dot: Hierarchical (top-down/left-right)
  • neato: Spring model layout
  • fdp: Force-directed layout
  • circo: Circular layout
  • twopi: Radial layout

Output Formats

  • svg: Scalable Vector Graphics (best for editing)
  • png: Raster image (good for viewing)
  • pdf: Portable Document Format (USPTO compatible)

Patent-Style Reference Numbers

Convention:

  • Main components: 10, 20, 30, 40, ...
  • Sub-components: 12, 14, 16 (under 10)
  • Elements: 22, 24, 26 (under 20)

Example labeling:

"Input Sensor (10)"
"  - Detector Element (12)"
"  - Signal Processor (14)"
"Central Unit (20)"
"  - CPU Core (22)"
"  - Cache (24)"

Presentation Format

When creating diagrams:

  1. Describe what will be generated: "Creating a flowchart for the authentication method with 5 steps..."

  2. Generate the diagram: Run Python code to create SVG/PNG/PDF

  3. Show file location: "Diagram created: ${CLAUDE_PLUGIN_ROOT}/python\diagrams\method_flowchart.svg"

  4. List reference numbers (if added):

    Reference Numbers:
    - Input Module (10)
    - Processing Unit (20)
    - Output Interface (30)

Common Use Cases

  1. Method Claims → Flowcharts

    • Show sequential steps
    • Include decision branches
    • Number steps (S1, S2, S3...)
  2. System Claims → Block Diagrams

    • Show components and connections
    • Use reference numbers
    • Indicate data flow directions
  3. Architecture Diagrams → Custom DOT

    • Complex system layouts
    • Multiple interconnections
    • Hierarchical structures

Error Handling

If Graphviz is not installed:

  1. Check installation: dot -V
  2. Install for your OS (see above)
  3. Verify Python package: pip show graphviz
  4. Test generation: python scripts/test_diagrams.py

Tools Available

  • Bash: To run Python diagram generation
  • Write: To save DOT code or diagrams
  • Read: To load existing diagrams or templates

© RobThePCGuy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/patent-diagram-generator of RobThePCGuy/Claude-Patent-Creator.

Open the folder on GitHubat commit a089731

Compare with similar skills

Patent Diagram Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Patent Diagram Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Patent Diagram Generator this skillRobThePCGuy/Claude-Patent-Creator196—~1.7kAutomated safety check: NotesMIT
Patentfigdavila7/claude-code-templates32k—~1.2kAutomated safety check: PassMIT
Linkfox Zhihuiya Fulltext Imagelinkfox-ai/linkfox-skills1071 repos~1.6kAutomated safety check: PassMIT
Patent Disclosure HandoffLight0305/Light-skills640—~2kAutomated safety check: PassMIT
Patent Disclosure Draftingillusionaireal/oh-my-patent104—~2.4kAutomated safety check: PassMIT
Paper to Chinese Patent DrafterYuan1z0825/nature-skills47k1 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Patentfig

    davila7/claude-code-templates

    Generate 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…

    32k GitHub stars~1.2k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Linkfox Zhihuiya Fulltext Image

    linkfox-ai/linkfox-skills

    通过专利ID或公开号获取专利文件中的全文附图(图纸、示意图、图表)。当用户询问专利图片、专利图纸、专利示意图、专利插图、全文附图、专利图表、专利技术图或想查看、下载专利文件中的嵌入图片、patent fulltext drawings, patent diagrams, technical drawings, patent images…

    107 GitHub starsUsed in 1 repo~1.6k tokens
    Legal & ComplianceAuto-check passed
  • Patent Disclosure Handoff

    Light0305/Light-skills

    Builds an evidence-backed invention disclosure packet from a project or research result for attorney or patent-agent review, without giving legal advice.

    640 GitHub stars~2k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check passed
  • Patent Disclosure Drafting

    illusionaireal/oh-my-patent

    Turns technical ideas, documents or code into traceable patent disclosures, with search planning, patent review, figure drawing and the ability to resume a project.

    104 GitHub stars~2.4k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Paper to Chinese Patent Drafter

    Yuan1z0825/nature-skills

    Drafts Chinese invention patent applications and technical disclosures from research papers or inventor materials, tying each claim feature to source evidence.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    Legal & ComplianceAuto-check passed
  • Paper To Cn Patent

    snipp-zha/Paper-to-patent-Skill

    Convert scientific papers, theses, technical reports, source code, figures, or research manuscripts into evidence-grounded Chinese invention patent drafts.

    106 GitHub starsUsed in 1 repo~959 tokens
    Legal & ComplianceAuto-check passed

More from RobThePCGuy/Claude-Patent-Creator

All 17 skills in this repo
  • Bigquery Patent Search

    RobThePCGuy/Claude-Patent-Creator

    Fast, cloud-based patent searching across 100 million+ worldwide patents using Google BigQuery - keyword search, CPC classification, patent details retrieval

    196 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check: notes
  • Development Assistant

    RobThePCGuy/Claude-Patent-Creator

    Guides through adding new features, MCP tools, analyzers, and extending the patent creator system.

    196 GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check: notes
  • Epc Search

    RobThePCGuy/Claude-Patent-Creator

    RAG search across EPC provisions, EPO Guidelines for Examination, and PCT rules for European and international patent law research

    196 GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed
  • Epo Patent Analyzer

    RobThePCGuy/Claude-Patent-Creator

    Automated analysis of patent applications for EPO compliance with Art.

    196 GitHub stars~2k tokensUpdated 3 days ago
    Auto-check passed
  • Epo Patent Search

    RobThePCGuy/Claude-Patent-Creator

    Search European patents using EPO OPS API (full-text, legal status, families) and BigQuery (100M+ patents, EP filter) for prior art, competitive intelligence, and freedom-to-operate analysis

    196 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Index Manager

    RobThePCGuy/Claude-Patent-Creator

    Manages MPEP index lifecycle including downloads, building, maintenance, and optimization.

    196 GitHub stars~994 tokensUpdated 3 days ago
    Auto-check passed

Questions about Patent Diagram Generator

What does Patent Diagram Generator do?

Create patent-style technical diagrams including flowcharts, block diagrams, and system architectures using Graphviz with reference numbering. Patent Diagram Generator is an agent skill from RobThePCGuy/Claude-Patent-Creator.

When should I use Patent Diagram Generator?

Patent Diagram Generator fits situations like: tasks that involve Diagrams; tasks that involve Intellectual property.

How do I install Patent Diagram Generator in Claude Code?

Run `npx skills add RobThePCGuy/Claude-Patent-Creator --skill patent-diagram-generator -a claude-code`. Or copy the skill folder (skills/patent-diagram-generator in RobThePCGuy/Claude-Patent-Creator) into .claude/skills/patent-diagram-generator in your project. Claude Code loads it when a task matches its description.

How do I install Patent Diagram Generator in Codex?

Run `npx skills add RobThePCGuy/Claude-Patent-Creator --skill patent-diagram-generator -a codex`. Or copy the skill folder (skills/patent-diagram-generator in RobThePCGuy/Claude-Patent-Creator) into .agents/skills/patent-diagram-generator in your project. Codex loads it when a task matches its description.

Can I use Patent Diagram Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RobThePCGuy/Claude-Patent-Creator --skill patent-diagram-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/patent-diagram-generator, .gemini/skills/patent-diagram-generator, .github/skills/patent-diagram-generator and .opencode/skills/patent-diagram-generator in your project.

What does Patent Diagram Generator need to run?

Going by SKILL.md and its folder, Patent Diagram Generator needs the command-line tools its instructions call (pip, choco, apt, brew and python). Our summary lists: Python 3.

Does Patent Diagram Generator access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Patent Diagram Generator safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Patent Diagram Generator use?

Patent Diagram Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Patent Diagram Generator use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Patent Diagram Generator?

Skills that share tags, products or a category with Patent Diagram Generator: Patentfig (davila7/claude-code-templates, 32k stars), Linkfox Zhihuiya Fulltext Image (linkfox-ai/linkfox-skills, 107 stars), Patent Disclosure Handoff (Light0305/Light-skills, 640 stars) and Patent Disclosure Drafting (illusionaireal/oh-my-patent, 104 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Patent Diagram Generator?

RobThePCGuy (a GitHub user) maintains it in RobThePCGuy/Claude-Patent-Creator, which has 196 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 6, 2026.

Source: RobThePCGuy/Claude-Patent-Creator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.