From nickcrew-claude-ctx-plugin
Mermaid diagram creation for flowcharts, sequence diagrams, ERDs, state machines, Gantt charts, and architecture views. Use when creating or updating technical diagrams.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nickcrew-claude-ctx-plugin:mermaid-diagrammingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create clear, professional Mermaid diagrams for technical documentation. Covers all major
Create clear, professional Mermaid diagrams for technical documentation. Covers all major diagram types with both basic and styled variants, rendering guidance, and export recommendations.
| Resource | Purpose | Load when |
|---|---|---|
references/diagram-types.md | Syntax, patterns, and code examples for every Mermaid diagram type | Choosing or building a diagram |
Phase 1: Scope → Identify what to visualize, audience, and diagram type
Phase 2: Draft → Write base Mermaid code with correct syntax
Phase 3: Style → Add theming, colors, and accessibility annotations
Phase 4: Deliver → Provide rendering instructions and suggest iterations
Before writing any code, clarify:
| If you need to show... | Use |
|---|---|
| Process flow, decisions, branching | flowchart |
| Interactions over time between systems/actors | sequenceDiagram |
| Data model and relationships | erDiagram |
| Object structure and inheritance | classDiagram |
| States and transitions | stateDiagram-v2 |
| Project schedule and dependencies | gantt |
| Proportions or distribution | pie |
| Hierarchical idea mapping | mindmap |
| Events over time | timeline |
| System architecture layers | C4 context/container diagrams |
| Code version history | gitGraph |
| User experience flow | journey |
TB) or left-to-right (LR)subgraph to cluster related elements%% Always start with a comment describing the diagram's purpose
%% Use consistent quoting for labels with special characters
flowchart LR
A["User Request"] --> B{"Auth Check"}
B -->|Valid| C["Process Request"]
B -->|Invalid| D["Return 401"]
%%) explaining non-obvious relationships--> for solid lines, -.-> for dashed, ==> for thick-->|"reason"| TargetNodeApply consistent styling using %%{init: ...}%% directives:
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#4A90D9'}}}%%
flowchart TB
A["Start"] --> B["End"]
flowchart LR
A["Normal"]
B["Highlighted"]:::highlight
classDef highlight fill:#f9f,stroke:#333,stroke-width:2px
| Platform | Support |
|---|---|
| GitHub markdown | Native rendering in .md files |
| GitLab markdown | Native rendering |
| Mermaid Live Editor | https://mermaid.live for interactive editing |
| VS Code | Mermaid extension for preview |
| Docusaurus / MkDocs | Plugin-based rendering |
npx claudepluginhub nickcrew/claude-cortexCreates Mermaid diagrams for flowcharts, sequences, ERDs, architectures, and more. Provides styling, accessibility, and export recommendations.
Creates Mermaid diagrams for flowcharts, sequences, ERDs, and system architectures. Use proactively for visual documentation and process flows.
Creates and refines Mermaid diagrams (flowcharts, sequence, class, ER, state, Gantt) with live preview and save tools. Supports iterative workflows with theme and format options.