c4-architecture · softaworks — Claude Code plugin: C4 architecture diagrams
c4-architecture — a Claude Code plugin that generates architecture diagrams in C4 notation as Mermaid graphs. Use it to visualize system structure, document components, and show how parts interact.
MIT ★ 2,707 updated 2026-03-05
/plugin marketplace add softaworks/agent-toolkit
/plugin install c4-architecture@agent-toolkitWhat c4-architecture does
The plugin creates architecture diagrams following the C4 model, which breaks down a system into context, containers, components, and code levels. Diagrams render as Mermaid visuals, viewable directly in Claude Code or embedded in docs.
Works for microservices, external service integrations, and module dependencies. Helpful when you need to map out how a system is built before writing code or discussing design with your team.
Diagrams build from text descriptions that Claude generates on request. The Mermaid syntax is standard, so you can edit the output or move it elsewhere.
What it helps with
- Visualize microservice architecture and how services connect
- Document multi-level system structure in C4 notation
- Create diagrams showing component interaction and external APIs
- Generate Mermaid graphs from architecture descriptions
Example prompts for the agent
- Draw a C4 diagram for an e-commerce platform with API, database, and payment service
- Create a C4 architecture diagram for our microservice, showing containers and components
- Generate a Mermaid diagram of how a mobile app talks to the backend and third-party APIs
How to install c4-architecture
Plugin marketplace
/plugin marketplace add softaworks/agent-toolkit/plugin install c4-architecture@agent-toolkitStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about c4-architecture
How do I install c4-architecture in Claude Code?
Run two commands in order: /plugin marketplace add softaworks/agent-toolkit, then /plugin install c4-architecture@agent-toolkit. The plugin will be ready in Claude Code.
What does the c4-architecture plugin do?
It generates C4 model architecture diagrams as Mermaid graphs. You get a visual breakdown of your system at different levels, from overall context down to individual components.
What format are the diagrams in?
Diagrams use Mermaid syntax, which Claude Code renders as visuals. You can copy, edit, or paste them into documentation.
Source text
c4-architecture · MIT
Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure. Skills: skills/c4-architecture
© softaworks · MIT · softaworks/agent-toolkit
Similar plugins
All plugins for Writing and docs →c4-architecture by other authors comes first.