Turns C4 model architecture diagrams into Mermaid syntax you can drop straight into your docs. Covers all four levels: context, container, component, and deployment, plus dynamic diagrams for request flows. The skill follows C4's core philosophy that context and container diagrams are enough for most teams, only going deeper when it actually adds value. Includes practical syntax for boundaries, relationships, and styling, with examples ranging from simple PWAs to microservices deployments. Good opinionated defaults about keeping diagrams under 20 elements and always labeling relationships with verbs and technology stacks. It will analyze your codebase first to understand what needs documenting.

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

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Frontend Development, Documentation, Code Review & Quality, AI & Agent Building

More from softaworks/agent-toolkit

All 43
1yaklang avatarandroid-pentesting-tricksyaklang/hack-skillsAndroid pentesting playbook. Use when testing Android applications for SSL pinning bypass, exported component abuse, WebView vulnerabilities, intent redirection4.3Kskills.sh installs
2giuseppe-trisciuoglio avatarturborepo-monorepogiuseppe-trisciuoglio/developer-kitProvides comprehensive Turborepo monorepo management guidance for TypeScript/JavaScript projects. Use when creating Turborepo workspaces, configuring turbo.json4.2Kskills.sh installs
3dpearson2699 avatarwidgetkitdpearson2699/swift-ios-skillsImplement, review, or improve WidgetKit widgets and controls. Use when building Home Screen, Lock Screen, StandBy, or CarPlay widgets with timeline providers; c4.2Kskills.sh installs
4assistant-ui avatarobservabilityassistant-ui/skillsAdds tracing, telemetry, and observability to an assistant-ui backend. Use when wiring an AI SDK route handler (streamText/generateText, toUIMessageStream, crea4.2Kskills.sh installs
5agents365-ai avatarcreating-mermaid-diagramsagents365-ai/365-skillsGenerate Mermaid diagrams (.mmd) and export to PNG/SVG/PDF using mmdc CLI or Kroki API. USE THIS SKILL when user mentions diagram, flowchart, sequence diagram, 4.2Kskills.sh installs
6agents365-ai avatarplantuml-skillagents365-ai/365-skillsUse when user requests diagrams, flowcharts, sequence diagrams, class diagrams, component diagrams, ER diagrams, architecture charts, or visualizations — includ4.1Kskills.sh installs