Loading...
Loading...
Convert images (screenshots, photos, whiteboard) to Mermaid or DOT/Graphviz diagrams
npx skill4agent add mindmorass/reflex image-to-diagramImage → Claude Vision → Mermaid/DOT code → Save → Optionally ingest to Qdrant| 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 |
.mmd.mermaid.dot.gv| Visual Pattern | Mermaid Type |
|---|---|
| Boxes with arrows (flow) | |
| Sequence of interactions | |
| Classes with relationships | |
| Database tables | |
| States and transitions | |
| Timeline/phases | |
| Hierarchical groups | |
%% 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:#textsequenceDiagram
participant A as Service A
participant B as Service B
A->>B: Request
B-->>A: Response%% 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:#fff# Save to file
# Write to ~/Desktop/diagram-name.mmd
# Ingest to Qdrant for pattern reuse
/reflex:ingest ~/Desktop/diagram-name.mmd --collection personal_memories"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"