Generate C4 Container diagrams as editable .drawio XML files following Simon Brown's standard from architecture diagram requests or system explanations with 3+ components.
Generate C4 Container diagrams (Simon Brown's standard) as editable .drawio files directly from Claude Code conversations.
Ask Claude Code:
/c4-diagram
Draw a C4 container diagram for an e-commerce system with:
- Web app (React), mobile app (Flutter)
- API gateway (Node.js)
- Order service, payment service (Python)
- PostgreSQL database, Redis cache
- External: Stripe payments, SendGrid email
Claude generates a .drawio file you can open and edit in draw.io:

Real output: AWS Deadline Cloud render pipeline with 3 persons, 2 system boundaries, 14 containers, 4 external systems.
Copy the skill into your project:
# Clone
git clone https://github.com/nicholaev/c4-diagram-skill.git
# Copy into your project
cp -r c4-diagram-skill /your-project/.claude/skills/c4-diagram
Or add directly to your project's .claude/skills/ directory:
cd your-project
mkdir -p .claude/skills
git clone https://github.com/nicholaev/c4-diagram-skill.git .claude/skills/c4-diagram
Then start Claude Code in your project. The /c4-diagram command will be available.
c4-diagram-skill/
├── SKILL.md # Main skill definition
├── references/
│ ├── element-templates.md # XML templates for each C4 element
│ ├── drawio-template.md # Base .drawio file structure
│ └── legend-template.md # Legend XML template
├── examples/
│ └── ecommerce-example.drawio # Example output
└── README.md
| Element | Color | Shape | When to Use |
|---|---|---|---|
| Person | #08427B | Stickman | Users, actors, roles |
| Container | #438DD5 | Rounded rect | Apps, services, APIs |
| Database | #438DD5 | Cylinder | Any data store |
| External System | #999999 | Rounded rect | Third-party services |
| System Boundary | transparent | Dashed rect | Groups your containers |
| Style | Meaning | Example |
|---|---|---|
| Solid arrow | Synchronous call | Makes API calls [REST/JSON] |
| Dashed arrow | Asynchronous flow | Publishes events [AMQP] |
Every connection is labeled with an action and protocol.
This skill generates Container diagrams (Level 2 in the C4 model):
| Level | What It Shows | This Skill |
|---|---|---|
| 1. Context | System + users + external systems | No |
| 2. Container | Containers + technologies + communication | Yes |
| 3. Component | Components inside a container | No |
| 4. Code | Classes / modules | No |
For the full C4 model specification, see c4model.com.
MIT
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 aleksnikolaev/c4-diagram-skill --plugin c4-diagramMemory compression system for Claude Code - persist context across sessions
Editorial "Web Designer" bundle for Claude Code from Antigravity Awesome Skills.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth