This gives Claude the full Mermaid syntax reference for creating text-based diagrams directly in your conversation. It covers the main types you'd actually use: class diagrams for domain modeling, sequence diagrams for API flows, flowcharts for processes, ERDs for database schemas, and C4 diagrams for architecture. The skill includes detailed syntax for relationships, cardinality, styling, and configuration options. What I like is that it's comprehensive enough to handle complex diagrams without needing to leave your workflow. The reference files break down each diagram type with concrete examples, so you can go from "I need to model this API interaction" to a proper sequence diagram without hunting through documentation.

skills.sh installs
913
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --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/davila7/claude-code-templates
Categories
Backend & APIs, Git & Pull Requests, Documentation, Code Review & Quality, Sales & Marketing, Design & UI/UX, Databases
First seen
May 16, 2026

More from davila7/claude-code-templates

All 618
1secondsky avatarsap-btp-cloud-loggingsecondsky/sap-skillsThis skill provides comprehensive guidance for SAP Cloud Logging service on SAP BTP. Use when setting up Cloud Logging instances, configuring log ingestion from908skills.sh installs
2forcedotcom avatarinvestigating-agentforce-architectureforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch903skills.sh installs
3heygen-com avatarfaceswapheygen-com/skillsSwap faces in a video using AI via the HeyGen API. Use when: (1) Replacing a face in a video with another face, (2) Face swapping from a source image onto a tar903skills.sh installs
4pproenca avatarmswpproenca/dot-skillsMSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, 897skills.sh installs
5ivan-magda avatarswift-security-expertivan-magda/swift-security-skillUse when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID), Crypto875skills.sh installs
6secondsky avatarsapui5-clisecondsky/sap-skillsManages SAPUI5/OpenUI5 projects using the UI5 Tooling CLI (@ui5/cli). Use when initializing UI5 projects, configuring ui5.yaml or ui5-workspace.yaml files, buil872skills.sh installs