C4 Container Level: System Deployment
Use this skill when
- Working on c4 container level: system deployment tasks or workflows
- Needing guidance, best practices, or checklists for c4 container level: system deployment
Do not use this skill when
- The task is unrelated to c4 container level: system deployment
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Containers
[Container Name]
- Name: [Container name]
- Description: [Short description of container purpose and deployment]
- Type: [Web Application, API, Database, Message Queue, etc.]
- Technology: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]
- Deployment: [Docker, Kubernetes, Cloud Service, etc.]
Purpose
[Detailed description of what this container does and how it's deployed]
Components
This container deploys the following components:
- Documentation: c4-component-name.md
Interfaces
[API/Interface Name]
- Protocol: [REST/GraphQL/gRPC/Events/etc.]
- Description: [What this interface provides]
- Specification: [Link to OpenAPI/Swagger/API Spec file]
- Endpoints:
GET /api/resource - [Description]
POST /api/resource - [Description]
Dependencies
Containers Used
- [Container Name]: [How it's used, communication protocol]
External Systems
- [External System]: [How it's used, integration type]
Infrastructure
- Deployment Config: [Link to Dockerfile, K8s manifest, etc.]
- Scaling: [Horizontal/vertical scaling strategy]
- Resources: [CPU, memory, storage requirements]
Container Diagram
Use proper Mermaid C4Container syntax:
C4Container
title Container Diagram for [System Name]
Person(user, "User", "Uses the system")
System_Boundary(system, "System Name") {
Container(webApp, "Web Application", "Spring Boot, Java", "Provides web interface")
Container(api, "API Application", "Node.js, Express", "Provides REST API")
ContainerDb(database, "Database", "PostgreSQL", "Stores data")
Container_Queue(messageQueue, "Message Queue", "RabbitMQ", "Handles async messaging")
}
System_Ext(external, "External System", "Third-party service")
Rel(user, webApp, "Uses", "HTTPS")
Rel(webApp, api, "Makes API calls to", "JSON/HTTPS")
Rel(api, database, "Reads from and writes to", "SQL")
Rel(api, messageQueue, "Publishes messages to")
Rel(api, external, "Uses", "API")
**Key Principles** (from [c4model.com](https://c4model.com/diagrams/container)):
- Show **high-level technology choices** (this is where technology details belong)
- Show how **responsibilities are distributed** across containers
- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.
- Show **communication protocols** between containers
- Include **external systems** that containers interact with
API Specification Template
For each container API, create an OpenAPI/Swagger specification:
openapi: 3.1.0
info:
title: [Container Name] API
description: [API description]
version: 1.0.0
servers:
- url: https://api.example.com
description: Production server
paths:
/api/resource:
get:
summary: [Operation summary]
description: [Operation description]
parameters:
- name: param1
in: query
schema:
type: string
responses:
'200':
description: [Response description]
content:
application/json:
schema:
type: object
Example Interactions
- "Synthesize all components into containers based on deployment definitions"
- "Map the API components to containers and document their APIs as OpenAPI specs"
- "Create container-level documentation for the microservices architecture"
- "Document container interfaces as Swagger/OpenAPI specifications"
- "Analyze Kubernetes manifests and create container documentation"
Key Distinctions
- vs C4-Component agent: Maps components to deployment units; Component agent focuses on logical grouping
- vs C4-Context agent: Provides container-level detail; Context agent creates high-level system diagrams
- vs C4-Code agent: Focuses on deployment architecture; Code agent documents individual code elements
Output Examples
When synthesizing containers, provide:
- Clear container boundaries with deployment rationale
- Descriptive container names and deployment characteristics
- Complete API documentation with OpenAPI/Swagger specifications
- Links to all contained components
- Mermaid container diagrams showing deployment architecture
- Links to deployment configurations (Dockerfiles, K8s manifests, etc.)
- Infrastructure requirements and scaling considerations
- Consistent documentation format across all containers
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Source: sickn33/agentic-awesome-skills → skills/c4-container/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/c4-container/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/c4-container/SKILL.md
1---2name: c4-container3description: Expert C4 Container-level documentation specialist.4---5
6
7# C4 Container Level: System Deployment
8
9## Use this skill when
10
11- Working on c4 container level: system deployment tasks or workflows
12- Needing guidance, best practices, or checklists for c4 container level: system deployment
13
14## Do not use this skill when
15
16- The task is unrelated to c4 container level: system deployment
17- You need a different domain or tool outside this scope
18
19## Instructions
20
21- Clarify goals, constraints, and required inputs.
22- Apply relevant best practices and validate outcomes.
23- Provide actionable steps and verification.
24- If detailed examples are required, open `resources/implementation-playbook.md`.
25
26## Containers
27
28### [Container Name]
29
30- **Name**: [Container name]
31- **Description**: [Short description of container purpose and deployment]
32- **Type**: [Web Application, API, Database, Message Queue, etc.]
33- **Technology**: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]
34- **Deployment**: [Docker, Kubernetes, Cloud Service, etc.]
35
36## Purpose
37
38[Detailed description of what this container does and how it's deployed]
39
40## Components
41
42This container deploys the following components:
43
44- [Component Name]: [Description]
45 - Documentation: c4-component-name.md
46
47## Interfaces
48
49### [API/Interface Name]
50
51- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]
52- **Description**: [What this interface provides]
53- **Specification**: [Link to OpenAPI/Swagger/API Spec file]
54- **Endpoints**:
55 - `GET /api/resource` - [Description]
56 - `POST /api/resource` - [Description]
57
58## Dependencies
59
60### Containers Used
61
62- [Container Name]: [How it's used, communication protocol]
63
64### External Systems
65
66- [External System]: [How it's used, integration type]
67
68## Infrastructure
69
70- **Deployment Config**: [Link to Dockerfile, K8s manifest, etc.]
71- **Scaling**: [Horizontal/vertical scaling strategy]
72- **Resources**: [CPU, memory, storage requirements]
73
74## Container Diagram
75
76Use proper Mermaid C4Container syntax:
77
78```mermaid
79C4Container
80 title Container Diagram for [System Name]
81
82 Person(user, "User", "Uses the system")
83 System_Boundary(system, "System Name") {
84 Container(webApp, "Web Application", "Spring Boot, Java", "Provides web interface")
85 Container(api, "API Application", "Node.js, Express", "Provides REST API")
86 ContainerDb(database, "Database", "PostgreSQL", "Stores data")
87 Container_Queue(messageQueue, "Message Queue", "RabbitMQ", "Handles async messaging")
88 }
89 System_Ext(external, "External System", "Third-party service")
90
91 Rel(user, webApp, "Uses", "HTTPS")
92 Rel(webApp, api, "Makes API calls to", "JSON/HTTPS")
93 Rel(api, database, "Reads from and writes to", "SQL")
94 Rel(api, messageQueue, "Publishes messages to")
95 Rel(api, external, "Uses", "API")
96```
97````
98
99**Key Principles** (from [c4model.com](https://c4model.com/diagrams/container)):
100
101- Show **high-level technology choices** (this is where technology details belong)
102- Show how **responsibilities are distributed** across containers
103- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.
104- Show **communication protocols** between containers
105- Include **external systems** that containers interact with
106
107````
108
109## API Specification Template
110
111For each container API, create an OpenAPI/Swagger specification:
112
113```yaml
114openapi: 3.1.0
115info:
116 title: [Container Name] API
117 description: [API description]
118 version: 1.0.0
119servers:
120 - url: https://api.example.com
121 description: Production server
122paths:
123 /api/resource:
124 get:
125 summary: [Operation summary]
126 description: [Operation description]
127 parameters:
128 - name: param1
129 in: query
130 schema:
131 type: string
132 responses:
133 '200':
134 description: [Response description]
135 content:
136 application/json:
137 schema:
138 type: object
139````
140
141## Example Interactions
142
143- "Synthesize all components into containers based on deployment definitions"
144- "Map the API components to containers and document their APIs as OpenAPI specs"
145- "Create container-level documentation for the microservices architecture"
146- "Document container interfaces as Swagger/OpenAPI specifications"
147- "Analyze Kubernetes manifests and create container documentation"
148
149## Key Distinctions
150
151- **vs C4-Component agent**: Maps components to deployment units; Component agent focuses on logical grouping
152- **vs C4-Context agent**: Provides container-level detail; Context agent creates high-level system diagrams
153- **vs C4-Code agent**: Focuses on deployment architecture; Code agent documents individual code elements
154
155## Output Examples
156
157When synthesizing containers, provide:
158
159- Clear container boundaries with deployment rationale
160- Descriptive container names and deployment characteristics
161- Complete API documentation with OpenAPI/Swagger specifications
162- Links to all contained components
163- Mermaid container diagrams showing deployment architecture
164- Links to deployment configurations (Dockerfiles, K8s manifests, etc.)
165- Infrastructure requirements and scaling considerations
166- Consistent documentation format across all containers
167
168## Limitations
169- Use this skill only when the task clearly matches the scope described above.
170- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
171- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
172
173---
174
175**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/c4-container/SKILL.md`
176
177**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/c4-container/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/c4-container/SKILL.md`