Mermaid Diagram Specialist
Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations
- Type
- Subagent
- Repository
- softaworks/agent-toolkit
- GitHub stars
- 2.5k
- License
- MIT
- Repo last updated
- Mar 5, 2026
- Source file
- agents/mermaid-diagram-specialist.md
What Mermaid Diagram Specialist is
Mermaid Diagram Specialist is a subagent published in the softaworks/agent-toolkit repository on GitHub, which has about 2.5k stars. The repository describes itself as: “A curated collection of skills for AI coding agents. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Mermaid Diagram Specialist and get back a compact result.
How to install Mermaid Diagram Specialist
Claude Code
- Download mermaid-diagram-specialist.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/mermaid-diagram-specialist.md, shared under the repository's MIT license. Read the full file on GitHub.
Overview
Purpose: Expert in creating comprehensive Mermaid diagrams for documentation, architecture visualization, and process mapping
Category: Tech Primary Users: tech-writer, architecture-validator, product-technical, tech-lead
When to Use This Skill
- Creating architecture documentation
- Visualizing workflows and processes
- Documenting data models (ERDs)
- Explaining sequence flows
- Creating state machines
- Documenting component relationships
- Creating decision trees
- Visualizing user journeys
Prerequisites
Required:
- Understanding of the system/process to document
- Access to technical specifications
- Knowledge of diagram type needed
Optional:
- Design system colors for consistency
- Existing documentation to reference
Input
What the skill needs:
- Process/system description
- Entities and relationships (for ERDs)
- Component interactions (for sequence diagrams)
- Architecture layers (for C4 diagrams)
- States and transitions (for state diagrams)
Workflow
Step 1: Diagram Type Selection
Objective: Choose appropriate diagram type for requirements
Available Diagram Types:
- Flowchart: Decision flows, algorithms, processes
- Sequence Diagram: API interactions, message flows
- ERD: Database schemas, entity relationships
- Class Diagram: Object-oriented design
- State Diagram: State machines, lifecycle
- Gantt Chart: Project timelines, schedules
- C4 Diagram: Architecture at different levels
- Pie/Bar Charts: Data visualization
- Git Graph: Version control flows
- User Journey: User experience flows
Decision Matrix:
- Process with decisions → Flowchart
- API/system interactions → Sequence Diagram
- Database structure → ERD
- System architecture → C4 Diagram
- Object relationships → Class Diagram
- State transitions → State Diagram
- Project timeline → Gantt Chart
Validation:
- Diagram type matches content
- Complexity appropriate
- Audience considered
- Purpose clear
Output: Selected diagram type
Step 2: Flowchart Creation
Objective: Create process and decision flow diagrams
Syntax:
flowchart TD
Start([Start]) --> Input[/User Input/]
Input --> Validate{Valid?}
Validate -->|Yes| Process[Process Data]
Validate -->|No| Error[Show Error]
Error --> Input
Process --> Save[(Save to DB)]
Save --> Success[/Success Response/]
Success --> End([End])Node Shapes:
- [Rectangle] - Process step
- ([Rounded]) - Start/End
- {Diamond} - Decision
- [/Parallelogram/] - Input/Output
- [(Database)] - Data storage
- ((Circle)) - Connector
Direction Options:
- TD - Top to Down
- LR - Left to Right
- BT - Bottom to Top
- RL - Right to Left
Example - Booking Flow:
flowchart TD
Start([User Initiates Booking]) --> CheckDates[Check Date Availability]
CheckDates --> Available{Dates Available?}
Available -->|No| ShowError[/Show Unavailable Message/]
ShowError --> End([End])
Available -->|Yes| CreateBooking[Create Pending Booking]
CreateBooking --> Payment[Process Payment]
Payment --> PaymentSuccess{Payment Success?}
PaymentSuccess -->|No| CancelBooking[Cancel Booking]
CancelBooking --> ShowError
PaymentSuccess -->|Yes| ConfirmBooking[Confirm Booking]
ConfirmBooking --> SendEmail[/Send Confirmation Email/]
SendEmail --> SaveDB[(Save to Database)]
SaveDB --> Success[/Show Success/]
Success --> EndValidation:
- All paths covered
- Decision points clear
- Start and end defined
- Flow direction logical
Output: Process flowchart
Step 3: Sequence Diagram Creation
Objective: Document API interactions and message flows
Syntax:
sequenceDiagram
actor User
participant Frontend
participant API
participant DB
participant Payment
User->>Frontend: Click "Book"
Frontend->>API: POST /api/bookings
API->>DB: Check availability
DB-->>API: Available
API->>Payment: Process payment
Payment-->>API: Payment successful
API->>DB: Create booking
DB-->>API: Booking created
API-->>Frontend: 201 Created
Frontend-->>User: Show confirmationParticipant Types:
- actor - Human user
- participant - System/Service
- database - Database
Arrow Types:
- -> - Solid line (synchronous)
- --> - Dotted line (response)
- ->> - Solid arrow (async message)
- -->> - Dotted arrow (async response)
Example - Authentication Flow:
sequenceDiagram
actor User
participant Frontend
participant API
participant Clerk
participant DB
User->>Frontend: Enter credentials
Frontend->>Clerk: Login request
Clerk->>Clerk: Validate credentials
alt Credentials valid
Clerk-->>Frontend: JWT token
Frontend->>API: Request with token
API->>Clerk: Verify token
Clerk-->>API: Token valid
API->>DB: Fetch user data
DB-->>API: User data
API-->>Frontend: User session
… Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Mermaid Diagram Specialist?
Mermaid Diagram Specialist is a subagent for Claude Code and Claude Cowork from the softaworks/agent-toolkit repository on GitHub. Mermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations
How do I install Mermaid Diagram Specialist in Claude Code?
Download mermaid-diagram-specialist.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Mermaid Diagram Specialist in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Mermaid Diagram Specialist safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- General Purpose Default agent for handling complex, multi-step tasks with automatic delegation capabilities Subagent · softaworks/agent-toolkit
- Codebase Pattern Finder codebase-pattern-finder is a useful subagent_type for finding similar implementations, usage examples, or existing patterns that can be modeled after. It will give you concrete code examples based on what you're looking for! It's sorta like codebase-locator, but it will not only tell you the location of files, it will also give you code details! Subagent · softaworks/agent-toolkit
- Communication Excellence Coach PROACTIVELY use when reviewing communication drafts or preparing difficult conversations. Provides email refinement, tone calibration, roleplay practice, and presentation feedback with actionable suggestions. Subagent · softaworks/agent-toolkit
- Ui Ux Designer Expert UI/UX design critic and advisor who provides research-backed, opinionated feedback on interfaces. Use when you need honest assessment of design decisions, want to avoid generic "AI slop" aesthetics, need evidence-based UX guidance, or want distinctive design direction grounded in actual user behavior research. This agent will push back on bad ideas and cite sources for every recommendation. Subagent · softaworks/agent-toolkit
- Bug Hunter Use this agent when reviewing local code changes or in the pull request to identify bugs and critical issues through systematic root cause… Subagent · NeoLabHQ/context-engineering-kit
- Business Analyst Use this agent when refining task descriptions and defining verifiable acceptance criteria for implementation tasks. Subagent · NeoLabHQ/context-engineering-kit
- Code Explorer Use this agent when analyzing existing codebase features, tracing execution paths, mapping architecture, identifying files affected by proposed changes, or understanding integration points for new development. Subagent · NeoLabHQ/context-engineering-kit
- Zero Designs zero trust network architectures with phased roadmaps covering identity pillars, microsegmentation, and ZTNA replacement for VPN. Use when you need a zero trust design, a network segmentation plan, or a ZT maturity assessment. Trigger with \"design my zero trust architecture\", \"audit my network for zero trust readiness\". Subagent · jeremylongshore/tons-of-skills-marketplace