Mermaid
by partme-ai
A comprehensive skill for creating all types of Mermaid diagrams including flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, user journey diagrams, Gantt charts, pie charts, quadrant charts, requirement diagrams, Git graphs, C4 diagrams, mindmaps, timelines, ZenUML, Sankey diagrams, XY charts, block diagrams, packet diagrams, Kanban boards, architecture diagrams, radar charts, and treemaps. Use this skill whenever the user requests to create, draw, or v
Skill Details
Repository Files
1 file in this skill directory
name: mermaid description: A comprehensive skill for creating all types of Mermaid diagrams including flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, user journey diagrams, Gantt charts, pie charts, quadrant charts, requirement diagrams, Git graphs, C4 diagrams, mindmaps, timelines, ZenUML, Sankey diagrams, XY charts, block diagrams, packet diagrams, Kanban boards, architecture diagrams, radar charts, and treemaps. Use this skill whenever the user requests to create, draw, or visualize any diagram, flowchart, or structured chart using Mermaid syntax. license: Complete terms in LICENSE.txt
When to use this skill
Use this skill whenever the user wants to:
- Create any type of diagram or flowchart
- Visualize processes, workflows, or system architectures
- Draw sequence diagrams, class diagrams, or state diagrams
- Create project timelines (Gantt charts)
- Visualize data relationships (ER diagrams, entity relationships)
- Create user journey maps
- Generate pie charts, quadrant charts, or other data visualizations
- Draw Git branching structures
- Create mindmaps or hierarchical structures
- Visualize system architectures (C4 diagrams)
- Create timelines or event sequences
- Generate any other diagram type supported by Mermaid
How to use this skill
To create a Mermaid diagram:
-
Identify the diagram type from the user's request:
- Flowchart/flow chart/流程图 →
flowchartorgraph - Sequence diagram/时序图 →
sequenceDiagram - Class diagram/类图 →
classDiagram - State diagram/状态图 →
stateDiagramorstateDiagram-v2 - Entity relationship diagram/实体关系图 →
erDiagram - User journey/用户旅程图 →
journey - Gantt chart/甘特图 →
gantt - Pie chart/饼图 →
pie - Quadrant chart/象限图 →
quadrantChart - Requirement diagram/需求图 →
requirementDiagram - Git graph/Git图 →
gitGraph - C4 diagram/C4图 →
C4Contextor other C4 types - Mindmap/思维导图 →
mindmap - Timeline/时间线图 →
timeline - ZenUML/禅UML →
zenuml - Sankey diagram/桑基图 →
sankey - XY chart/XY图 →
xychart - Block diagram/方块图 →
block - Packet diagram/数据包图 →
packet - Kanban/看板图 →
kanban - Architecture diagram/架构图 →
architecture-beta - Radar chart/雷达图 →
radar-beta - Treemap/树状图 →
treemap-beta
- Flowchart/flow chart/流程图 →
-
Load the appropriate example file from the
examples/directory:examples/flowchart.md- For flowcharts and process diagramsexamples/sequence.md- For sequence diagrams showing interactionsexamples/class.md- For class diagrams and object-oriented designsexamples/state.md- For state diagrams and state machinesexamples/er.md- For entity relationship diagramsexamples/journey.md- For user journey mapsexamples/gantt.md- For Gantt charts and project timelinesexamples/pie.md- For pie chartsexamples/quadrant.md- For quadrant chartsexamples/requirement.md- For requirement diagramsexamples/gitgraph.md- For Git branching diagramsexamples/c4.md- For C4 architecture diagramsexamples/mindmap.md- For mindmapsexamples/timeline.md- For timeline diagramsexamples/zenuml.md- For ZenUML diagramsexamples/sankey.md- For Sankey flow diagramsexamples/xychart.md- For XY charts (bar/line charts)examples/block.md- For block diagramsexamples/packet.md- For packet diagramsexamples/kanban.md- For Kanban boardsexamples/architecture.md- For architecture diagramsexamples/radar.md- For radar chartsexamples/treemap.md- For treemap diagrams
-
Follow the specific instructions in that example file for syntax, structure, and best practices
-
Generate the Mermaid code wrapped in a code block:
<diagram-type> ...diagram content... -
Include styling and configuration when needed:
- Use
%%{ init: { theme: 'base' } }%%for theme configuration - Apply
styledirectives for node styling - Use
classDeffor reusable style classes
- Use
-
Validate the syntax:
- Ensure all required elements are present
- Check that relationships and connections are properly defined
- Verify date formats for Gantt charts
- Confirm data formats for charts (pie, quadrant, etc.)
If the diagram type doesn't match any existing example, refer to the Mermaid documentation or ask the user for clarification about the desired visualization.
Keywords
mermaid, diagram, flowchart, flow chart, sequence diagram, class diagram, state diagram, entity relationship, ER diagram, user journey, Gantt chart, pie chart, quadrant chart, requirement diagram, Git graph, C4 diagram, mindmap, timeline, ZenUML, Sankey diagram, XY chart, block diagram, packet diagram, Kanban, architecture diagram, radar chart, treemap, 流程图, 时序图, 类图, 状态图, 实体关系图, 用户旅程图, 甘特图, 饼图, 象限图, 需求图, Git图, C4图, 思维导图, 时间线图, 桑基图, XY图, 方块图, 数据包图, 看板图, 架构图, 雷达图, 树状图
Related Skills
Team Composition Analysis
This skill should be used when the user asks to "plan team structure", "determine hiring needs", "design org chart", "calculate compensation", "plan equity allocation", or requests organizational design and headcount planning for a startup.
Startup Financial Modeling
This skill should be used when the user asks to "create financial projections", "build a financial model", "forecast revenue", "calculate burn rate", "estimate runway", "model cash flow", or requests 3-5 year financial planning for a startup.
Startup Metrics Framework
This skill should be used when the user asks about "key startup metrics", "SaaS metrics", "CAC and LTV", "unit economics", "burn multiple", "rule of 40", "marketplace metrics", or requests guidance on tracking and optimizing business performance metrics.
Market Sizing Analysis
This skill should be used when the user asks to "calculate TAM", "determine SAM", "estimate SOM", "size the market", "calculate market opportunity", "what's the total addressable market", or requests market sizing analysis for a startup or business opportunity.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Geopandas
Python library for working with geospatial vector data including shapefiles, GeoJSON, and GeoPackage files. Use when working with geographic data for spatial analysis, geometric operations, coordinate transformations, spatial joins, overlay operations, choropleth mapping, or any task involving reading/writing/analyzing vector geographic data. Supports PostGIS databases, interactive maps, and integration with matplotlib/folium/cartopy. Use for tasks like buffer analysis, spatial joins between dat
Market Research Reports
Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter's Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.
Plotly
Interactive scientific and statistical data visualization library for Python. Use when creating charts, plots, or visualizations including scatter plots, line charts, bar charts, heatmaps, 3D plots, geographic maps, statistical distributions, financial charts, and dashboards. Supports both quick visualizations (Plotly Express) and fine-grained customization (graph objects). Outputs interactive HTML or static images (PNG, PDF, SVG).
Excel Analysis
Analyze Excel spreadsheets, create pivot tables, generate charts, and perform data analysis. Use when analyzing Excel files, spreadsheets, tabular data, or .xlsx files.
Neurokit2
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
