
Image To Diagram
- 32 installs
- 2 repo stars
- Updated February 12, 2026
- mindmorass/reflex
Helps with ai & agent building tasks.
About
image-to-diagram is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.
- image-to-diagram
- AI & Agent Building
- AI-coding skill
Image To Diagram by the numbers
- 32 all-time installs (skills.sh)
- +1 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #9,101 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mindmorass/reflex --skill image-to-diagramAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 32 |
|---|---|
| repo stars | ★ 2 |
| Last updated | February 12, 2026 |
| Repository | mindmorass/reflex ↗ |
What it does
Helps with ai & agent building tasks.
Files
Image to Diagram Conversion
Convert visual diagrams into editable, version-controllable code.
Workflow
Image → Claude Vision → Mermaid/DOT code → Save → Optionally ingest to QdrantSupported Input
| Type | Quality |
|---|---|
| Screenshots of diagrams | Excellent |
| Architecture tool exports | Excellent |
| Clean whiteboard photos | Good |
| Hand-drawn diagrams | Moderate (clear boxes/arrows help) |
| Low-contrast/blurry images | Poor |
Output Formats
Mermaid (default)
- Flowcharts, sequence diagrams, class diagrams, ER diagrams
- Renders in GitHub, GitLab, Notion, VS Code
- File extension:
.mmdor.mermaid
DOT/Graphviz
- More layout control
- Better for complex graphs
- File extension:
.dotor.gv
Conversion Process
1. Analyze the Image
Read the image and identify:
- Overall structure (hierarchy, flow, network)
- Components/nodes and their labels
- Relationships/connections between components
- Groupings/subgraphs
- Color coding (convert to styles)
2. Choose Diagram Type
| Visual Pattern | Mermaid Type |
|---|---|
| Boxes with arrows (flow) | flowchart TD/LR |
| Sequence of interactions | sequenceDiagram |
| Classes with relationships | classDiagram |
| Database tables | erDiagram |
| States and transitions | stateDiagram-v2 |
| Timeline/phases | gantt or timeline |
| Hierarchical groups | flowchart with subgraph |
3. Generate Code
Flowchart template:
%% Description of the diagram
%% Source: converted from image
flowchart TD
subgraph GroupName["Group Label"]
A[Component A]
B[Component B]
end
A --> B
B --> C[External]
%% Styling
style A fill:#color,stroke:#border,color:#textSequence diagram template:
sequenceDiagram
participant A as Service A
participant B as Service B
A->>B: Request
B-->>A: Response4. Apply Styling
Map visual colors to Mermaid styles:
%% Color mapping
style NodeName fill:#hexcolor,stroke:#bordercolor,color:#textcolor
%% Common colors
%% Blue: fill:#2563eb,stroke:#3b82f6,color:#fff
%% Green: fill:#059669,stroke:#10b981,color:#fff
%% Red: fill:#dc2626,stroke:#ef4444,color:#fff
%% Orange: fill:#d97706,stroke:#f59e0b,color:#fff
%% Purple: fill:#7c3aed,stroke:#8b5cf6,color:#fff5. Save and Optionally Ingest
# Save to file
# Write to ~/Desktop/diagram-name.mmd
# Ingest to Qdrant for pattern reuse
/reflex:ingest ~/Desktop/diagram-name.mmd --collection personal_memoriesTips for Best Results
1. Describe intent: "Convert this to Mermaid, it shows a microservices architecture" 2. Specify format: "Use flowchart with subgraphs" or "Make it a sequence diagram" 3. Request styling: "Match the colors from the image" or "Use default styling" 4. Iterate: "Add more detail to the auth flow" or "Simplify the database section"
Example Prompts
"Convert this whiteboard photo to Mermaid"
"Turn this architecture diagram into a flowchart with subgraphs"
"Create a sequence diagram from this interaction flow screenshot"
"Convert to Mermaid, save as microservices-arch.mmd, and ingest to Qdrant"After Conversion
The diagram can be:
- Committed to version control
- Rendered in documentation (GitHub, GitLab, Notion)
- Ingested to Qdrant for semantic search and pattern reuse
- Edited and refined as text
- Used as a template for similar architectures