
C4 Architecture
Generates C4 architecture diagrams using Mermaid syntax, covering all four levels plus dynamic flow diagrams. The workflow is straightforward: it analyzes your codebase, creates diagrams at the right abstraction level, and outputs markdown files with context. The guidance here is solid, especially the emphasis on stopping at container diagrams for most teams since component and deployment diagrams often add more noise than value. Includes practical syntax examples for people, systems, containers, components, boundaries, and relationships. The styling options help when labels overlap, which happens more often than you'd think. Good for documenting existing systems or designing new ones when stakeholders need visual artifacts.
- skills.sh installs
- 430
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill c4-architecture --agent claude-codeInstalls into .claude/skills of the current project.
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 |
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Frontend Development, Documentation, Code Review & Quality
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Information Security Manager Iso27001428
- Mlflow427
- Statsmodels426
- Prompt Library423
- Chroma421
- Telegram Mini App420
- Pricing Strategy419
- Seo419
- Evaluating Llms Harness418
- Ml Paper Writing416
- Openalex Database416
- Workflow Automation416
- Backend To Frontend Handoff Docs413
- Shopify Development411
- Nextjs Supabase Auth410
- Clinicaltrials Database409
- Writing Plans408
- Geopandas407
- Bash Linux405
- App Store Optimization404
- Telegram Bot Builder403
- Treatment Plans403
- Micro Saas Launcher401
- Ai Product399