c4-architecture
Generate architecture documentation using C4 model Mermaid diagrams.
Skill by RamonsDka
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ramonsdka-c4-architecture
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
c4-architecture- Description
- Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context/container/component/deployment diagrams. Triggers include "architecture diagram", "C4 diagram", "system context", "container diagram", "component diagram", "deployment diagram", "document architecture", "visualize architecture".
- License
- MIT
- Instructions
- 292 lines in SKILL.md · view on GitHub
Files (5)
- README.md
- SKILL.md
- advanced-patterns.md · references/
- c4-syntax.md · references/
- common-mistakes.md · references/
SKILL.md (first lines)
# 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) |
| 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 |
**Key Insight:** "Context + Container diagrams are sufficient for most software development teams." Only create Component/Code diagrams when they genuinely add value.
## Quick Start Examples
### System Context (Level 1)
```mermaid
C4Context
title System Context - Workout Tracker
Person(user, "User", "Tracks workouts and exercises")
System(app, "Workout Tracker", "Vue PWA for tracking strength and CrossFit workouts")
System_Ext(browser, "Web Browser", "Stores data in IndexedDB")
Rel(user, app, "Uses")
Rel(app, browser, "Persists data to", "IndexedDB")
```
### Container Diagram (Level 2)
```mermaid
C4Container
title Container Diagram - Workout Tracker
Person(user, "User", "Tracks workouts")
Container_Boundary(app, "Workout Tracker PWA") {
Container(spa, "SPA", "Vue 3, TypeScript", "Single-page application")
Container(pinia, "State Management", "Pinia", "Manages application state")
ContainerDb(indexeddb, "IndexedDB", "Dexie", "Local workout storage")
}
Rel(user, spa, "Uses")
Rel(spa, pinia, "Reads/writes state")
Rel(pinia, indexeddb, "Persists", "Dexie ORM")
```
### Component Diagram (Level 3)
```mermaid
C4Component
title Component Diagram - Workout Feature
Container(views, "Views", "Vue Router pages")
Container_Boundary(workout, "Workout Feature") {
Component(useWorkout, "useWorkout", "Composable", "Workout execution state")
Component(useTimer, "useTimer", "Composable", "Timer state machine")
Component(workoutRepo, "WorkoutRepository", "Dexie", "Workout persistence")
}
Rel(views, useWorkout, "Uses")
Rel(useWorkout, useTimer, "Controls")
Rel(useWorkout, workoutRepo, "Saves to")
```
### Dynamic Diagram (Request Flow)
```mermaid
C4Dynamic
title Dynamic Diagram - User Sign In Flow
ContainerDb(db, "Database", "PostgreSQL", "User credentials")
Container(spa, "Single-Page App", "React", "Banking UI")
Container_Boundary(api, "API Application") {
Component(signIn, "Sign In Controller", "Express", "Auth endpoint")
Component(security, "Security Service", "JWT", "Validates credentials")
}
Rel(spa, signIn, "1. Submit credentials", "JSON/HTTPS")
Rel(signIn, security, "2. Validate")
Rel(security, db, "3. Query user", "SQL")
UpdateRelStyle(spa, signIn, $textColor="blue", $offsetY="-30")
```
### Deployment Diagram
```mermaid
C4Deployment
title Deployment Diagram - Production
Deployment_Node(browser, "Customer Browser", "Chrome/Firefox") {
Container(spa, "SPA", "React", "Web application")
}
Deployment_Node(aws, "AWS Cloud", "us-east-1") {
Deployment_Node(ecs, "ECS Cluster", "Fargate") {
Container(api, "API Service", "Node.js", "REST API")
}
Deployment_Node(rds, "RDS", "db.r5.large") {
ContainerDb(db, "Database", "PostgreSQL", "Application data")
}
}
Rel(spa, api, "API calls", "HTTPS")
Rel(api, db, "Reads/writes", "JDBC")
```
## Element SyntaxFrom RamonsDka/the-architect-overlay, MIT.
More from RamonsDka/the-architect-overlay
- 0.417score
algorithmic-art
RamonsDka
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
brand-guidelines
RamonsDka
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
canvas-design
RamonsDka
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillDFreshness: D★ 2Claude Code +9 - 0.376score
branch-pr
gentleman-programming
PR creation workflow for Agent Teams Lite following the issue-first enforcement system.
SkillDFreshness: D★ 2Claude Code +9 - 0.376score
asp-net-scraping
gentleman-programming
Técnicas y mejores prácticas para hacer scraping en portales ASP.NET WebForms.
SkillDFreshness: D★ 2Claude Code +9 - 0.365score
_shared
gentleman-programming
Internal shared references for SDD skills.
SkillDFreshness: D★ 2Claude Code +9 - 0.234score
aws-advisor
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9 - 0.231score
coding-guidelines
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9 - 0.231score
animation-systems
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9 - 0.231score
animejs
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9 - 0.231score
3d-web-experience
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9 - 0.228score
best-practices
RamonsDka
No description from the publisher yet.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 19, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.555score
c4-architecture
manu14357
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: C★ 16Claude Code +9 - 0.339score
c4-architecture
dushyantkhosla
Generate architecture documentation using C4 model Mermaid diagrams.
SkillAFreshness: AClaude Code +9 - 0.285score
c4-architecture
ZiadNagar
Generate architecture documentation using C4 model Mermaid diagrams.
SkillCFreshness: CClaude Code +9 - 0.278score
c4-architecture
Microck
Generate architecture documentation using C4 model Mermaid diagrams.
SkillDFreshness: D★ 5Claude Code +9 - 0.266score
c4-architecture
fefogarcia
Generate architecture documentation using C4 model Mermaid diagrams.
SkillDFreshness: D★ 2Claude Code +9
More from RamonsDka
- 0.417score
brand-guidelines
RamonsDka
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
canvas-design
RamonsDka
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillDFreshness: D★ 2Claude Code +9 - 0.417score
algorithmic-art
RamonsDka
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillDFreshness: D★ 2Claude Code +9
Cite this page
c4-architecture skill. Agent Mart. https://agentmart.dev/skills/ramonsdka-c4-architecture (last updated 2026-10-24)