A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
C4 Container Diagram skill for Claude Code — generate editable .drawio files following Simon Brown's C4 model standard
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
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini