New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Generates C4 model architecture diagrams in Mermaid for system context, containers, components, deployment, and request flows.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
4.3K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the workflow from scoping the audience and level to analyzing the codebase, generating diagrams, and documenting them in markdown
  • Includes Quick Start examples for C4Context, C4Container, C4Component, C4Dynamic, and C4Deployment, plus element, relationship, boundary, and styling syntax
  • Enforces rules such as one unidirectional arrow per relationship, labeled actions with technology, and no more than 20 elements per diagram
  • Designed for developers and DevOps teams documenting system structure, with Context and Container diagrams as the required baseline

Install

$ npx -y skills add softaworks/agent-toolkit --skill c4-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

LevelDiagram TypeAudienceShowsWhen to Create
1C4ContextEveryoneSystem + external actorsAlways (required)
2C4ContainerTechnicalApps, databases, servicesAlways (required)
3C4ComponentDevelopersInternal componentsOnly if adds value
4C4DeploymentDevOpsInfrastructure nodesFor production systems
-C4DynamicTechnicalRequest flows (numbered)For complex workflows

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Technical Documentation, Design & UI/UX

More from softaworks/agent-toolkit

All 40

Similar to C4 Architecture

More Technical Documentation