Your First Diagram
Once the skill is installed, ask your coding agent to create a diagram:- Analyze the concept and map it to visual patterns
- Generate Excalidraw JSON with appropriate shapes and flows
- Render the diagram to PNG using the render pipeline
- View the rendered image to check for issues
- Fix any layout problems (overlaps, clipping, misalignments)
- Re-render and repeat until the diagram looks right
.excalidraw file and a .png file.
Example: Simple Conceptual Diagram
For a simple, high-level diagram:Example: Comprehensive Technical Diagram
For a detailed technical diagram with real examples:- Research the actual AG-UI protocol specification
- Include real event names (e.g.,
RUN_STARTED,STATE_DELTA,A2UI_UPDATE) - Add code snippets showing how to use the protocol
- Display sample JSON payloads with proper formatting
- Create a multi-zoom diagram with summary flow, section boundaries, and detailed evidence artifacts
For technical diagrams, the agent must research actual specifications before generating JSON. This ensures diagrams are accurate and educational.
Understanding the Output
The .excalidraw File
This is the editable source — a JSON file you can open in Excalidraw to make manual adjustments if needed.
The .png File
This is the rendered output — a publication-ready image you can embed in documentation, slides, or articles.
What Makes These Diagrams Different
Visual Patterns Mirror Concepts
Instead of uniform boxes, each concept gets a shape that reflects its behavior:
- Fan-outs for one-to-many relationships
- Convergence for aggregation
- Timelines for sequences
- Spirals for loops
Real Examples, Not Placeholders
Technical diagrams include:
- Actual code snippets with syntax highlighting
- Real event names from specifications
- Sample JSON payloads
- Concrete examples instead of generic labels
Common Patterns
Here are some common diagram requests and what the agent will create:Architecture Diagrams
Architecture Diagrams
Data Flow Diagrams
Data Flow Diagrams
State Machine Diagrams
State Machine Diagrams
Comparison Diagrams
Comparison Diagrams
Tips for Better Diagrams
Be Specific
Instead of “create a diagram of our API”, say “create a diagram showing the authentication flow with real JWT payload structure”
Request Evidence
Ask for “real code examples”, “actual event names”, or “sample JSON payloads” to get educational diagrams
Specify Depth
Use “simple” for conceptual overviews or “comprehensive” for detailed technical diagrams with examples
Name the Pattern
If you know what pattern fits, mention it: “use a fan-out pattern” or “show this as a timeline”
Next Steps
Design Principles
Learn the methodology behind the diagrams
Visual Patterns
Explore the pattern library (fan-out, convergence, timelines, etc.)
Customization
Customize colors to match your brand
Render & Validate
Master the render-view-fix loop