Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
oakoss avatar

Mermaid Diagrams

  • 113 installs
  • 14 repo stars
  • Updated March 2, 2026
  • oakoss/agent-skills

Helps with ai & agent building tasks during AI-assisted development.

About

mermaid-diagrams is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • mermaid-diagrams
  • AI & Agent Building
  • AI-coding skill

Mermaid Diagrams by the numbers

  • 113 all-time installs (skills.sh)
  • +4 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #3,984 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oakoss/agent-skills --skill mermaid-diagrams

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs113
repo stars14
Last updatedMarch 2, 2026
Repositoryoakoss/agent-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

Mermaid Diagrams

Overview

Mermaid is a JavaScript-based diagramming tool that renders Markdown-inspired text definitions into SVG diagrams. It supports flowcharts, sequence diagrams, ER diagrams, class diagrams, state diagrams, Gantt charts, pie charts, mindmaps, and git graphs directly inside Markdown files.

When to use: Documenting system architecture, visualizing data models, illustrating request flows, creating project timelines, embedding diagrams in GitHub/GitLab READMEs or docs sites.

When NOT to use: Pixel-perfect design mockups, interactive dashboards, diagrams requiring custom artwork or complex spatial layouts beyond hierarchical/relational structures.

Quick Reference

DiagramDeclarationKey Points
Flowchartflowchart TDDirections: TB, TD, BT, RL, LR. Supports subgraphs
SequencesequenceDiagramParticipants, messages, loops, alt/opt/par blocks
ER DiagramerDiagramCrow's foot notation, PK/FK/UK attributes
Class DiagramclassDiagramUML relationships, visibility modifiers, annotations
State DiagramstateDiagram-v2Transitions, composite states, forks/joins, choice
Gantt ChartganttSections, tasks with dates/durations, milestones
Pie ChartpieLabels with numeric values, optional title
MindmapmindmapIndentation-based hierarchy, multiple node shapes
Git GraphgitGraphCommits, branches, merges, cherry-picks, tags
Architecturearchitecture-betaServices in groups, directional edges (T/B/L/R)
Block Diagramblock-betaColumn layout, block arrows, nested blocks
TimelinetimelineTime periods with events, sections for grouping
Sankeysankey-betaFlow quantities between nodes, CSV-like data format
XY Chartxychart-betaBar and line charts with x/y axes
Quadrant ChartquadrantChartFour-quadrant plot with labeled axes and data points
KanbankanbanColumns with task cards, assignees, priorities
Packetpacket-betaNetwork packet structure with bit-range fields
RequirementrequirementDiagramRequirements, elements, and verification links
C4 DiagramC4ContextC4 model: Context, Container, Component, Deployment

Common Mistakes

MistakeCorrect Pattern
Using graph instead of flowchartUse flowchart for subgraph edges and newer features
Missing space after arrow in sequencesAlice->>Bob: msg not Alice->>Bob:msg
Wrong cardinality order in ER diagramsLeft cardinality, then line, then right cardinality
Forgetting end after subgraph/loop/altEvery block keyword requires a matching end
Using reserved words as node IDsWrap reserved words in quotes or use aliases
Bare code blocks without language tagAlways use `mermaid as the language specifier
Mixing v1 and v2 state diagram syntaxUse stateDiagram-v2 consistently for current features
Unquoted labels with special charactersWrap labels containing special characters in double quotes
Missing dateFormat in Gantt chartsAlways declare dateFormat before task definitions
Using tabs instead of spaces for mindmapsMindmap indentation requires spaces, not tabs

Delegation

  • Diagram discovery and exploration: Use Explore agent to find existing diagrams in the codebase
  • Diagram review: Use Task agent to verify diagram accuracy against code
  • Architecture documentation: Use code-reviewer agent for doc quality checks

References

  • Flowcharts: nodes, edges, subgraphs, directions, and styling
  • Sequence diagrams: participants, messages, activations, and control flow
  • Entity-relationship diagrams: entities, attributes, and cardinality
  • Class diagrams: classes, methods, relationships, and annotations
  • Other diagrams: Gantt, pie, mindmap, state, and git graph
  • Architecture, block, timeline, Sankey, XY chart, quadrant, kanban, packet, requirement, and C4 diagrams

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.