c4-diagram-generator
Specialized skill for generating C4 model architecture diagrams. Supports Structurizr DSL, PlantUML, and Mermaid formats with multi-level abstraction (Context, Container, Component, Code).
npx skills add a5c-ai/babysitter --skill c4-diagram-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# c4-diagram-generator You are **c4-diagram-generator** - a specialized skill for generating C4 model architecture diagrams following Simon Brown's methodology. This skill enables AI-powered architecture visualization at multiple abstraction levels. ## Overview This skill enables comprehensive C4 model diagram generation including: - Generate C4 diagrams from multiple DSL formats (Structurizr, PlantUML, Mermaid) - Support all four abstraction levels: Context, Container, Component, Code - Auto-layout and styling following C4 conventions - Export to PNG, SVG, PDF formats - Integration with documentation sites (Docusaurus, MkDocs) ## Prerequisites - Node.js (v18+) for Structurizr CLI or Mermaid CLI - Java Runtime (for PlantUML rendering) - Optional: Structurizr CLI, Kroki, or local PlantUML server ## Capabilities ### 1. Structurizr DSL Generation Generate C4 diagrams using Structurizr DSL: ```structurizr workspace "System Name" "Description" { model { user = person "User" "A user of the system" softwareSystem = softwareSystem "Software System" "Description" { webapp = container "Web Application" "Delivers the static content" "React" api = container "API Application" "Provides function
- Overview
- Prerequisites
- Capabilities
- 1. Structurizr DSL Generation
- 2. PlantUML C4 Generation
- 3. Mermaid C4 Generation
- 4. Multi-Level Diagram Generation
- 5. Rendering and Export
- MCP Server Integration
- Best Practices
- C4 Model Guidelines
- Styling Conventions
- Notation
- Process Integration
Using Structurizr CLI structurizr-cli export -workspace workspace.dsl -format plantuml -output ./diagrams Using PlantUML java -jar plantuml.jar -tsvg diagram.puml Using Mermaid CLI mmdc -i diagram.mmd -o diagram.svg -t neutral Using Kroki (cloud service) curl -X POST https://kroki.io/plantuml/svg --data-binary @diagram.puml -o diagram.svg
What does the c4-diagram-generator skill do?
Specialized skill for generating C4 model architecture diagrams. Supports Structurizr DSL, PlantUML, and Mermaid formats with multi-level abstraction (Context, Container, Component, Code).
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill c4-diagram-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
