jrjsmrtn/c4-skills/c4-deployment
Claude Code and agent skill by jrjsmrtn/c4-skills
- community
Checking that the SKILL.md file is still in the repository.
Model deployment environments using C4 deployment diagrams and Structurizr DSL. Use when adding deployment views, modeling infrastructure, documenting production/staging environments, or mapping containers to infrastructure.
Install
npx vskill@latest install jrjsmrtn/c4-skills/c4-deploymentSKILL.md
The same SKILL.md was published earlier as jrjsmrtn/c4-skills/c4-deployment.
C4 Deployment
Model deployment environments using C4 deployment diagrams and Structurizr DSL.
When to Use
- Adding deployment views to an existing C4 model
- Documenting how containers map to infrastructure (servers, cloud services, Kubernetes)
- Modeling multiple environments (production, staging, development)
- Showing infrastructure components (load balancers, DNS, firewalls, CDNs)
- Communicating deployment architecture to operations teams
Required Inputs
- An existing C4 model (
workspace.dsl) with the software system and its containers already defined - Knowledge of the target environment's real infrastructure — hosts, cloud services, orchestrators, instance counts
- Which environment(s) to model (production, staging, development)
Key Concepts
Deployment Diagram Purpose
Deployment diagrams answer: "Where does it run?"
They show the mapping from C4 containers to physical or virtual infrastructure, for a specific environment. Create separate deployment views for production, staging, development, etc.
Element Types
| Element | What It Represents | Examples | |
|---|---|---|---|
| Deployment Node | Something containers are deployed onto | Physical server, VM, Docker host, Kubernetes cluster, AWS region, browser | |
| Infrastructure Node | Supporting infrastructure | Load balancer, DNS, firewall, CDN, API gateway | |
| Software System Instance | A deployed instance of a software system | Only for external systems in deployment context | |
| Container Instance | A deployed instance of a container | Your API running on a specific server |
Deployment Nodes vs Infrastructure Nodes
Deployment nodes host containers — they run your code or store your data:
- Physical servers, VMs, cloud instances (EC2, Compute Engine)
- Container runtimes (Docker, Kubernetes pods)
- PaaS platforms (Heroku, Fly.io)
- Browsers (for client-side SPAs)
- Mobile devices
Infrastructure nodes support the system but don't host containers:
- Load balancers (ALB, HAProxy, Nginx)
- DNS services (Route 53, Cloudflare)
- Firewalls, WAFs
- CDNs
- API gateways
- VPNs, bastion hosts
Structurizr DSL Syntax
Deployment Environment
Deployment Nodes
Nodes can be nested to show hierarchical infrastructure:
Instances Count
Container Instances
Software System Instances
Used for external systems in deployment context:
Infrastructure Nodes
Deployment Groups
Control which instances are linked when you have multiple replicas:
Without deployment groups, all instances of container A would be linked to all instances of container B. Deployment groups restrict relationships to instances within the same group.
Health Checks
Views
Deployment View
Styling Deployment Elements
Common Patterns
Single Server
Kubernetes
AWS with Themes
Tag elements with the exact AWS/Azure/GCP theme tag names to get provider icons.
Podman/Docker Compose (Development)
Elixir/OTP Release
A standard Phoenix/OTP release deployed as a systemd service with clustering:
Key modeling decisions for Elixir/OTP:
- The BEAM VM is a deployment node — it's the runtime that hosts the release
- A mix release is a deployment node wrapping container instances — it's the packaged artifact
- Phoenix, LiveView, and Oban are separate C4 containers because they serve distinct roles, even though they run in the same BEAM instance. They share the process space but have different responsibilities.
- Erlang distribution between nodes is an infrastructure-level relationship (node-to-node clustering)
- EPMD (Erlang Port Mapper Daemon) or DNS-based discovery can be modeled as an infrastructure node if architecturally significant
Elixir/OTP Clustering with libcluster
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/c4-deployment/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jrjsmrtn/c4-skills/c4-deployment)