.cursor/skills/mermaid/SKILL.md
Guide for creating mermaid diagrams. This skill should be used when users want to create a mermaid diagram (or update an existing diagram).
npx skillsauth add nilecui/SkillsBase mermaidInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill helps you create, validate, and render Mermaid diagrams from natural language descriptions, code analysis, or by editing existing diagrams.
Follow these steps for every diagram creation/modification:
examples/ directory for type-specific syntax (load on-demand).mmd fileuser-authentication-flow.mmd, database-schema.mmd)mmdc -i <filename>.mmdmmdcmmdc -i <filename>.mmd -o <filename>.svg-o <filename>.png), PDF (-o <filename>.pdf)Load examples from examples/ directory as needed:
Basic Diagrams:
examples/flowchart.md)examples/sequence.md)examples/class.md)examples/state.md)examples/er.md)Planning & Management:
examples/gantt.md)examples/journey.md)examples/timeline.md)examples/kanban.md)Data Visualization:
examples/pie.md)examples/xy-chart.md)examples/quadrant.md)examples/sankey.md)examples/radar.md)examples/treemap.md)Technical Diagrams:
examples/git.md)examples/c4.md)examples/requirement.md)examples/architecture.md)examples/block.md)examples/packet.md)Organizational:
examples/mindmap.md)examples/zenuml.md)When analyzing code to create diagrams:
Class Diagrams:
Sequence Diagrams:
Flowcharts:
State Diagrams:
Common patterns available in templates/common-patterns.md (load on-demand):
Styling:
Readability:
Validation:
If mmdc validation fails:
Present to user:
Created: <filename>.mmd
<Show the mermaid code in a code block>
✓ Validated successfully with mermaid-cli
If rendered:
Created: <filename>.mmd
Rendered: <filename>.svg
[Show file paths]
mmdc (mermaid-cli) is installed and availabledocumentation
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
testing
Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features
content-media
Production-ready PDF processing with forms, tables, OCR, validation, and batch operations. Use when working with complex PDF workflows in production environments, processing large volumes of PDFs, or requiring robust error handling and validation.
tools
Generate and edit high-quality AI images using Google's Gemini 3 Pro Image model (Nano Banana Pro) via MCP. Use when user wants to create images, edit photos, generate graphics, or needs visual content with text rendering.