Tooluck logoTooluck
SKILL.md

mermaid-diagrams

Agent skill fromsoftaworks/agent-toolkit

Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions, code execution), flowcharts (processes, algorithms, user journeys), entity relationship diagrams (database schemas), C4 architecture diagrams (system context, containers, components), state diagrams, git graphs, pie charts, gantt charts, or any other diagram type. Triggers include requests to "diagram", "visualize", "model", "map out", "show the flow", or when explaining system architecture, database design, code structure, or user/application flows.

How to install mermaid-diagrams

install mermaid-diagrams
# install the agent-toolkit pack with the skills CLI
npx skills add softaworks/agent-toolkit

# or add only this skill to Claude Code: copy the folder

skills/mermaid-diagrams/

# into

~/.claude/skills/mermaid-diagrams/ (all projects)

.claude/skills/mermaid-diagrams/ (one project)

skills/mermaid-diagrams/SKILL.md

MITFull file
1# Mermaid Diagramming
2
3Create professional software diagrams using Mermaid's text-based syntax. Mermaid renders diagrams from simple text definitions, making diagrams version-controllable, easy to update, and maintainable alongside code.
4
5## Core Syntax Structure
6
7All Mermaid diagrams follow this pattern:
8
9```mermaid
10diagramType
11 definition content
12```
13
14**Key principles:**
15- First line declares diagram type (e.g., `classDiagram`, `sequenceDiagram`, `flowchart`)
16- Use `%%` for comments
17- Line breaks and indentation improve readability but aren't required
18- Unknown words break diagrams; parameters fail silently
19
20## Diagram Type Selection Guide
21
22**Choose the right diagram type:**
23
241. **Class Diagrams** - Domain modeling, OOP design, entity relationships
25 - Domain-driven design documentation
26 - Object-oriented class structures
27 - Entity relationships and dependencies
28
292. **Sequence Diagrams** - Temporal interactions, message flows
30 - API request/response flows
31 - User authentication flows
32 - System component interactions
33 - Method call sequences
34
353. **Flowcharts** - Processes, algorithms, decision trees
36 - User journeys and workflows
37 - Business processes
38 - Algorithm logic
39 - Deployment pipelines
40
414. **Entity Relationship Diagrams (ERD)** - Database schemas
42 - Table relationships
43 - Data modeling
44 - Schema design
45
465. **C4 Diagrams** - Software architecture at multiple levels
47 - System Context (systems and users)
48…

Excerpt shown under the repository's MIT license.

More skills in agent-toolkit

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates