
C4 Architecture
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
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 -yInstalls 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
- Understand scope - Determine which C4 level(s) are needed based on audience
- Analyze codebase - Explore the system to identify components, containers, and relationships
- Generate diagrams - Create Mermaid C4 diagrams at appropriate abstraction levels
- 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) |
| 3 | C4Component | Developers | Internal components | Only if adds value |
| 4 | C4Deployment | DevOps | Infrastructure nodes | For production systems |
| - | C4Dynamic | Technical | Request 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- Skill Judge4.3K
- Agent Md Refactor4.3K
- Crafting Effective Readmes4.3K
- Session Handoff4.3K
- React Dev4.2K
- Commit Work4.2K
- Marp Slide4.2K
- React Useeffect4.2K
- Professional Communication4.1K
- Codex4.1K
- Command Creator4.1K
- Dependency Updater4.1K
- Meme Factory4.1K
- Reducing Entropy4.1K
- Ship Learn Next4K
- Gemini4K
- Openapi To Typescript4K
- Feedback Mastery4K
- Difficult Workplace Conversations4K
- Daily Meeting Update4K
- Game Changing Features4K
- Plugin Forge4K
- Naming Analyzer4K
- Lesson Learned3K
Similar to C4 Architecture
More Technical Documentation
architecture-diagramsaj-geddes/useful-ai-prompts2K installsText-based architecture diagrams in Mermaid and PlantUML, covering C4, flowchart, sequence, and deployment views.
mermaid-diagramssoftaworks/agent-toolkit5.3K installsComprehensive Mermaid guide for creating diagrams of software, databases, architecture, and processes as text.
architecture-diagram-creatormhattingpete/claude-skills-marketplace521 installsGenerates a single-file HTML architecture overview with embedded SVG data-flow diagrams for a project.
mermaid-diagram-specialistdavila7/claude-code-templates1.4K installsMermaid diagram specialist that produces flowcharts, sequence diagrams, ERDs, and architecture views for technical docs.
architecture-blueprint-generatorgithub/awesome-copilot12.4K installsGenerates a comprehensive architecture blueprint document by analyzing a codebase's stack, patterns, and conventions.
markdown-mermaid-writingk-dense-ai/scientific-agent-skills2.3K installsMarkdown and Mermaid documentation guide with 23 diagram-type references and nine document templates for structural diagrams.