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.
1---2name: c4-container3description: "Expert C4 Container-level documentation specialist."4version: 1.0.05author:6 name: "sickn33 / Antigravity Community"7 github: sickn338tags: [container, architecture]9category: architecture10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 source: https://skillmd.com/skills/nous-hermeshub/c4-container15 upstream: "antigravity-awesome-skills"16 risk: "unknown"17 date_added: "2026-02-27"18 original_author: "Antigravity Community"19---2021# C4 Container Level: System Deployment2223## Use this skill when2425- Working on c4 container level: system deployment tasks or workflows26- Needing guidance, best practices, or checklists for c4 container level: system deployment2728## Do not use this skill when2930- The task is unrelated to c4 container level: system deployment31- You need a different domain or tool outside this scope3233## Instructions3435- Clarify goals, constraints, and required inputs.36- Apply relevant best practices and validate outcomes.37- Provide actionable steps and verification.38- If detailed examples are required, open `resources/implementation-playbook.md`.3940## Containers4142### [Container Name]4344- **Name**: [Container name]45- **Description**: [Short description of container purpose and deployment]46- **Type**: [Web Application, API, Database, Message Queue, etc.]47- **Technology**: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]48- **Deployment**: [Docker, Kubernetes, Cloud Service, etc.]4950## Purpose5152[Detailed description of what this container does and how it's deployed]5354## Components5556This container deploys the following components:5758- [Component Name]: [Description]59 - Documentation: c4-component-name.md6061## Interfaces6263### [API/Interface Name]6465- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]66- **Description**: [What this interface provides]67- **Specification**: [Link to OpenAPI/Swagger/API Spec file]68- **Endpoints**:69 - `GET /api/resource` - [Description]70 - `POST /api/resource` - [Description]7172## Dependencies7374### Containers Used7576- [Container Name]: [How it's used, communication protocol]7778### External Systems7980- [External System]: [How it's used, integration type]8182## Infrastructure8384- **Deployment Config**: [Link to Dockerfile, K8s manifest, etc.]85- **Scaling**: [Horizontal/vertical scaling strategy]86- **Resources**: [CPU, memory, storage requirements]8788## Container Diagram8990Use proper Mermaid C4Container syntax:9192```mermaid93C4Container94 title Container Diagram for [System Name]9596 Person(user, "User", "Uses the system")97 System_Boundary(system, "System Name") {98 Container(webApp, "Web Application", "Spring Boot, Java", "Provides web interface")99 Container(api, "API Application", "Node.js, Express", "Provides REST API")100 ContainerDb(database, "Database", "PostgreSQL", "Stores data")101 Container_Queue(messageQueue, "Message Queue", "RabbitMQ", "Handles async messaging")102 }103 System_Ext(external, "External System", "Third-party service")104105 Rel(user, webApp, "Uses", "HTTPS")106 Rel(webApp, api, "Makes API calls to", "JSON/HTTPS")107 Rel(api, database, "Reads from and writes to", "SQL")108 Rel(api, messageQueue, "Publishes messages to")109 Rel(api, external, "Uses", "API")110```111````112113**Key Principles** (from [c4model.com](https://c4model.com/diagrams/container)):114115- Show **high-level technology choices** (this is where technology details belong)116- Show how **responsibilities are distributed** across containers117- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.118- Show **communication protocols** between containers119- Include **external systems** that containers interact with120121````122123## API Specification Template124125For each container API, create an OpenAPI/Swagger specification:126127```yaml128openapi: 3.1.0129info:130 title: [Container Name] API131 description: [API description]132 version: 1.0.0133servers:134 - url: https://api.example.com135 description: Production server136paths:137 /api/resource:138 get:139 summary: [Operation summary]140 description: [Operation description]141 parameters:142 - name: param1143 in: query144 schema:145 type: string146 responses:147 '200':148 description: [Response description]149 content:150 application/json:151 schema:152 type: object153````154155## Example Interactions156157- "Synthesize all components into containers based on deployment definitions"158- "Map the API components to containers and document their APIs as OpenAPI specs"159- "Create container-level documentation for the microservices architecture"160- "Document container interfaces as Swagger/OpenAPI specifications"161- "Analyze Kubernetes manifests and create container documentation"162163## Key Distinctions164165- **vs C4-Component agent**: Maps components to deployment units; Component agent focuses on logical grouping166- **vs C4-Context agent**: Provides container-level detail; Context agent creates high-level system diagrams167- **vs C4-Code agent**: Focuses on deployment architecture; Code agent documents individual code elements168169## Output Examples170171When synthesizing containers, provide:172173- Clear container boundaries with deployment rationale174- Descriptive container names and deployment characteristics175- Complete API documentation with OpenAPI/Swagger specifications176- Links to all contained components177- Mermaid container diagrams showing deployment architecture178- Links to deployment configurations (Dockerfiles, K8s manifests, etc.)179- Infrastructure requirements and scaling considerations180- Consistent documentation format across all containers181182## Limitations183- Use this skill only when the task clearly matches the scope described above.184- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.185- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.