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
1---2name: c4-container3description: Expert C4 Container-level documentation specialist. 4category: Document Processing5source: antigravity6tags: [python, node, api, ai, agent, workflow, template, document, docker, kubernetes]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/c4-container8metadata:9 source: https://skillmd.com/skills/sickn33/c4-container10---111213# C4 Container Level: System Deployment1415## Use this skill when1617- Working on c4 container level: system deployment tasks or workflows18- Needing guidance, best practices, or checklists for c4 container level: system deployment1920## Do not use this skill when2122- The task is unrelated to c4 container level: system deployment23- You need a different domain or tool outside this scope2425## Instructions2627- Clarify goals, constraints, and required inputs.28- Apply relevant best practices and validate outcomes.29- Provide actionable steps and verification.30- If detailed examples are required, open `resources/implementation-playbook.md`.3132## Containers3334### [Container Name]3536- **Name**: [Container name]37- **Description**: [Short description of container purpose and deployment]38- **Type**: [Web Application, API, Database, Message Queue, etc.]39- **Technology**: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]40- **Deployment**: [Docker, Kubernetes, Cloud Service, etc.]4142## Purpose4344[Detailed description of what this container does and how it's deployed]4546## Components4748This container deploys the following components:4950- [Component Name]: [Description]51 - Documentation: c4-component-name.md5253## Interfaces5455### [API/Interface Name]5657- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]58- **Description**: [What this interface provides]59- **Specification**: [Link to OpenAPI/Swagger/API Spec file]60- **Endpoints**:61 - `GET /api/resource` - [Description]62 - `POST /api/resource` - [Description]6364## Dependencies6566### Containers Used6768- [Container Name]: [How it's used, communication protocol]6970### External Systems7172- [External System]: [How it's used, integration type]7374## Infrastructure7576- **Deployment Config**: [Link to Dockerfile, K8s manifest, etc.]77- **Scaling**: [Horizontal/vertical scaling strategy]78- **Resources**: [CPU, memory, storage requirements]7980## Container Diagram8182Use proper Mermaid C4Container syntax:8384```mermaid85C4Container86 title Container Diagram for [System Name]8788 Person(user, "User", "Uses the system")89 System_Boundary(system, "System Name") {90 Container(webApp, "Web Application", "Spring Boot, Java", "Provides web interface")91 Container(api, "API Application", "Node.js, Express", "Provides REST API")92 ContainerDb(database, "Database", "PostgreSQL", "Stores data")93 Container_Queue(messageQueue, "Message Queue", "RabbitMQ", "Handles async messaging")94 }95 System_Ext(external, "External System", "Third-party service")9697 Rel(user, webApp, "Uses", "HTTPS")98 Rel(webApp, api, "Makes API calls to", "JSON/HTTPS")99 Rel(api, database, "Reads from and writes to", "SQL")100 Rel(api, messageQueue, "Publishes messages to")101 Rel(api, external, "Uses", "API")102```103````104105**Key Principles** (from [c4model.com](https://c4model.com/diagrams/container)):106107- Show **high-level technology choices** (this is where technology details belong)108- Show how **responsibilities are distributed** across containers109- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.110- Show **communication protocols** between containers111- Include **external systems** that containers interact with112113````114115## API Specification Template116117For each container API, create an OpenAPI/Swagger specification:118119```yaml120openapi: 3.1.0121info:122 title: [Container Name] API123 description: [API description]124 version: 1.0.0125servers:126 - url: https://api.example.com127 description: Production server128paths:129 /api/resource:130 get:131 summary: [Operation summary]132 description: [Operation description]133 parameters:134 - name: param1135 in: query136 schema:137 type: string138 responses:139 '200':140 description: [Response description]141 content:142 application/json:143 schema:144 type: object145````146147## Example Interactions148149- "Synthesize all components into containers based on deployment definitions"150- "Map the API components to containers and document their APIs as OpenAPI specs"151- "Create container-level documentation for the microservices architecture"152- "Document container interfaces as Swagger/OpenAPI specifications"153- "Analyze Kubernetes manifests and create container documentation"154155## Key Distinctions156157- **vs C4-Component agent**: Maps components to deployment units; Component agent focuses on logical grouping158- **vs C4-Context agent**: Provides container-level detail; Context agent creates high-level system diagrams159- **vs C4-Code agent**: Focuses on deployment architecture; Code agent documents individual code elements160161## Output Examples162163When synthesizing containers, provide:164165- Clear container boundaries with deployment rationale166- Descriptive container names and deployment characteristics167- Complete API documentation with OpenAPI/Swagger specifications168- Links to all contained components169- Mermaid container diagrams showing deployment architecture170- Links to deployment