By bitsmuggler
Analyze your codebase to generate C4 architecture models in Structurizr DSL for system context, container, component, and deployment diagrams. Validate via Docker CLI and export renders to PlantUML, Mermaid, PNG, or SVG images.
A Claude Code plugin that analyses software architecture and generates C4 model using the Structurizr DSL.
workspace.dsl files following C4 model conventionsc4-skill/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── commands/
│ └── c4.md # /c4 slash command
├── skills/
│ └── c4-architecture/
│ ├── SKILL.md # Skill definition
│ ├── references/
│ │ └── structurizr-dsl-reference.md # Full DSL syntax reference
│ ├── examples/
│ │ └── example-workspace.dsl # Sample bookstore workspace
│ └── scripts/
│ └── export-diagrams.sh # Structurizr vNext export wrapper
├── .gitignore
└── README.md
git clone [email protected]:bitsmuggler/c4-skill.git ~/.claude/c4-skill
mkdir -p ~/.claude/commands
ln -s ~/.claude/c4-skill/commands/c4.md ~/.claude/commands/c4.md
docker pull structurizr/structurizr
docker pull plantuml/plantuml
Restart Claude Code (or open a new VS Code window). The /c4 command is now available globally across all projects.
/c4
Invoke the /c4 command to analyse the current project and generate a C4 model.
After generating the workspace.dsl, Claude will ask if you want to render diagram images. If you say yes, it exports to PlantUML and renders to PNG - all via Docker.
You can also run the export script manually:
bash skills/c4-architecture/scripts/export-diagrams.sh workspace.dsl plantuml/c4plantuml ./diagrams
| Level | View | Description |
|---|---|---|
| 0 | System Landscape | All systems in the enterprise |
| 1 | System Context | One system + its interactions |
| 2 | Container | Internal structure of a system |
| 3 | Component | Internal structure of a container |
| - | Deployment | Infrastructure mapping |
| - | Dynamic | Behavioural/sequence flows |
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub bitsmuggler/c4-skillComprehensive C4 architecture documentation workflow with bottom-up code analysis, component synthesis, container mapping, and context diagram generation
Codebase diagram generation for tldiagram.com
Generate architecture diagrams and technical design documents
Diagrams-as-code tools for visualizing code, data, and systems using Mermaid and PlantUML
Analyzes a codebase and generates animated HTML architecture reports — diagrams, data flows, component directories, metrics, and insights.
Codebase visualization — generates architecture, data flow, dependency, call chain, community detection, and class diagrams via Mermaid Chart MCP