name: diagram-design
description: Best practices for creating research diagrams with Excalidraw MCP tools
Diagram Design Guide for Research
When to Create Diagrams
Create a diagram when your research findings involve:
- Comparing 3+ options โ comparison table or matrix diagram
- Process with 4+ steps โ flowchart or sequence diagram
- System with multiple components โ architecture diagram
- Chronological events โ timeline
- Hierarchical relationships โ tree or mind map
- Data flows โ data flow diagram
Excalidraw Workflow
- Plan the diagram โ decide type, elements, and layout before creating
- Create elements โ use
create_element or batch_create_elements
- Arrange โ use
align_elements and distribute_elements for clean layout
- Inspect โ use
describe_scene to verify the diagram looks right
- Adjust โ use
update_element to fix positioning or text
- Group โ use
group_elements to lock related items together
Note: Do NOT export or share links โ the user sees a live embedded canvas that auto-syncs.
Color Palette
Use consistent colors across diagrams:
| Purpose | Color | Hex |
|---|
| Primary concepts | Blue | #1971c2 |
| Positive / supported | Green | #2f9e44 |
| Negative / limitations | Red | #e03131 |
| Warning / caveats | Orange | #e8590c |
| Neutral / context | Gray | #868e96 |
| Highlight / focus | Yellow | #f08c00 |
Layout Patterns
- Top-to-bottom: Process flows, decision trees, timelines
- Left-to-right: Comparisons, before/after, pipelines
- Radial / center-out: Concept maps, mind maps
- Grid: Feature matrices, comparison tables
Element Guidelines
Text
- Use short labels (2-4 words per element)
- Title font size: 20-24px
- Label font size: 14-16px
- Add detail in sub-labels, not element titles
Shapes
- Rectangles: Processes, components, entities
- Diamonds: Decision points
- Ellipses: Start/end points, concepts
- Rectangles with rounded corners: Groups, categories
Arrows
- Solid arrows: Direct relationships, data flow
- Dashed arrows: Optional paths, indirect relationships
- Label arrows to clarify the relationship
Spacing
- 40px minimum between elements
- 80px between groups
- Consistent spacing within a group
Diagram Types for Research
Comparison Diagram
[Option A] [Option B] [Option C]
| | |
[Pros] [Pros] [Pros]
[Cons] [Cons] [Cons]
| | |
โโโโโ [Verdict] โโโโโโโโโโ
Architecture Diagram
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [System Name] โ
โ โโโโโโโโ โโโโโโโโ โ
โ โComp AโโโโComp Bโ โ
โ โโโโโโโโ โโโโฌโโโโ โ
โ โ โ
โ โโโโโโผโโโโโ โ
โ โ Comp C โ โ
โ โโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Timeline
[2020]โโ[2021]โโ[2022]โโ[2023]โโ[2024]โโ[2025]
โ โ โ โ โ โ
Event Event Event Event Event Event
Tips
- Always call
describe_scene after creating elements to verify layout
- Use
batch_create_elements for efficiency (multiple elements at once)
- Group related elements before aligning for cleaner organization
- Do NOT export or share links โ the live embedded canvas auto-syncs for the user
- NEVER use
create_from_mermaid โ it produces invisible results. Always use batch_create_elements with element JSON instead