Mermaid Diagram Maker
Visualization skill, available on Zeplik
Mermaid Diagram Maker is a ready-to-run diagrams and visualization skill on Zeplik. The DEFAULT for any diagram the user wants to SEE inline in chat — flowcharts, flow diagrams, sequence, class, ER/database schema, C4 architecture, state, and gantt. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer. It returns a structured diagram you can keep and reuse: Diagram artifact -- labeled nodes/edges, declared kind, deliberate layout (see artifact-templates/diagram.md).
The Mermaid Diagram Maker skill loads automatically when your request matches it, or you can invoke it directly by typing /mermaid-diagrams in any chat. It works with attachments, connectors, and any model that supports the task, so you get the same expert method every time without setting anything up.
What the Mermaid Diagram Maker skill can do
- Generate flowcharts, sequence, class, and ER diagrams as Mermaid code
- Produce C4 architecture diagrams at context, container, and component levels
- Build state diagrams, gantt charts, and git graphs from text descriptions
- Apply theming, layout, and styling configuration via frontmatter options
Try these prompts on Zeplik
Pick a prompt to open it in the Zeplik app. If you are not signed in yet, your prompt is waiting for you the moment you do.
How the Mermaid Diagram Maker skill works
Mermaid Diagramming
Create 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.
Core Syntax Structure
All Mermaid diagrams follow this pattern:
diagramType
definition content
Key principles:
- First line declares diagram type (e.g.,
classDiagram,sequenceDiagram,flowchart) - Use
%%for comments - Line breaks and indentation improve readability but aren't required
- Unknown words break diagrams; parameters fail silently
Diagram Type Selection Guide
Choose the right diagram type:
-
Class Diagrams - Domain modeling, OOP design, entity relationships
- Domain-driven design documentation
- Object-oriented class structures
- Entity relationships and dependencies
-
Sequence Diagrams - Temporal interactions, message flows
- API request/response flows
- User authentication flows
- System component interactions
- Method call sequences
-
Flowcharts - Processes, algorithms, decision trees
- User journeys and workflows
- Business processes
- Algorithm logic
- Deployment pipelines
-
Entity Relationship Diagrams (ERD) - Database schemas
- Table relationships
- Data modeling
- Schema design
-
C4 Diagrams - Software architecture at multiple levels
- System Context (systems and users)
- Container (applications, databases, services)
- Component (internal structure)
- Code (class/interface level)
-
State Diagrams - State machines, lifecycle states
-
Git Graphs - Version control branching strategies
-
Gantt Charts - Project timelines, scheduling
-
Pie/Bar Charts - Data visualization
Quick Start Examples
Class Diagram (Domain Model)
classDiagram
Title -- Genre
Title *-- Season
Title *-- Review
User --> Review : creates
class Title {
+string name
+int releaseYear
+play()
}
class Genre {
+string name
+getTopTitles()
}
Sequence Diagram (API Flow)
sequenceDiagram
participant User
participant API
participant Database
User->>API: POST /login
API->>Database: Query credentials
Database-->>API: Return user data
alt Valid credentials
API-->>User: 200 OK + JWT token
else Invalid credentials
API-->>User: 401 Unauthorized
end
Flowchart (User Journey)
flowchart TD
Start([User visits site]) --> Auth{Authenticated?}
Auth -->|No| Login[Show login page]
Auth -->|Yes| Dashboard[Show dashboard]
Login --> Creds[Enter credentials]
Creds --> Validate{Valid?}
Validate -->|Yes| Dashboard
Validate -->|No| Error[Show error]
Error --> Login
ERD (Database Schema)
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : includes
USER {
int id PK
string email UK
string name
datetime created_at
}
ORDER {
int id PK
int user_id FK
decimal total
datetime created_at
}
Detailed References
For in-depth guidance on specific diagram types, see:
- references/class-diagrams.md - Domain modeling, relationships (association, composition, aggregation, inheritance), multiplicity, methods/properties
- references/sequence-diagrams.md - Actors, participants, messages (sync/async), activations, loops, alt/opt/par blocks, notes
- references/flowcharts.md - Node shapes, connections, decision logic, subgraphs, styling
- references/erd-diagrams.md - Entities, relationships, cardinality, keys, attributes
- references/c4-diagrams.md - System context, container, component diagrams, boundaries
- references/advanced-features.md - Themes, styling, configuration, layout options
Best Practices
- Start Simple - Begin with core entities/components, add details incrementally
- Use Meaningful Names - Clear labels make diagrams self-documenting
- Comment Extensively - Use
%%comments to explain complex relationships - Keep Focused - One diagram per concept; split large diagrams into multiple focused views
- Version Control - Store
.mmdfiles alongside code for easy updates - Add Context - Include titles and notes to explain diagram purpose
- Iterate - Refine diagrams as understanding evolves
Configuration and Theming
Configure diagrams using frontmatter:
---
config:
theme: base
themeVariables:
primaryColor: "#ff6b6b"
---
flowchart LR
A --> B
Available themes: default, forest, dark, neutral, base
Layout options:
layout: dagre(default) - Classic balanced layoutlayout: elk- Advanced layout for complex diagrams (requires integration)
Look options:
look: classic- Traditional Mermaid stylelook: handDrawn- Sketch-like appearance
Exporting and Rendering
Native support in:
- GitHub/GitLab - Automatically renders in Markdown
- VS Code - With Markdown Mermaid extension
- Notion, Obsidian, Confluence - Built-in support
Export options:
- Mermaid Live Editor - Online editor with PNG/SVG export
- Mermaid CLI -
npm install -g @mermaid-js/mermaid-clithenmmdc -i input.mmd -o output.png - Docker -
docker run --rm -v $(pwd):/data minlag/mermaid-cli -i /data/input.mmd -o /data/output.png
Common Pitfalls
- Breaking characters - Avoid
{}in comments, use proper escape sequences for special characters - Syntax errors - Misspellings break diagrams; validate syntax in Mermaid Live
- Overcomplexity - Split complex diagrams into multiple focused views
- Missing relationships - Document all important connections between entities
When to Create Diagrams
Always diagram when:
- Starting new projects or features
- Documenting complex systems
- Explaining architecture decisions
- Designing database schemas
- Planning refactoring efforts
- Onboarding new team members
Use diagrams to:
- Align stakeholders on technical decisions
- Document domain models collaboratively
- Visualize data flows and system interactions
- Plan before coding
- Create living documentation that evolves with code
Zeplik output presentation
Present the final deliverable as a single polished artifact: clear headings, tables where the content is tabular, fenced code where it is code. Lead with the deliverable itself; keep process commentary to a single short line. If the skill produced multiple files or sections, end with a compact list of them with one-line purposes.
How to use the Mermaid Diagram Maker skill
Sign in to Zeplik
Create a free Zeplik account or sign in. New accounts start with free credits, so you can try the Mermaid Diagram Maker skill right away.
Describe your diagrams and visualization task
Ask in plain language, or type /mermaid-diagrams to invoke the skill directly. Zeplik recognizes the Mermaid Diagram Maker skill and applies its method.
Review and refine the result
Zeplik returns a structured diagram you can edit, download, and reuse. Ask follow-ups to refine it.
Source and credit
- Author
- davila7 community
- License
- MIT
Adapted from the open-source davila7/claude-code-templates project and tuned to run natively on Zeplik. View source on GitHub.
Frequently asked questions
- What is the Mermaid Diagram Maker skill?
- Mermaid Diagram Maker is a ready-to-run diagrams and visualization skill on Zeplik. The DEFAULT for any diagram the user wants to SEE inline in chat — flowcharts, flow diagrams, sequence, class, ER/database schema, C4 architecture, state, and gantt. Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer. It returns a structured diagram you can keep and reuse: Diagram artifact -- labeled nodes/edges, declared kind, deliberate layout (see artifact-templates/diagram.md).
- How do I use Mermaid Diagram Maker on Zeplik?
- Sign in to Zeplik and ask in plain language, or type /mermaid-diagrams in any chat to invoke it directly. The skill applies its method and returns a result you can refine in the same conversation.
- Which AI model does the Mermaid Diagram Maker skill use?
- Any model you choose. Zeplik works across every model in one chat, so the Mermaid Diagram Maker skill runs on your preferred model for the task.
- Where does the Mermaid Diagram Maker skill come from?
- The Mermaid Diagram Maker skill is adapted from the open-source davila7/claude-code-templates project (MIT) and tuned to run natively on Zeplik. The original source is linked on this page.
- How much does the Mermaid Diagram Maker skill cost?
- Using the skill is free to start. You only spend Zeplik credits when the assistant runs, and new accounts begin with free credits.
Related visualization skills
- C4 Architecture DiagramsUse when documenting software architecture as C4 model Mermaid diagrams: context, container, component, deployment, dynamic. Not for general diagrams (use diagram or mermaid-diagrams).
- D3.js VisualizationsUse when building bespoke interactive d3.js visualizations: networks, chord diagrams, maps, custom SVG with transitions and zoom. Not for quick standard charts (use create-viz).
- Diagram & Flowchart MakerProduce a downloadable, editable draw.io/diagrams.net XML file the user opens at app.diagrams.net. Use ONLY when the user explicitly wants an editable draw.io / diagrams.net / .drawio deliverable (a canvas file to open in the draw.io editor). For a diagram the user just wants to SEE inline in the chat — a flowchart, architecture, ER, sequence, or state diagram — use mermaid-diagrams (it renders as a real diagram in the message); this draw.io file does not render inline. Not for hand-drawn whiteboard looks (use excalidraw).
- Draw.io DiagramsUse when creating, editing, or laying out .drawio XML diagrams, including AWS architecture icons. Not for hand-drawn-style sketch diagrams (use excalidraw).
- Excalidraw DiagramsUse when creating, editing, or explaining .excalidraw JSON diagrams with a hand-drawn look. Not for Markdown text diagrams (use mermaid-diagrams).
- Math Animation StudioUse when building mathematical or educational animations with Manim (Python) -- scenes, mobjects, LaTeX. Not for data charts or plots (use create-viz).
More on Zeplik
Try Mermaid Diagram Maker on Zeplik
Every model, one chat. Bring the Mermaid Diagram Maker skill into your next conversation and let the assistant do the work.