mermaid-diagram

Solid

Use this skill when you need to draw diagrams including: Flowchart, Sequence Diagram, Class Diagram, State Diagram, ER Diagram, User Journey, Gantt Chart, Pie Chart, Quadrant Chart, Requirement Diagram, Gitgraph, Mindmap, Timeline, Sankey, XY Chart (Bar/Line), Block Diagram, Packet Diagram, Kanban, Architecture Diagram, C4 Diagram, Radar Chart, Treemap, and ZenUML. You MUST use this skill BEFORE outputting any mermaid code block.

AI & Automation 667 stars 122 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
94
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Diagram Visualization with Mermaid When you need to visualize concepts, workflows, architectures, or relationships, use Mermaid diagram syntax. ## IMPORTANT: Two-Step Workflow To create mermaid diagrams, follow this two-step workflow: 1. **Step 1: Validate with `render_mermaid` tool** - Use the tool to validate your mermaid syntax 2. **Step 2: Output mermaid code block** - After successful validation, output the mermaid code block in your response This ensures: - Syntax is validated before displaying to the user - The diagram is automatically saved in the conversation history - The diagram can be referenced later in the conversation ### Step 1: Use render_mermaid Tool Call the `render_mermaid` tool with the following parameters: | Parameter | Type | Required | Description | | -------------- | ------ | -------- | --------------------------------------------------------- | | `code` | string | Yes | The mermaid diagram code (without the ```mermaid wrapper) | | `diagram_type` | string | No | Diagram type hint (flowchart, sequence, etc.) | | `title` | string | No | Optional title for the diagram | ### Example Tool Call ```json { "name": "render_mermaid", "arguments": { "code": "flowchart TD\n A[Start] --> B{Decision}\n B -->|Yes| C[Action 1]\n B -->|No| D[Action 2]\n C --> E[End]\n D --> E", "title": "Decision Flow" }...

Details

Author
wecode-ai
Repository
wecode-ai/Wegent
Created
6 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

mermaid-diagram-builder

Creates clear, valid, version-controllable diagrams as code using Mermaid — flowcharts, sequence diagrams, ER diagrams, class diagrams, state machines, Gantt charts, C4/architecture diagrams, and more. Use this skill when the user asks to "draw a diagram", "make a flowchart", "create a sequence diagram", "diagram this architecture", "visualize this process/data model/API flow", "show the ER diagram", "render Mermaid", "diagram as code", or wants a chart embeddable in Markdown, GitHub, Notion, or docs. Covers picking the right diagram type, writing syntactically correct Mermaid, styling, and validating that it renders.

3 Updated today
JayRHa
AI & Automation Listed

mermaid-diagram

Use this skill ANY time the user wants a diagram, chart, or visual documentation of any kind — flowcharts, sequence diagrams, architecture diagrams, ER diagrams, state machines, gantt charts, class diagrams, deployment diagrams, mindmaps, or any visual representation of systems, processes, or relationships. Trigger on: "diagram", "chart", "visualize", "draw", "map out", "document the flow", "show how X connects to Y", or when the user describes states, transitions, timelines, or service interactions that imply a visual even without saying "diagram". Also trigger when the user mentions "mermaid" by name or asks to convert code to a diagram.

2 Updated yesterday
petermcalister
AI & Automation Listed

mermaid-diagrams

Create diagrams and visualizations using Mermaid syntax. Use when generating flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts, or any visual documentation. Triggers on Mermaid, flowchart, sequence diagram, class diagram, ER diagram, Gantt chart, diagram, visualization.

2 Updated yesterday
Makiya1202