softaworks avatar

Mermaid Diagrams

If you're documenting systems, modeling domains, or explaining architecture, this gives Claude the full Mermaid syntax reference to generate diagrams from text. It covers class diagrams for domain models, sequence diagrams for API flows, flowcharts for processes, ERDs for database schemas, and C4 diagrams for architecture. The detailed references walk through relationship types, cardinality notation, and styling options. Honestly, the main value is having all the syntax rules in one place so Claude doesn't hallucinate invalid Mermaid code. Works well when you need diagrams that live in version control alongside your code instead of rotting in some separate diagramming tool.

skills.sh installs
5.2K
GitHub stars
2.7K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Backend & APIs, Git & Pull Requests, Documentation, Code Review & Quality, AI & Agent Building, Sales & Marketing, Design & UI/UX, Databases

More from softaworks/agent-toolkit

All 43
1forcedotcom avatarintegration-eventing-cdc-configureforcedotcom/sf-skillsUse to enable Salesforce Change Data Capture (CDC) on a standard or custom object, configure a custom event channel, set a filter expression, or add enrichment 5.2Kskills.sh installs
2dotnet avatardotnet-webapidotnet/skillsGuides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling. USE FOR: adding new API en5.2Kskills.sh installs
3jeffallan avatarcsharp-developerjeffallan/claude-skillsUse when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures da5.1Kskills.sh installs
4recoupable avatarrecoup-platform-build-osrecoupable/skillsScaffold and run a label's self-managing "music-company OS" inside its own git repo — the full label-intelligence workspace (folders, a self-managing CLAUDE.md 5.1Kskills.sh installs
5iii-hq avatariii-getting-startediii-hq/iiiInstall the iii engine, set up your first worker, and get a working backend running. Use when a user wants to start a new iii project, install the SDK, or needs4.9Kskills.sh installs
6medusajs avatarbuilding-with-medusamedusajs/medusa-agent-skillsLoad automatically when planning, researching, or implementing ANY Medusa backend features (custom modules, API routes, workflows, data models, module links, bu4.8Kskills.sh installs