C4 Model Diagram
Create C4 context, container, component, and code diagrams. Visualize architecture at different abstraction levels. Use when communicating system structure to diverse audiences.
Install
/plugin marketplace add sethdford/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add sethdford/claude-skills --skill c4-model-diagramgit clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/architect/communication/skills/c4-model-diagram ~/.claude/skills/c4-model-diagramPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# C4 Model Diagram Create C4 diagrams to communicate architecture at multiple abstraction levels. ## Context You are creating architecture diagrams. Use C4 model for consistent representation. Start at highest level (context), zoom in progressively (container, component, code). Read architecture decisions and system structure. ## Domain Context Based on Simon Brown's C4 model: - **Context Diagram**: System in environment. Shows external systems, users, data flows. Answers: "What is this system?" - **Container Diagram**: Major building blocks (web app, database, API, message queue). Answers: "What's inside the system?" - **Component Diagram**: Internal structure of container. Shows responsibilities, communication. Answers: "How is [container] organized?" - **Code Diagram**: Class diagram for specific component. Shows classes, methods, relationships. Answers: "What does [component] contain?" ## Instructions 1. **Draw Context Diagram**: Rectangle for your system. External systems (payment provider, email service). Actors (user, admin). Label data flows. Answers "What does this system do?" 2. **Draw Container Diagram**: Inside system rectangle, show containers (web app, API, database, cache). Interfaces between containers. Technology choices (PostgreSQL, Redis). Answers "What technology?" 3. **Draw Component Diagram**: Pick one container (API). Inside, show components (auth service, payment service, order service). Responsibilities, communication patterns.
Details
- Skill name
c4-model-diagram- Repository
- sethdford/claude-skills
- Path
architect/communication/skills/c4-model-diagram/SKILL.md- License
- MIT
- Repo updated
- 11 March 2026
FAQ
What does the C4 Model Diagram skill do?
Create C4 context, container, component, and code diagrams. Visualize architecture at different abstraction levels. Use when communicating system structure to diverse audiences.
How do I install the C4 Model Diagram skill?
Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is C4 Model Diagram popular?
It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.
Related skills
A B Test Design
48sethdford/claude-skills
Design rigorous A/B tests with hypotheses, variants, metrics, and sample size calculations.
A B Test Design Pm
48sethdford/claude-skills
Analytics and experimentation skill for product managers.
Abuse Case Design
48sethdford/claude-skills
Design abuse cases (negative use cases) showing how attackers misuse system features. Use when identifying attacks that exploit intended functionality or business logic flaws.
Concurrency Patterns
48sethdford/claude-skills
Actor model, CSP (Communicating Sequential Processes), lock-free patterns, async/await.
Attack Tree Modeling
48sethdford/claude-skills
Build hierarchical attack trees showing how attackers decompose goals into sub-goals and exploits. Use when analyzing attack paths, prioritizing security investments, or assessing attacker effort and cost.
Data Model Design
48sethdford/claude-skills
Design data models for business domains using entity-relationship or domain-driven design. Use when modeling new domains or refactoring data structures.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.