Overview
Creating a diagram isn’t just about drawing shapes. It’s about arguing visually—showing relationships, causality, and flow that words alone can’t express. Follow this workflow to ensure your diagrams teach and communicate effectively.For technical diagrams, you must include evidence artifacts—code snippets, real data formats, actual event names. This is what makes the diagram educational rather than just decorative.
If you’re creating a technical diagram, research the actual specifications before drawing anything:
Bad example: “Protocol” → “Frontend”
Good example: “AG-UI streams events (RUN_STARTED, STATE_DELTA, A2UI_UPDATE)” → “CopilotKit renders via createA2UIMessageRenderer()”
Good example: “AG-UI streams events (RUN_STARTED, STATE_DELTA, A2UI_UPDATE)” → “CopilotKit renders via createA2UIMessageRenderer()”
For multi-concept diagrams, each major concept must use a different visual pattern. No uniform cards or grids.
Not every piece of text needs a shape around it. Default to free-floating text. Add containers only when they serve a purpose:
~/.claude/skills/excalidraw-diagram/references/color-palette.md~/.claude/skills/excalidraw-diagram/references/element-templates.md"trigger_rect" or "arrow_fan_left" for readabilityYou cannot judge a diagram from JSON alone. After generating the JSON, you must run the render-view-fix loop until it looks right.
See the Render & Validate guide for the complete process.
Quality Checklist
Before considering your diagram complete, verify:For Technical Diagrams
- ✅ Research done: actual specs, formats, event names looked up
- ✅ Evidence artifacts: code snippets, JSON examples, or real data included
- ✅ Multi-zoom: has summary flow + section boundaries + detail
- ✅ Concrete over abstract: real content shown, not just labeled boxes
- ✅ Educational value: someone could learn something concrete from this
For All Diagrams
- ✅ Isomorphism: each visual structure mirrors its concept’s behavior
- ✅ Argument: diagram SHOWS something text alone couldn’t
- ✅ Variety: each major concept uses a different visual pattern
- ✅ Minimal containers: less than 30% of text elements are in boxes
- ✅ Connections: every relationship has an arrow or line
- ✅ Flow: clear visual path for the eye to follow
- ✅ Rendered & validated: PNG generated, visually inspected, issues fixed
Next Steps
Large Diagrams
Learn the section-by-section strategy for comprehensive diagrams
Render & Validate
Master the mandatory render-view-fix loop
Customization
Customize colors and brand styles for your diagrams
Visual Patterns
Explore all available visual patterns