c4-container

Generates C4 Container-level architecture documentation with Mermaid diagrams and OpenAPI specifications.

2|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/monang404/lunawave --skill c4-container-monang404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: c4-container
Source: https://github.com/monang404/lunawave/tree/main/.agent/skills/c4-container
Command: npx skills add https://github.com/monang404/lunawave --skill c4-container-monang404

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Documenting how a system's components map to deployable units is time-consuming and often inconsistent. This Skill synthesizes component-level documentation into structured C4 Container-level architecture, including deployment details, interfaces, and diagrams. ## Core Features & Use Cases - Container Synthesis: Maps logical components to deployment containers (web apps, APIs, databases, message queues) with technology and deployment details. - Interface Documentation: Documents container APIs as OpenAPI/Swagger specifications with endpoints and protocols. - Diagram Generation: Produces Mermaid C4Container diagrams showing containers, external systems, and communication protocols. - Use Case: After documenting individual components of a microservices system, use this Skill to group them into deployable containers, document their REST APIs, and generate a container diagram for architecture review. ## Quick Start Synthesize all documented components into C4 container-level documentation with Mermaid diagrams and OpenAPI specs for each container interface.

Frequently Asked Questions about c4-container

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a C4 container diagram for my system?▼

Group your documented components into deployable units such as web applications, APIs, databases, and message queues, then describe each with its technology and deployment target. Use Mermaid C4Container syntax to render the diagram showing containers, external systems, and communication protocols.

What is the difference between C4 container and component diagrams?▼

Container diagrams show deployable units like applications and databases with their technology choices, while component diagrams show logical groupings inside a single container. The container level is where high-level technology decisions and communication protocols belong.

How do I document container APIs as OpenAPI specifications?▼

Create an OpenAPI 3.1 YAML file per container API defining the title, version, server URLs, and paths with operations, parameters, and response schemas. Link each specification from the container's interface documentation section.

When should I use container-level documentation instead of context diagrams?▼

Use container-level documentation when you need to show deployment architecture, technology choices, and inter-service communication. Context diagrams are better for high-level system overviews showing users and external systems without internal structure.

What information belongs in a C4 container description?▼

Include the container name, type, primary technologies, deployment mechanism, contained components, exposed interfaces with protocols, dependencies on other containers and external systems, and infrastructure requirements such as scaling strategy and resources.