New advertisers: 50% off your first month with code FIRSTMONTHSee slots
softaworks avatar

Mermaid Diagrams

Comprehensive Mermaid guide for creating diagrams of software, databases, architecture, and processes as text.

skills.sh installs
5.3K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers class, sequence, flowchart, ERD, C4, state, git graph, gantt, and pie chart diagram types, with selection guidance for each
  • Includes quick-start examples plus detailed references for class, sequence, flowchart, ERD, C4, architecture, and advanced styling
  • Provides configuration for themes (default, forest, dark, neutral, base), layout options, and handDrawn look
  • Designed for developers who want version-controllable diagrams rendered in GitHub, VS Code, Notion, or Obsidian

Install

$ npx -y skills add softaworks/agent-toolkit --skill mermaid-diagrams -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

  1. Class Diagrams - Domain modeling, OOP design, entity relationships

    • Domain-driven design documentation
    • Object-oriented class structures
    • Entity relationships and dependencies
  2. Sequence Diagrams - Temporal interactions, message flows

    • API request/response flows
    • User authentication flows
    • System component interactions
    • Method call sequences

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Technical Documentation, Design & UI/UX

More from softaworks/agent-toolkit

All 40

Similar to Mermaid Diagrams

More Technical Documentation