Command Palette

Search for a command to run...

Назад к скиллам
скилл № 55483

patent-diagram-generator

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

БесплатноБез исполняемых скриптов
RobThePCGuyот RobThePCGuy★ 219 звёзд на GitHub31 установка в других каталогах

Установить patent-diagram-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Patent Diagram Generator Skill

Windows PowerShell: replace a macOS/Linux Python invocation with & "$HOME\patent-creator-venv\Scripts\python.exe" and a CLI invocation with & "$HOME\patent-creator-venv\Scripts\patent-creator.exe". Keep script paths quoted. Python code blocks are Python source, not shell commands.

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:

"$HOME/patent-creator-venv/bin/python" -m pip install graphviz   # normally already installed

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"];
        Processor [label="Processing Unit"];
        Output [label="Display"];
    
        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 = {
        "User Input": 10,
        "Processing Unit": 20,
        "Display": 30
    }
    
    report = generator.add_reference_numbers(
        svg_path=diagram_path,
        reference_map=reference_map,
        return_report=True
    )
    print(report)  # Check num_references and unmatched_labels before reporting success.
    

Diagram Templates

Get common templates:

templates = generator.get_templates()  # MCP tool: 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
  • `o
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write

FAQ

Что делает скилл patent-diagram-generator?

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

Как установить скилл patent-diagram-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл patent-diagram-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить patent-diagram-generator с