MCPInstall

patent-diagram-generator

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

Installs
313
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/robthepcguy/claude-patent-creator --skill patent-diagram-generator
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads patent-diagram-generator automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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:

choco install graphviz

Linux:

sudo apt install graphviz

Mac:

brew install graphviz

Python Package:

pip install graphviz

How to Use

When this skill is invoked:

  1. Load diagram generator:

    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:

    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:

    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:

    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:

    # 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:

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

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

FAQ

What does the patent-diagram-generator skill do?

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

How do I install patent-diagram-generator?

Run npx skills add https://github.com/robthepcguy/claude-patent-creator --skill patent-diagram-generator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/patent-diagram-generator/ (personal) or .claude/skills/patent-diagram-generator/ (project).

Which AI agents can use patent-diagram-generator?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is patent-diagram-generator safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains patent-diagram-generator?

It is published by robthepcguy in robthepcguy/claude-patent-creator. It has 313 recorded installs.

More from robthepcguy/claude-patent-creator

View all →

patent-application-creator

robthepcguy/claude-patent-creator

End-to-end patent campaign from ANY raw material ("here is some information; make a patent") to a filing-ready provisional package - invention mining, worth-it economics (design-around cost, detectability), exhaustive adversarial prior art, claims-first drafting, machine-verified compliance, hostile-examiner attack pass, and an honest no-go when nothing clears the bar or the fence is not worth the money

Testing & QA825 installs

patent-claims-analyzer

robthepcguy/claude-patent-creator

Automated analysis of patent claims for USPTO compliance with 35 USC 112(b) requirements - antecedent basis, definiteness, claim structure

Security451 installs

prior-art-search

robthepcguy/claude-patent-creator

Open the skill to read its SKILL.md instructions.

Media & Creative247 installs

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

Data & Databases99 installs

patent-reviewer

robthepcguy/claude-patent-creator

Open the skill to read its SKILL.md instructions.

86 installs

patent-search

robthepcguy/claude-patent-creator

Search 100M+ patents via the MCP server's BigQuery tools. No standalone scripts; everything goes through the MCP tools registered by the patent-creator server.

Backend & APIs72 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs