patent-diagram-generator

patent-diagram-generator is a skill for Claude Code from RobThePCGuy/Claude-Patent-Creator. It costs 27 tokens per session (1,761 once invoked), scanned B, original, MIT.

A tool for creating patent-style technical drawings, such as flowcharts, block diagrams, and system architecture diagrams, using Graphviz, a diagram-rendering program.

In plain words
What is it for?
Making process flowcharts, hardware or software block diagrams, connected system architectures, and SVG, PNG, or PDF patent figures.
Why use it?
It helps turn a method or system description into numbered figures suitable for patent documents instead of drawing them manually.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-patent-creator-standalone plugin — 17 skills, 16 commands, 13 agents, 2 hooks shipped together

Good fit Making process flowcharts, hardware or software block diagrams, connected system architectures, and SVG, PNG, or PDF patent figures.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add RobThePCGuy/Claude-Patent-Creator
Claude Code
/plugin install claude-patent-creator-standalone

Made for: Claude Code.

Or install claude-patent-creator-standalone, the plugin that ships this one along with the rest of its 17 skills, 16 commands, 13 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for patent-diagram-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/robthepcguy/claude-patent-creator/patent-diagram-generator/github.svg)](https://agentmods.dev/skills/robthepcguy/claude-patent-creator/patent-diagram-generator)
Your own site
<a href="https://agentmods.dev/skills/robthepcguy/claude-patent-creator/patent-diagram-generator"><img src="https://agentmods.dev/badge/skills/robthepcguy/claude-patent-creator/patent-diagram-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for patent-diagram-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/robthepcguy/claude-patent-creator/patent-diagram-generator"><img src="https://agentmods.dev/badge/skills/robthepcguy/claude-patent-creator/patent-diagram-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01761
Opus 5 $0.00014 $0.00881
Sonnet 5 $0.00005 $0.00352
Haiku 4.5 $0.00003 $0.00176

Measured 12d ago against content hash ee84d9ca635d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

patent-diagram-generator scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install graphviz
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/patent-diagram-generator/SKILL.md · 277 lines

How it starts

The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 sys
    sys.path.insert(0, os.path.join(os.environ.get('CLAUDE_PLUGIN_ROOT', '.'), 'python'))
    from python.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"
    )
    

Read the full file on GitHub · 277 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 277 lines · 27 tokens per session scan B ee84d9ca635d

Subscribe to this mod's changes

patent-diagram-generator is a skill published in the GitHub repository RobThePCGuy/Claude-Patent-Creator (181 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 1,761 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

arxiv

Skill "arxiv" from 0xmariowu/Autosearch, covering skill attribution, when to choose it, how to search (planned), known quirks and quality bar.

0xmariowu/Autosearch · 0 tokens

papers

Skill "papers" from 0xmariowu/Autosearch, covering skill attribution, known quirks and quality bar.

0xmariowu/Autosearch · 0 tokens

pubmed

Use for biomedical and life-science literature searches when query expects PubMed articles, clinical trials, or medical research papers.

0xmariowu/Autosearch · 27 tokens

figure-composer

Compose one publication-grade multi-panel figure. Entry from a one-line claim + data refs, OR from an existing figure via deriveoutlinetask(png). Runs a per-figure loop: outline (12-col grid, per-panel ask + labelbudget) → fan-out one Task subagent per panel (each loads figure-style) → tile + stamp letters →…

emaballarin/ccplugins · 160 tokens

creating-figures

Creates publication-quality scientific figures for academic papers. Backend is chosen by host paper extension — .tex papers get TikZ figures, .typ papers get CeTZ figures; the two are never mixed. Use when creating block diagrams, system architectures, flowcharts, or technical illustrations for papers and theses.…

ai4paper/apaper-plugin · 86 tokens

image-to-mesh-cad-workflow

End-to-end workflow for converting a 2D concept image into a parametric 3D CAD model when manual outline tracing is unreliable. Bridges the lossy "image → text-description → manual-spline-points" gap by using AI image-to-3D-mesh services (Tripo3D, Rodin, Meshy) as an intermediate step, then auditing the imported mesh…

Ed3Design/ed3design-engineering-bundles · 222 tokens