Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By diegomarinov1.1.1MITIn 1 marketplace
Turns a text description or a codebase into Mermaid diagrams, then checks their syntax and renders them to themed SVG. Needs Node.js 18 or newer.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
A Claude Code plugin for generating, validating, rendering, and managing Mermaid diagrams. Powered by beautiful-mermaid for themed SVG rendering.
See the root README for a visual overview.
/plugin install mermaid@claude-toolshed
Requires: Node.js 18+
| Command | What it does | Best for |
|---|---|---|
/mermaid-diagram | Describe what you want — auto-detects diagram type | Quick single diagrams from a text description |
/mermaid-architect | Analyze a codebase directory — generates 3-5 diagrams | Documenting an existing project |
/mermaid-validate | Check Mermaid syntax in .md files or directories | Catching broken diagrams before commit |
/mermaid-render | Render .mmd files to SVG | Exporting diagrams for docs or PRs |
/mermaid-config | Configure theme, output format, and check dependencies | First-time setup and health checks |
/mermaid-diagram "user login with JWT and refresh token"
/mermaid-architect src/
/mermaid-validate docs/
/mermaid-render diagrams/auth-flow.mmd
/mermaid-config
The plugin routes your description to one of 7 specialist diagram types:
| Type | Use when you need to show | Example prompt |
|---|---|---|
| Sequence | Interactions between actors over time | "API call with JWT and refresh token" |
| Architecture | System components and their connections | "microservices overview with API gateway" |
| ER | Database entities and relationships | "user, order, and product schema" |
| Activity | Workflows, processes, decision points | "CI/CD pipeline with approval gates" |
| State | Lifecycle transitions of a single entity | "order status from created to delivered" |
| Class | Object-oriented structures and inheritance | "payment processor class hierarchy" |
| Deployment | Infrastructure tiers and hosting | "3-tier AWS deployment with RDS" |
/mermaid-architect detects your framework and picks the right diagram types:
| Framework | What it generates |
|---|---|
| Spring Boot | Sequence (controllers), Class (entities), Architecture (services) |
| FastAPI | Sequence (endpoints), Class (Pydantic models), Architecture (overview) |
| React | Architecture (component tree, state flow) |
| Node/Express | Sequence (middleware/routes), Architecture (overview) |
| Python ETL | Activity (pipeline stages, transforms) |
| Java Web | Sequence (routes), Class (models), Architecture (overview) |
File: .claude/mermaid.json (in the project root)
Created automatically by /mermaid-config, or copy from the config template. The plugin reads this file as its first step on every command. If the file doesn't exist, defaults are used.
{
// Named theme or "custom" to use themeVariables
"theme": "zinc-light",
// Where .mmd and rendered files are saved (relative to project root)
// Use "same" to save next to the input file
"output_directory": "./diagrams",
// Run syntax validation after generating a diagram
"auto_validate": true,
// Render to SVG automatically after generating a diagram
"auto_render": false,
// Output format (only "svg" is supported)
"output_format": "svg",
// Custom color palette — only used when theme is "custom"
"themeVariables": {
"bg": "#ffffff", // diagram background
"fg": "#1a1a2e", // text and labels
"accent": "#4a90d9", // primary elements (nodes, actors, borders)
"line": "#666666", // arrows and connectors
"muted": "#999999" // secondary elements (subgraphs, notes)
}
}
Only the keys shown above are recognized. Unknown keys are ignored.
7-day copy clicks
npx claudepluginhub diegomarino/claude-toolshed --plugin mermaidBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground