| name | dotnet-mermaid-diagrams |
| description | Creates Mermaid diagrams for .NET. Architecture, sequence, class, deployment, ER, flowcharts. |
| license | MIT |
| targets | ["*"] |
| tags | ["foundation","dotnet","skill"] |
| version | 0.0.1 |
| author | dotnet-agent-harness |
| invocable | true |
| claudecode | {"allowed-tools":["Read","Grep","Glob","Bash","Write","Edit"]} |
| codexcli | {"short-description":".NET skill guidance for foundation tasks"} |
| opencode | {"allowed-tools":["Read","Grep","Glob","Bash","Write","Edit"]} |
| copilot | {} |
| geminicli | {} |
| antigravity | {} |
| category | fundamentals |
| subcategory | coding-standards |
dotnet-mermaid-diagrams
Mermaid diagram reference for .NET projects: architecture diagrams (C4-style context, container, component views,
layered architecture, microservice topology), sequence diagrams (API request flows, async/await patterns, middleware
pipeline, authentication flows), class diagrams (domain models, DI registration graphs, inheritance hierarchies,
interface implementations), deployment diagrams (container deployment, Kubernetes pod layout, CI/CD pipeline flow), ER
diagrams (EF Core model relationships, database schema visualization), state diagrams (workflow states, order
processing, saga patterns, state machine patterns), and flowcharts (decision trees, framework selection, architecture
choices). Includes diagram-as-code conventions for naming, grouping, GitHub rendering, and dark mode considerations.
Version assumptions: Mermaid v10+ (supported by GitHub, Starlight, Docusaurus natively). GitHub renders Mermaid in
Markdown files, issues, PRs, and discussions. .NET 8.0+ baseline for code examples.
For complete diagram examples, see examples.md in this skill directory.
Scope
- Architecture diagrams (C4-style, layered, microservice topology)
- Sequence diagrams (API flows, async/await, middleware pipeline)
- Class diagrams (domain models, DI graphs, inheritance)
- Deployment diagrams (containers, Kubernetes, CI/CD flow)
- ER diagrams (EF Core models, database schema)
- Diagram-as-code conventions (naming, grouping, dark mode)
Out of scope
- Documentation platform configuration for Mermaid rendering -- see [skill:dotnet-documentation-strategy]
- GitHub-native doc structure and README patterns -- see [skill:dotnet-github-docs]
- CI/CD pipeline deployment of doc sites -- see [skill:dotnet-gha-deploy]
Cross-references: [skill:dotnet-documentation-strategy] for Mermaid rendering setup across doc platforms,
[skill:dotnet-github-docs] for embedding diagrams in GitHub-native docs, [skill:dotnet-gha-deploy] for doc site
deployment.
Supported Diagram Types
Architecture Diagrams
- C4-Style Context -- system in its environment with external actors (10-12 nodes max)
- C4-Style Container -- high-level technology choices and interactions (15-20 nodes max)
- C4-Style Component -- internal structure of a single service (15-20 nodes max)
- Layered Architecture -- Presentation, Application, Domain, Infrastructure layers
- Microservice Topology -- services, messaging, observability connections
Sequence Diagrams