image-to-diagram

Convert visual diagrams from images into Mermaid or Graphviz code.

2|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/mindmorass/reflex --skill image-to-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-to-diagram
Source: https://github.com/mindmorass/reflex/tree/main/plugins/reflex/skills/image-to-diagram
Command: npx skills add https://github.com/mindmorass/reflex --skill image-to-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill converts visual diagrams from images into editable diagram code in Mermaid or Graphviz formats, saving time from manual transcription.

Core Features & Use Cases

  • Convert screenshots, whiteboard photos, and tool exports into ready-to-use diagram definitions.
  • Generate Mermaid flowcharts, sequence diagrams, class diagrams, or ER diagrams from visual inputs.
  • Use Case: Imagine converting a whiteboard session into a shareable architecture diagram with a single command.

Quick Start

Load an image (e.g., whiteboard-photo.png) and run the conversion to Mermaid or Graphviz code.

Frequently Asked Questions about image-to-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a whiteboard photo into editable diagram code?

Convert whiteboard photos into editable Mermaid or Graphviz diagram code by loading the image and running the conversion. The skill analyzes the visual layout, identifies the diagram type (flowchart, sequence, class, or ER diagram), and generates ready-to-use code you can edit and version-control.

Can I turn screenshots of diagrams into Mermaid or Graphviz code?

Yes, the skill converts screenshots and tool exports into Mermaid or Graphviz code. It handles visual diagrams from any source—design tools, documentation exports, or handwritten sketches—and generates structured diagram definitions you can immediately use or modify.

What diagram types can be generated from images?

The skill generates flowcharts, sequence diagrams, class diagrams, and ER diagrams from visual inputs. It detects the diagram structure in your image and outputs the corresponding Mermaid or Graphviz code with appropriate syntax and styling.

Do I need design tool knowledge to use image-to-diagram conversion?

No special design knowledge is required. Provide any visual diagram—screenshots, photos, or exports—and the skill automatically analyzes the structure and generates code. You only need to understand the output format (Mermaid or Graphviz) for further editing.

How does converting diagrams from images save time compared to manual transcription?

Manual transcription of complex diagrams into code is error-prone and time-consuming. Image-to-diagram automation eliminates manual entry by extracting the visual structure directly and producing valid Mermaid or Graphviz code in seconds, letting you focus on refinement instead of data entry.

Can converted diagram code be stored and searched in a vector store?

Yes, the skill includes optional ingestion to a vector store after code generation. This allows you to store, index, and semantically search converted diagrams alongside your other documentation and knowledge bases.