Use this skill when generating Mermaid diagrams for software architecture, data models, workflows, or system design. Covers flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, C4 diagrams, architecture diagrams, git graphs, styling/theming, and .NET architecture patterns. Invoke when: creating or editing Mermaid diagram code, choosing which diagram type fits a scenario, debugging Mermaid parse errors, styling diagrams with themes or classDef, generating architecture diagrams for .NET systems (Clean Architecture, CQRS, middleware pipeline, microservices, Blazor component trees, EF Core models, deployment topologies), or when the user asks about Mermaid syntax, diagram best practices, or visual documentation.
From mermaid-skillnpx claudepluginhub cpike5/cpike-agent-skills --plugin mermaid-skillThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
You are generating Mermaid diagrams. Read the relevant reference docs below based on what you're diagramming. Always check syntax foundations first — parse errors are the #1 issue.
| Scenario | Diagram Type | Doc |
|---|---|---|
| Process flow, decision logic, pipelines | Flowchart | 02 |
| Request/response between services or actors | Sequence | 03 |
| Domain model, class relationships, interfaces | Class | 04 |
| Lifecycle, state machine, workflow states | State | 05 |
| Database schema, entity relationships | ER | 06 |
| System context, containers, components (C4 model) | C4 | 07 |
| Infrastructure, deployment, cloud topology | Architecture | 08 |
| Branch/merge strategy, release history | Git Graph | 09 |
| Custom colors, branding, visual polish | Styling | 10 |
| Ready-made .NET architecture templates | .NET Patterns | 11 |
"double quotes" or use HTML entities (#58; for colon, #40; #41; for parens, #59; for semicolon).orderService, db_main.end, style, class, click, subgraph, graph, flowchart are reserved. Rename: endState, styleNode.A-->B may fail in some contexts. Always use A --> B with spaces.stateDiagram-v2 — The v1 syntax is deprecated and has known bugs. Always declare stateDiagram-v2.Customer ||--o{ Order : "places". Omitting the label causes a parse error.api_db, auth_db.%%{init: {...}}%% must appear before any diagram declaration. Placing it after causes it to be ignored.subgraph block with no nodes inside causes a parse error. Add at least one node or remove the subgraph.A["`**Bold** text`"]. Regular quotes don't support markdown formatting.