c4-architecture

Installation
Summary

Generate software architecture documentation using C4 model Mermaid diagrams.

  • Supports all four C4 levels: System Context, Container, Component, and Deployment diagrams, plus Dynamic diagrams for request flows
  • Includes syntax and examples for people, systems, containers, components, boundaries, and relationships with directional and styling options
  • Provides microservices modeling guidance for single-team and multi-team ownership, plus event-driven architecture patterns
  • Recommends audience-appropriate diagram selection and best practices like staying under 20 elements per diagram and using unidirectional arrows
SKILL.md

C4 Architecture Documentation

Generate software architecture documentation using C4 model diagrams in Mermaid syntax.

Workflow

  1. Understand scope - Determine which C4 level(s) are needed based on audience
  2. Analyze codebase - Explore the system to identify components, containers, and relationships
  3. Generate diagrams - Create Mermaid C4 diagrams at appropriate abstraction levels
  4. Document - Write diagrams to markdown files with explanatory context

C4 Diagram Levels

Select the appropriate level based on the documentation need:

Level Diagram Type Audience Shows When to Create
1 C4Context Everyone System + external actors Always (required)
2 C4Container Technical Apps, databases, services Always (required)
Related skills

More from softaworks/agent-toolkit

Installs
3.7K
GitHub Stars
1.8K
First Seen
Jan 20, 2026