agentsclimarketplace

Mermaid

Skill aksh-3141/claude-toolshed/plugins/mermaid/skills/mermaid

Internal routing hub for mermaid diagram skillsFrom its SKILL.md

Install
npx -y skills add aksh-3141/claude-toolshed --skill mermaid

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.8 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it

Mermaid — Diagram and Documentation Skill

Mermaid diagram and documentation system with specialized guides and code-to-diagram capabilities.

Entry Points

Entry pointWhen to use
/mermaid-{type} commandsYou know the diagram type — fastest path
/mermaid-diagramUnsure of type — describe what you want, gets routed automatically
/mermaid-validateBatch-check existing .md files for broken diagrams
/mermaid-renderRender an existing .mmd file to SVG
/mermaid-configConfigure defaults and check dependencies
/mermaid-architectAnalyze a codebase path and generate a diagram suite
diagram-architect agentClaude detects diagram need during active development work
This skill (SKILL.md)Extended sessions: design docs, code-to-diagram, multi-diagram projects

Diagram Type Routing

Load only the guide for the requested type. Do not pre-load all guides.

Suite requests ("generate diagrams from this codebase", "diagram this project"): use /mermaid-architect — it selects multiple diagram types automatically from actual code.

Ambiguous type (description matches multiple types): use /mermaid-diagram — it asks one clarifying question and routes automatically.

User wantsLoad
Workflow, process, approval flow, user journeyreferences/guides/diagrams/activity-diagrams.md
Infrastructure, cloud, K8s, deploymentreferences/guides/diagrams/deployment-diagrams.md
System architecture, components, microservicesreferences/guides/diagrams/architecture-diagrams.md
API flow, service interactions, request/responsereferences/guides/diagrams/sequence-diagrams.md
Class hierarchy, OOP design, data modelsreferences/guides/diagrams/class-diagrams.md
Database schema, ER modelreferences/guides/diagrams/er-diagrams.md
State machines, lifecycle, FSMreferences/guides/diagrams/state-diagrams.md

Reference Guides

NeedLoad
Syntax errors, rendering failuresreferences/guides/troubleshooting.md (18 documented patterns)
Learning Mermaid, preventing errorsreferences/guides/common-mistakes.md
Color schemes, accessibility, themesreferences/guides/styling-guide.md
Production workflow, validation loopreferences/guides/resilient-workflow.md
Quick routing from symptom to actionreferences/guides/quick-decision-matrix.md

styling-guide.md is a special-case reference. Do not load it by default. Load it only when the user explicitly asks for custom palette/theme behavior, brand colors, accessibility tuning, or style overrides.

Code-to-Diagram

Routing rule: if the user names a framework → use the row below. If no framework is named → use /mermaid-architect.

FrameworkLoadWhich diagram guide
Spring Bootexamples/spring-boot/README.mdRoutes/controllers → sequence · Models/entities → class · Overview → architecture
FastAPI / Python APIexamples/fastapi/README.mdEndpoints/deps → sequence · Pydantic models → class · Overview → architecture
React / frontendexamples/react/README.mdarchitecture (always)
Python ETL / batchexamples/python-etl/README.mdactivity (always)
Node/Expressexamples/node-webapp/README.mdMiddleware/routes → sequence · Overview → architecture
Java Web Appexamples/java-webapp/README.mdRoutes → sequence · Models → class · Overview → architecture
Any codebasereferences/guides/code-to-diagram/README.mdMaster guide determines type

Design Document Templates (assets/)

TemplateWhen to load
architecture-design-template.md"Create architecture doc", "Document system design"
api-design-template.md"API design doc", "Document REST API"
feature-design-template.md"Feature design", "Plan new feature"
database-design-template.md"Database design", "Document schema"
system-design-template.md"System design doc", "Full system documentation"
local-config-template.md"Create mermaid local config", "Generate .claude/mermaid.json template"

Scripts (scripts/)

ScriptUse for
extract_mermaid.jsExtract diagrams from Markdown, validate syntax
resilient_diagram.jsFull workflow: save .mmd, generate SVG, validate, recover errors

Resilient Workflow

CRITICAL: Use resilient_diagram.js for all diagram generation — ensures validation and error recovery.

Key principle: Never add a diagram to Markdown until it passes validation via extract_mermaid.js --validate.

If no target file is specified for embedding: ask the user for the file path before proceeding with the embed step.

If resilient_diagram.js fails (Node.js not found, node_modules missing): stop and tell the user to run /mermaid-config → option 7 (health check) to diagnose missing dependencies.

Error recovery order: troubleshooting.mdcommon-mistakes.md → WebSearch

Full guide: references/guides/resilient-workflow.md

Unicode Symbols

Load references/guides/unicode-symbols/guide.md when user mentions "symbols", "icons", "emoji in diagrams".

Quick reference: ☁️ cloud · 🌐 load balancer · ⚙️ compute · 💾 data · 📬 messaging · 🔐 security · 🚨 alerts

Theme-First Styling

Default behavior: preserve the user's configured theme/themeVariables.

  • Do not add classDef with hardcoded fill/stroke/color unless the user explicitly asks for custom node colors.
  • Prefer semantic structure (subgraphs, labels, edges) over custom palette overrides.
  • If custom styling is explicitly requested, keep overrides minimal and ensure readable contrast.

User Configuration

Read .claude/mermaid.json as a first step before routing. Supported keys: theme, auto_validate, output_directory. Sub-skills (mermaid-diagram, mermaid-architect, mermaid-render) handle their own config reads in their Step 2.

Common Mistakes

MistakeFix
Diagram won't render after adding to MarkdownValidate with extract_mermaid.js --validate first — see references/guides/resilient-workflow.md
Syntax error with no obvious causeCheck references/guides/troubleshooting.md (18 documented patterns)
Repeated syntax mistakesRead references/guides/common-mistakes.md before generating
Generated diagram ignores configured themeRemove hardcoded classDef fill/stroke/color; use theme-first defaults
Loading all guides upfrontLoad only the guide for the requested diagram type

What ships with it: 35 files

907.5 KB alongside SKILL.md, 4 of them executable

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.