Official agent skill

Excalidraw Diagram Generator

by github in github/awesome-copilot

Generate Excalidraw diagrams from natural language descriptions.

OfficialMITAuto-check passedDevelopment

Install Excalidraw Diagram Generator

skills CLI
$ npx skills add github/awesome-copilot --skill excalidraw-diagram-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot excalidraw-diagram-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/excalidraw-diagram-generator .claude/skills/excalidraw-diagram-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
excalidraw-diagram-generator
GitHub stars
40k
Used in
6 other repos
Token cost
~6.1k tokens
SKILL.md length
1,878 words
Files
16 (incl. scripts, references)
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Generate Excalidraw diagrams from natural language descriptions.

  • Works in 6 steps: Understand the Request → Choose the Appropriate Diagram Type → Extract Structured Information → …
  • Asked to create a diagram
  • SKILL.md covers When to Use This Skill, Prerequisites, Step-by-Step Workflow and Best Practices, plus 6 more sections
  • Runs Python scripts from its folder; calls python; reaches excalidraw.com and libraries.excalidraw.com

What it does

Excalidraw Diagram Generator is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

Its SKILL.md is about 6.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including scripts and reference files (for example `references/element-types.md`, `references/excalidraw-schema.md` and `scripts/README.md`).

It sits in Development, covering Diagrams. It works with Excalidraw. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Asked to create a diagram
  • Make a flowchart
  • Visualize a process
  • Draw a system architecture

Example prompts

  • “create a diagram”
  • “make a flowchart”
  • “visualize a process”
  • “/excalidraw-diagram-generator”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Understand the Request
  2. Choose the Appropriate Diagram Type
  3. Extract Structured Information
  4. Generate the Excalidraw JSON
  5. Format the Output
  6. Save and Provide Instructions

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • excalidraw.com
    • libraries.excalidraw.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Excalidraw Diagram Generator loads about 6.1k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 106 tokens; SKILL.md has 1,878 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~106
When it runs · the whole SKILL.md, loaded when a task matches
~6.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 1,878 words, ~6,072 tokens.

Download SKILL.mdSave it as .claude/skills/excalidraw-diagram-generator/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
excalidraw-diagram-generator
description
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

Excalidraw Diagram Generator

A skill for generating Excalidraw-format diagrams from natural language descriptions. This skill helps create visual representations of processes, systems, relationships, and ideas without manual drawing.

When to Use This Skill

Use this skill when users request:

  • "Create a diagram showing..."
  • "Make a flowchart for..."
  • "Visualize the process of..."
  • "Draw the system architecture of..."
  • "Generate a mind map about..."
  • "Create an Excalidraw file for..."
  • "Show the relationship between..."
  • "Diagram the workflow of..."

Supported diagram types:

  • 📊 Flowcharts: Sequential processes, workflows, decision trees
  • 🔗 Relationship Diagrams: Entity relationships, system components, dependencies
  • 🧠 Mind Maps: Concept hierarchies, brainstorming results, topic organization
  • 🏗️ Architecture Diagrams: System design, module interactions, data flow
  • 📈 Data Flow Diagrams (DFD): Data flow visualization, data transformation processes
  • 🏊 Business Flow (Swimlane): Cross-functional workflows, actor-based process flows
  • 📦 Class Diagrams: Object-oriented design, class structures and relationships
  • 🔄 Sequence Diagrams: Object interactions over time, message flows
  • 🗃️ ER Diagrams: Database entity relationships, data models

Prerequisites

  • Clear description of what should be visualized
  • Identification of key entities, steps, or concepts
  • Understanding of relationships or flow between elements

Step-by-Step Workflow

Step 1: Understand the Request

Analyze the user's description to determine:

  1. Diagram type (flowchart, relationship, mind map, architecture)
  2. Key elements (entities, steps, concepts)
  3. Relationships (flow, connections, hierarchy)
  4. Complexity (number of elements)
Step 2: Choose the Appropriate Diagram Type
User IntentDiagram TypeExample Keywords
Process flow, steps, proceduresFlowchart"workflow", "process", "steps", "procedure"
Connections, dependencies, associationsRelationship Diagram"relationship", "connections", "dependencies", "structure"
Concept hierarchy, brainstormingMind Map"mind map", "concepts", "ideas", "breakdown"
System design, componentsArchitecture Diagram"architecture", "system", "components", "modules"
Data flow, transformation processesData Flow Diagram (DFD)"data flow", "data processing", "data transformation"
Cross-functional processes, actor responsibilitiesBusiness Flow (Swimlane)"business process", "swimlane", "actors", "responsibilities"
Object-oriented design, class structuresClass Diagram"class", "inheritance", "OOP", "object model"
Interaction sequences, message flowsSequence Diagram"sequence", "interaction", "messages", "timeline"
Database design, entity relationshipsER Diagram"database", "entity", "relationship", "data model"
Step 3: Extract Structured Information

For Flowcharts:

  • List of sequential steps
  • Decision points (if any)
  • Start and end points

For Relationship Diagrams:

  • Entities/nodes (name + optional description)
  • Relationships between entities (from → to, with label)

For Mind Maps:

  • Central topic
  • Main branches (3-6 recommended)
  • Sub-topics for each branch (optional)

For Data Flow Diagrams (DFD):

  • Data sources and destinations (external entities)
  • Processes (data transformations)
  • Data stores (databases, files)
  • Data flows (arrows showing data movement from left-to-right or from top-left to bottom-right)
  • Important: Do not represent process order, only data flow

For Business Flow (Swimlane):

  • Actors/roles (departments, systems, people) - displayed as header columns
  • Process lanes (vertical lanes under each actor)
  • Process boxes (activities within each lane)
  • Flow arrows (connecting process boxes, including cross-lane handoffs)

For Class Diagrams:

  • Classes with names
  • Attributes with visibility (+, -, #)
  • Methods with visibility and parameters
  • Relationships: inheritance (solid line + white triangle), implementation (dashed line + white triangle), association (solid line), dependency (dashed line), aggregation (solid line + white diamond), composition (solid line + filled diamond)
  • Multiplicity notations (1, 0..1, 1..*, *)

For Sequence Diagrams:

  • Objects/actors (arranged horizontally at top)
  • Lifelines (vertical lines from each object)
  • Messages (horizontal arrows between lifelines)
  • Synchronous messages (solid arrow), asynchronous messages (dashed arrow)
  • Return values (dashed arrows)
  • Activation boxes (rectangles on lifelines during execution)
  • Time flows from top to bottom

For ER Diagrams:

  • Entities (rectangles with entity names)
  • Attributes (listed inside entities)
  • Primary keys (underlined or marked with PK)
  • Foreign keys (marked with FK)
  • Relationships (lines connecting entities)
  • Cardinality: 1:1 (one-to-one), 1:N (one-to-many), N:M (many-to-many)
  • Junction/associative entities for many-to-many relationships (dashed rectangles)
Step 4: Generate the Excalidraw JSON

Create the .excalidraw file with appropriate elements:

Available element types:

  • rectangle: Boxes for entities, steps, concepts
  • ellipse: Alternative shapes for emphasis
  • diamond: Decision points
  • arrow: Directional connections
  • text: Labels and annotations

Key properties to set:

  • Position: x, y coordinates
  • Size: width, height
  • Style: strokeColor, backgroundColor, fillStyle
  • Font: fontFamily: 5 (Excalifont - required for all text elements)
  • Text: Embedded text for labels
  • Connections: points array for arrows

Important: All text elements must use fontFamily: 5 (Excalifont) for consistent visual appearance.

Step 5: Format the Output

Structure the complete Excalidraw file:

json
{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    // Array of diagram elements
  ],
  "appState": {
    "viewBackgroundColor": "#ffffff",
    "gridSize": 20
  },
  "files": {}
}
Step 6: Save and Provide Instructions
  1. Save as <descriptive-name>.excalidraw
  2. Inform user how to open:

Best Practices

Element Count Guidelines
Diagram TypeRecommended CountMaximum
Flowchart steps3-1015
Relationship entities3-812
Mind map branches4-68
Mind map sub-topics per branch2-46
Layout Tips
  1. Start positions: Center important elements, use consistent spacing
  2. Spacing:
    • Horizontal gap: 200-300px between elements
    • Vertical gap: 100-150px between rows
  3. Colors: Use consistent color scheme
    • Primary elements: Light blue (#a5d8ff)
    • Secondary elements: Light green (#b2f2bb)
    • Important/Central: Yellow (#ffd43b)
    • Alerts/Warnings: Light red (#ffc9c9)
  4. Text sizing: 16-24px for readability
  5. Font: Always use fontFamily: 5 (Excalifont) for all text elements
  6. Arrow style: Use straight arrows for simple flows, curved for complex relationships
Complexity Management

If user request has too many elements:

  • Suggest breaking into multiple diagrams
  • Focus on main elements first
  • Offer to create detailed sub-diagrams

Example response:

"Your request includes 15 components. For clarity, I recommend:
1. High-level architecture diagram (6 main components)
2. Detailed diagram for each subsystem

Would you like me to start with the high-level view?"

Example Prompts and Responses

Example 1: Simple Flowchart

User: "Create a flowchart for user registration"

Agent generates:

  1. Extract steps: "Enter email" → "Verify email" → "Set password" → "Complete"
  2. Create flowchart with 4 rectangles + 3 arrows
  3. Save as user-registration-flow.excalidraw
Example 2: Relationship Diagram

User: "Diagram the relationship between User, Post, and Comment entities"

Agent generates:

  1. Entities: User, Post, Comment
  2. Relationships: User → Post ("creates"), User → Comment ("writes"), Post → Comment ("contains")
  3. Save as user-content-relationships.excalidraw
Example 3: Mind Map

User: "Mind map about machine learning concepts"

Agent generates:

  1. Center: "Machine Learning"
  2. Branches: Supervised Learning, Unsupervised Learning, Reinforcement Learning, Deep Learning
  3. Sub-topics under each branch
  4. Save as machine-learning-mindmap.excalidraw

Troubleshooting

IssueSolution
Elements overlapIncrease spacing between coordinates
Text doesn't fit in boxesIncrease box width or reduce font size
Too many elementsBreak into multiple diagrams
Unclear layoutUse grid layout (rows/columns) or radial layout (mind maps)
Colors inconsistentDefine color palette upfront based on element types

Advanced Techniques

Grid Layout (for Relationship Diagrams)
javascript
const columns = Math.ceil(Math.sqrt(entityCount));
const x = startX + (index % columns) * horizontalGap;
const y = startY + Math.floor(index / columns) * verticalGap;
Radial Layout (for Mind Maps)
javascript
const angle = (2 * Math.PI * index) / branchCount;
const x = centerX + radius * Math.cos(angle);
const y = centerY + radius * Math.sin(angle);
Auto-generated IDs

Use timestamp + random string for unique IDs:

javascript
const id = Date.now().toString(36) + Math.random().toString(36).substr(2);

Output Format

Always provide:

  1. ✅ Complete .excalidraw JSON file
  2. 📊 Summary of what was created
  3. 📝 Element count
  4. 💡 Instructions for opening/editing

Example summary:

Created: user-workflow.excalidraw
Type: Flowchart
Elements: 7 rectangles, 6 arrows, 1 title text
Total: 14 elements

To view:
1. Visit https://excalidraw.com
2. Drag and drop user-workflow.excalidraw
3. Or use File → Open in Excalidraw VS Code extension

Validation Checklist

Before delivering the diagram:

  • All elements have unique IDs
  • Coordinates prevent overlapping
  • Text is readable (font size 16+)
  • All text elements use fontFamily: 5 (Excalifont)
  • Arrows connect logically
  • Colors follow consistent scheme
  • File is valid JSON
  • Element count is reasonable (<20 for clarity)

Icon Libraries (Optional Enhancement)

For specialized diagrams (e.g., AWS/GCP/Azure architecture diagrams), you can use pre-made icon libraries from Excalidraw. This provides professional, standardized icons instead of basic shapes.

When User Requests Icons

If user asks for AWS/cloud architecture diagrams or mentions wanting to use specific icons:

  1. Check if library exists: Look for libraries/<library-name>/reference.md

  2. If library exists: Proceed to use icons (see AI Assistant Workflow below)

  3. If library does NOT exist: Respond with setup instructions:

    To use [AWS/GCP/Azure/etc.] architecture icons, please follow these steps:
    
    1. Visit https://libraries.excalidraw.com/
    2. Search for "[AWS Architecture Icons/etc.]" and download the .excalidrawlib file
    3. Create directory: skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
    4. Place the downloaded file in that directory
    5. Run the splitter script:
       python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/[icon-set-name]/
    
    This will split the library into individual icon files for efficient use.
    After setup is complete, I can create your diagram using the actual AWS/cloud icons.
    
    Alternatively, I can create the diagram now using simple shapes (rectangles, ellipses) 
    which you can later replace with icons manually in Excalidraw.
User Setup Instructions (Detailed)

Step 1: Create Library Directory

bash
mkdir -p skills/excalidraw-diagram-generator/libraries/aws-architecture-icons

Step 2: Download Library

  • Visit: https://libraries.excalidraw.com/
  • Search for your desired icon set (e.g., "AWS Architecture Icons")
  • Click download to get the .excalidrawlib file
  • Example categories (availability varies; confirm on the site):
    • Cloud service icons
    • UI/Material icons
    • Flowchart symbols

Step 3: Place Library File

  • Rename the downloaded file to match the directory name (e.g., aws-architecture-icons.excalidrawlib)
  • Move it to the directory created in Step 1

Step 4: Run Splitter Script

bash
python skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/

Step 5: Verify Setup After running the script, verify the following structure exists:

skills/excalidraw-diagram-generator/libraries/aws-architecture-icons/
  aws-architecture-icons.excalidrawlib  (original)
  reference.md                          (generated - icon lookup table)
  icons/                                (generated - individual icon files)
    API-Gateway.json
    CloudFront.json
    EC2.json
    Lambda.json
    RDS.json
    S3.json
    ...
Show full SKILL.md (992 more words)Show less
AI Assistant Workflow

When icon libraries are available in libraries/:

RECOMMENDED APPROACH: Use Python Scripts (Efficient & Reliable)

The repository includes Python scripts that handle icon integration automatically:

  1. Create base diagram structure:

    • Create .excalidraw file with basic layout (title, boxes, regions)
    • This establishes the canvas and overall structure
  2. Add icons using Python script:

    bash
    python skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py \
      <diagram-path> <icon-name> <x> <y> [--label "Text"] [--library-path PATH]
    • Edit via .excalidraw.edit is enabled by default to avoid overwrite issues; pass --no-use-edit-suffix to disable.

    Examples:

    bash
    # Add EC2 icon at position (400, 300) with label
    python scripts/add-icon-to-diagram.py diagram.excalidraw EC2 400 300 --label "Web Server"
    
    # Add VPC icon at position (200, 150)
    python scripts/add-icon-to-diagram.py diagram.excalidraw VPC 200 150
    
    # Add icon from different library
    python scripts/add-icon-to-diagram.py diagram.excalidraw Compute-Engine 500 200 \
      --library-path libraries/gcp-icons --label "API Server"
  3. Add connecting arrows:

    bash
    python skills/excalidraw-diagram-generator/scripts/add-arrow.py \
      <diagram-path> <from-x> <from-y> <to-x> <to-y> [--label "Text"] [--style solid|dashed|dotted] [--color HEX]
    • Edit via .excalidraw.edit is enabled by default to avoid overwrite issues; pass --no-use-edit-suffix to disable.

    Examples:

    bash
    # Simple arrow from (300, 250) to (500, 300)
    python scripts/add-arrow.py diagram.excalidraw 300 250 500 300
    
    # Arrow with label
    python scripts/add-arrow.py diagram.excalidraw 300 250 500 300 --label "HTTPS"
    
    # Dashed arrow with custom color
    python scripts/add-arrow.py diagram.excalidraw 400 350 600 400 --style dashed --color "#7950f2"
  4. Workflow summary:

    bash
    # Step 1: Create base diagram with title and structure
    # (Create .excalidraw file with initial elements)
    
    # Step 2: Add icons with labels
    python scripts/add-icon-to-diagram.py my-diagram.excalidraw "Internet-gateway" 200 150 --label "Internet Gateway"
    python scripts/add-icon-to-diagram.py my-diagram.excalidraw VPC 250 250
    python scripts/add-icon-to-diagram.py my-diagram.excalidraw ELB 350 300 --label "Load Balancer"
    python scripts/add-icon-to-diagram.py my-diagram.excalidraw EC2 450 350 --label "EC2 Instance"
    python scripts/add-icon-to-diagram.py my-diagram.excalidraw RDS 550 400 --label "Database"
    
    # Step 3: Add connecting arrows
    python scripts/add-arrow.py my-diagram.excalidraw 250 200 300 250  # Internet → VPC
    python scripts/add-arrow.py my-diagram.excalidraw 300 300 400 300  # VPC → ELB
    python scripts/add-arrow.py my-diagram.excalidraw 400 330 500 350  # ELB → EC2
    python scripts/add-arrow.py my-diagram.excalidraw 500 380 600 400  # EC2 → RDS

Benefits of Python Script Approach:

  • ✅ No token consumption: Icon JSON data (200-1000 lines each) never enters AI context
  • ✅ Accurate transformations: Coordinate calculations handled deterministically
  • ✅ ID management: Automatic UUID generation prevents conflicts
  • ✅ Reliable: No risk of coordinate miscalculation or ID collision
  • ✅ Fast: Direct file manipulation, no parsing overhead
  • ✅ Reusable: Works with any Excalidraw library you provide

ALTERNATIVE: Manual Icon Integration (Not Recommended)

Only use this if Python scripts are unavailable:

  1. Check for libraries:

    List directory: skills/excalidraw-diagram-generator/libraries/
    Look for subdirectories containing reference.md files
  2. Read reference.md:

    Open: libraries/<library-name>/reference.md
    This is lightweight (typically <300 lines) and lists all available icons
  3. Find relevant icons:

    Search the reference.md table for icon names matching diagram needs
    Example: For AWS diagram with EC2, S3, Lambda → Find "EC2", "S3", "Lambda" in table
  4. Load specific icon data (WARNING: Large files):

    Read ONLY the needed icon files:
    - libraries/aws-architecture-icons/icons/EC2.json (200-300 lines)
    - libraries/aws-architecture-icons/icons/S3.json (200-300 lines)
    - libraries/aws-architecture-icons/icons/Lambda.json (200-300 lines)
    Note: Each icon file is 200-1000 lines - this consumes significant tokens
  5. Extract and transform elements:

    Each icon JSON contains an "elements" array
    Calculate bounding box (min_x, min_y, max_x, max_y)
    Apply offset to all x/y coordinates
    Generate new unique IDs for all elements
    Update groupIds references
    Copy transformed elements into your diagram
  6. Position icons and add connections:

    Adjust x/y coordinates to position icons correctly in the diagram
    Update IDs to ensure uniqueness across diagram
    Add connecting arrows and labels as needed

Manual Integration Challenges:

  • ⚠️ High token consumption (200-1000 lines per icon × number of icons)
  • ⚠️ Complex coordinate transformation calculations
  • ⚠️ Risk of ID collision if not handled carefully
  • ⚠️ Time-consuming for diagrams with many icons
Example: Creating AWS Diagram with Icons

Request: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"

Recommended Workflow (using Python scripts): Request: "Create an AWS architecture diagram with Internet Gateway, VPC, ELB, EC2, and RDS"

Recommended Workflow (using Python scripts):

bash
# Step 1: Create base diagram file with title
# Create my-aws-diagram.excalidraw with basic structure (title, etc.)

# Step 2: Check icon availability
# Read: libraries/aws-architecture-icons/reference.md
# Confirm icons exist: Internet-gateway, VPC, ELB, EC2, RDS

# Step 3: Add icons with Python script
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw "Internet-gateway" 150 100 --label "Internet Gateway"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw VPC 200 200
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw ELB 350 250 --label "Load Balancer"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw EC2 500 300 --label "Web Server"
python scripts/add-icon-to-diagram.py my-aws-diagram.excalidraw RDS 650 350 --label "Database"

# Step 4: Add connecting arrows
python scripts/add-arrow.py my-aws-diagram.excalidraw 200 150 250 200  # Internet → VPC
python scripts/add-arrow.py my-aws-diagram.excalidraw 265 230 350 250  # VPC → ELB
python scripts/add-arrow.py my-aws-diagram.excalidraw 415 280 500 300  # ELB → EC2
python scripts/add-arrow.py my-aws-diagram.excalidraw 565 330 650 350 --label "SQL" --style dashed

# Result: Complete diagram with professional AWS icons, labels, and connections

Benefits:

  • No manual coordinate calculation
  • No token consumption for icon data
  • Deterministic, reliable results
  • Easy to iterate and adjust positions

Alternative Workflow (manual, if scripts unavailable):

  1. Check: libraries/aws-architecture-icons/reference.md exists → Yes
  2. Read reference.md → Find entries for Internet-gateway, VPC, ELB, EC2, RDS
  3. Load:
    • icons/Internet-gateway.json (298 lines)
    • icons/VPC.json (550 lines)
    • icons/ELB.json (363 lines)
    • icons/EC2.json (231 lines)
    • icons/RDS.json (similar size) Total: ~2000+ lines of JSON to process
  4. Extract elements from each JSON
  5. Calculate bounding boxes and offsets for each icon
  6. Transform all coordinates (x, y) for positioning
  7. Generate unique IDs for all elements
  8. Add arrows showing data flow
  9. Add text labels
  10. Generate final .excalidraw file

Challenges with manual approach:

  • High token consumption (~2000-5000 lines)
  • Complex coordinate math
  • Risk of ID conflicts
Supported Icon Libraries (Examples — verify availability)
  • This workflow works with any valid .excalidrawlib file you provide.
  • Examples of library categories you may find on https://libraries.excalidraw.com/:
    • Cloud service icons
    • Kubernetes / infrastructure icons
    • UI / Material icons
    • Flowchart / diagram symbols
    • Network diagram icons
  • Availability and naming can change; verify exact library names on the site before use.
Fallback: No Icons Available

If no icon libraries are set up:

  • Create diagrams using basic shapes (rectangles, ellipses, arrows)
  • Use color coding and text labels to distinguish components
  • Inform user they can add icons later or set up libraries for future diagrams
  • The diagram will still be functional and clear, just less visually polished

References

See bundled references for:

  • references/excalidraw-schema.md - Complete Excalidraw JSON schema
  • references/element-types.md - Detailed element type specifications
  • templates/flowchart-template.excalidraw - Basic flowchart starter
  • templates/relationship-template.excalidraw - Relationship diagram starter
  • templates/mindmap-template.excalidraw - Mind map starter
  • templates/business-flow-swimlane-template.excalidraw - Business flow swimlane starter
  • templates/class-diagram-template.excalidraw - Class diagram starter
  • templates/data-flow-diagram-template.excalidraw - Data flow diagram starter
  • templates/er-diagram-template.excalidraw - Entity-relationship diagram starter
  • templates/sequence-diagram-template.excalidraw - Sequence diagram starter
  • scripts/add-icon-to-diagram.py - Add icons from Excalidraw libraries to diagrams
  • scripts/add-arrow.py - Add arrows (connections) between elements in diagrams
  • scripts/split-excalidraw-library.py - Tool to split .excalidrawlib files
  • scripts/README.md - Documentation for library tools
  • scripts/.gitignore - Prevents local Python artifacts from being committed

Limitations

  • Complex curves are simplified to straight/basic curved lines
  • Hand-drawn roughness is set to default (1)
  • No embedded images support in auto-generation
  • Maximum recommended elements: 20 per diagram
  • No automatic collision detection (use spacing guidelines)

Future Enhancements

Potential improvements:

  • Auto-layout optimization algorithms
  • Import from Mermaid/PlantUML syntax
  • Template library expansion
  • Interactive editing after generation

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (scripts, references) in skills/excalidraw-diagram-generator of github/awesome-copilot.

  • SKILL.md
  • references/element-types.md
  • references/excalidraw-schema.md
  • scripts/.gitignore
  • scripts/README.md
  • scripts/add-arrow.py
  • scripts/add-icon-to-diagram.py
  • scripts/split-excalidraw-library.py
  • templates/business-flow-swimlane-template.excalidraw
  • templates/class-diagram-template.excalidraw
  • templates/data-flow-diagram-template.excalidraw
  • templates/er-diagram-template.excalidraw
  • templates/flowchart-template.excalidraw
  • templates/mindmap-template.excalidraw
  • templates/relationship-template.excalidraw
  • templates/sequence-diagram-template.excalidraw

Open the folder on GitHubat commit 727ff2e

Used in 6 other repositories

We found 6 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 6 other GitHub owners. This page covers the copy in github/awesome-copilot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Excalidraw Diagram Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Excalidraw Diagram Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Excalidraw Diagram Generator this skillgithub/awesome-copilot40k6 repos~6.1kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design44k1 repos~7.5kAutomated safety check: PassMIT
Excalidraw Diagramcoleam00/excalidraw-diagram-skill4.9k2 repos~6.1kAutomated safety check: PassNone
Excalidraw Diagrambreferrari/obsidian-mind4.9k—~3.9kAutomated safety check: PassMIT
Excalidraw Skillyctimlin/mcp_excalidraw2.5k—~4.6kAutomated safety check: PassMIT
Lanshu Animated Architecture Diagramcclank/lanshu-animated-architecture-diagram991—~1.1kAutomated safety check: PassMIT

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    44k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Excalidraw Diagram

    coleam00/excalidraw-diagram-skill

    Create Excalidraw diagram JSON files that make visual arguments.

    4.9k GitHub starsUsed in 2 repos~6.1k tokens
    DevelopmentAuto-check passed
  • Excalidraw Diagram

    breferrari/obsidian-mind

    Generate Excalidraw diagrams from text content. An agent skill from breferrari/obsidian-mind.

    4.9k GitHub stars~3.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Excalidraw Skill

    yctimlin/mcp_excalidraw

    Excalidraw canvas toolkit for creating, editing, and refining diagrams on a live canvas.

    2.5k GitHub stars~4.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Lanshu Animated Architecture Diagram

    cclank/lanshu-animated-architecture-diagram

    Create premium hand-drawn architecture and process diagrams in the Lanshu animated GIF style, with editable .excalidraw files, static PNG previews, and genuinely animated GIFs with moving flow…

    991 GitHub stars~1.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Excalidraw Diagram Studio

    tech-leads-club/agent-skills

    Generates Excalidraw diagram files from plain descriptions, choosing among flowcharts, mind maps, architecture, swimlane, class, sequence and ER diagrams.

    7k GitHub stars~3.6k tokensUpdated 17 days ago
    DevelopmentAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Categories

Questions about Excalidraw Diagram Generator

What does Excalidraw Diagram Generator do?

Generate Excalidraw diagrams from natural language descriptions. Excalidraw Diagram Generator is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Generate Excalidraw diagrams from natural language descriptions.

When should I use Excalidraw Diagram Generator?

Excalidraw Diagram Generator fits situations like: asked to create a diagram; make a flowchart; visualize a process; draw a system architecture.

How do I install Excalidraw Diagram Generator in Claude Code?

Run `npx skills add github/awesome-copilot --skill excalidraw-diagram-generator -a claude-code`. Or copy the skill folder (skills/excalidraw-diagram-generator in github/awesome-copilot) into .claude/skills/excalidraw-diagram-generator in your project. Claude Code loads it when a task matches its description.

How do I install Excalidraw Diagram Generator in Codex?

Run `npx skills add github/awesome-copilot --skill excalidraw-diagram-generator -a codex`. Or copy the skill folder (skills/excalidraw-diagram-generator in github/awesome-copilot) into .agents/skills/excalidraw-diagram-generator in your project. Codex loads it when a task matches its description.

Can I use Excalidraw Diagram Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill excalidraw-diagram-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/excalidraw-diagram-generator, .gemini/skills/excalidraw-diagram-generator, .github/skills/excalidraw-diagram-generator and .opencode/skills/excalidraw-diagram-generator in your project.

What does Excalidraw Diagram Generator need to run?

Going by SKILL.md and its folder, Excalidraw Diagram Generator needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Excalidraw Diagram Generator access the network?

SKILL.md names 2 domains. In commands or code: excalidraw.com and libraries.excalidraw.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Excalidraw Diagram Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Excalidraw Diagram Generator use?

Excalidraw Diagram Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Excalidraw Diagram Generator use?

About 6.1k tokens (SKILL.md is roughly 24k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.

What are the alternatives to Excalidraw Diagram Generator?

Skills that share tags, products or a category with Excalidraw Diagram Generator: Diagram Design (cathrynlavery/diagram-design, 44k stars), Excalidraw Diagram (coleam00/excalidraw-diagram-skill, 4.9k stars), Excalidraw Diagram (breferrari/obsidian-mind, 4.9k stars) and Excalidraw Skill (yctimlin/mcp_excalidraw, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Excalidraw Diagram Generator?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.