c4-container

Synthesize component documentation into C4 container architecture with OpenAPI interfaces and Mermaid diagrams.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill c4-container-hcmute-rtic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: c4-container
Source: https://github.com/HCMUTE-RTIC/fit-hcmute/tree/main/.agent/skills/c4-container
Command: npx skills add https://github.com/HCMUTE-RTIC/fit-hcmute --skill c4-container-hcmute-rtic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the gap between logical software components and their physical deployment units, creating clear documentation for container-level architecture.

Core Features & Use Cases

  • Component-to-Container Mapping: Analyzes component documentation and deployment definitions to map components to specific containers.
  • API Documentation: Generates OpenAPI/Swagger specifications for all container interfaces.
  • Container Diagram Generation: Creates Mermaid C4Container diagrams to visualize deployment architecture.
  • Use Case: When deploying a microservices application, this Skill can document how each microservice (component) is packaged into a deployable container (e.g., Docker image), detailing its APIs and how it interacts with other deployed containers.

Quick Start

Use the c4-container skill to map the 'user-service' components to their deployment containers and document their APIs.

Frequently Asked Questions about c4-container

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

FAQPage Schema
How do I map software components to deployment containers for documentation?

To map components to deployment containers, you synthesize existing C4 component-level documentation with deployment definitions to generate container-level architecture documentation. This process details how each component is packaged into a deployable unit.

How do I generate API documentation for container interfaces in a microservices deployment?

You can generate API documentation for container interfaces by analyzing the mapped deployment containers. The Skill automatically creates OpenAPI and Swagger specifications to define the interactions between deployed microservices.

Can I use Mermaid diagrams to visualize container architecture?

Yes, you can visualize container architecture using Mermaid C4Container diagrams. The Skill generates these diagrams directly from your deployment definitions to illustrate the physical deployment units and their relationships.

What is the C4 container model used for in system design?

The C4 container model is used in system design to bridge the gap between logical software components and their physical deployment units. It creates clear documentation for container-level architecture, showing how microservices are packaged.

Do I need existing component documentation to map components to deployment containers?

Yes, existing C4 component-level documentation and deployment definitions are required. The Skill synthesizes these inputs to map components to specific containers, document container interfaces, and generate container diagrams.

What's the best way to document microservices deployment architecture?

The best way to document microservices deployment architecture is to map each microservice component to its deployment container, generate OpenAPI specifications for their APIs, and create Mermaid C4Container diagrams to visualize the interactions.