c4-architecture
Skill9 starsChanged 6 months agoMITView on GitHub
Генерирует 4-уровневую архитектурную документацию по C4 Model (Simon Brown): Context (системный обзор) → Container (деплоймент) → Component (внутренняя структура) → Code (детали реализации). Синтезирует Mermaid C4 диаграммы на каждом уровне. Используй при документировании архитектуры для стейкхолдеров, onboarding новых членов команды, архитектурном review, подготовке к scale. Триггеры: /c4-architecture, /c4, "c4 model", "architecture diagram", "c4 diagram", "архитектурная документация", "system context diagram", "container diagram".
13 other projects use a version of this.
Adopted by
Most recently taken up by
- selamy-labs/agent-skillstheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
- fsmiamoto/skillstheir own version, first seen Nov 1, 2026
- xiongxianfei/skillsmiththeir own version, first seen Nov 1, 2026
- coco-research/cocotheir own version, first seen Nov 1, 2026
- imMamdouhaboammar/kaku-chatgpt-harnesstheir own version, first seen Oct 25, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- microsoft/hve-core★ 1.6ksame name
- coco-research/coco★ 797same name
- bitsmuggler/c4-skill★ 56same name
- delorenj/skills★ 17same name
- eugenepyvovarov/mcpbundler-agent-skills-marketplace★ 12same name
- shalomb/agent-skills★ 3same name
- xiongxianfei/skillsmith★ 2same name
- rohinipachanta/claude-code-quickstart★ 1same name
- fsmiamoto/skills★ 0same name
- imMamdouhaboammar/kaku-chatgpt-harness★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository164 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- agents/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- claude-md/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- insight-architectSkill
- agent-teamsSkill
- brainstormingSkill
- claim-decomposerSkill
- context-engineeringSkill
- dispatcherSkill
- git-worktreesSkill
- hd-mavp-routerSkill
- mentor-modeSkill
- reference-registrySkill
- routing-policySkill
- skill-self-updateSkill
- tdd-workflowSkill
- ab-testSkill
- academic-researchSkill
- advanced-methodology-extensionsSkill
- agent-governanceSkill
- ai-hyp-gateSkill
- algorithm-designSkill
- analystSkill
- archcode-genomicsSkill
- arm-cortex-microcontrollersSkill
- atomizeSkill
- backward-traceabilitySkill
- boyko-constraint-engineSkill
- boyko-epistemic-auditSkill
- boyko-goal-expansion-100Skill
- boyko-knowledge-architectureSkill
- boyko-leverage-mapSkill
- boyko-methodSkill
- boyko-preflightSkill
- boyko-project-radarSkill
- boyko-rippleSkill
- boyko-scientific-consortiumSkill
- boyko-specialistSkill
- boyko-toolcheckSkill
- boyko-triangle-auditSkill
- boyko-why-ladderSkill
- browser-actSkill
- build-autoSkill
- career-prepSkill
- changelog-genSkill
- citation-managementSkill
- code-debuggingSkill
- code-materialitySkill
- codex-skepticSkill
- codex-solverSkill
- codex-tracySkill
- combinatorial-creativitySkill
- common-groundSkill
- conductorSkill
- consilienceSkill
- construct-measurement-gateSkill
- convertSkill
- The first 60 shown.
The file
Files
<!-- BSV — Brief Skill View | поиск: BSV
Скил : c4-architecture
TL;DR : 4-уровневая архитектурная документация с Mermaid диаграммами (C4 Model)
Вызов : /c4-architecture, /c4, c4 model, architecture diagram
НЕ для : Архитектурные решения (→ /architect); код review (→ /reviewer)
-->C4 Architecture — 4-Level Documentation
Зачем C4
Одна диаграмма не может показать всё. C4 Model (Simon Brown) решает это:
- Non-technical stakeholders видят только Level 1 (Context)
- Architects работают с Level 2-3 (Container + Component)
- Developers используют Level 4 (Code)
Каждый уровень — зум в предыдущий. Никакого информационного перегруза.
Level 1 — Context Diagram
Аудитория: CEO, product managers, external partners — все кто не знает internals.
Что показывает: Система как чёрный ящик + кто её использует + с чем она интегрируется.
Шаблон:
# System Context: [System Name]
## System Overview
[1-2 предложения — что делает система для кого]
## Users & Personas
| Persona | Role | Key Actions |
|---------|------|-------------|
| [Human user] | [Role] | [What they do] |
| [External system] | [Integration] | [API/data flow] |
## External Dependencies
| System | Direction | Protocol | Purpose |
|--------|-----------|----------|---------|
| [Name] | outbound | REST | [Why] |
## User Journeys
### [Feature]: [Persona] Flow
1. [Step 1]
2. [Step 2]Mermaid диаграмма:
C4Context
title System Context for [System Name]
Person(user, "User", "Primary user")
System(system, "[System Name]", "Core system")
System_Ext(ext, "External API", "Third-party service")
Rel(user, system, "Uses")
Rel(system, ext, "Calls", "REST/HTTPS")Level 2 — Container Diagram
Аудитория: Software architects, senior developers.
Что показывает: Deployable units (services, databases, frontends) и их связи.
Шаблон:
# Container Diagram: [System Name]
## Containers
| Container | Tech | Responsibility |
|-----------|------|----------------|
| Web App | React + TS | UI layer |
| API Server | FastAPI | Business logic |
| Database | PostgreSQL | Persistence |
| Cache | Redis | Session + rate limit |
## Data Flows
| From | To | Protocol | Data |
|------|----|----------|------|
| Web App | API | HTTPS/REST | User requests |
| API | DB | TCP | Queries |Mermaid диаграмма:
C4Container
title Container Diagram for [System Name]
Person(user, "User")
Container(webapp, "Web App", "React", "SPA")
Container(api, "API", "FastAPI", "REST endpoints")
ContainerDb(db, "Database", "PostgreSQL", "User data")
Rel(user, webapp, "Uses", "HTTPS")
Rel(webapp, api, "Calls", "REST/JSON")
Rel(api, db, "Reads/Writes", "SQL")Level 3 — Component Diagram
Аудитория: Software developers в команде.
Что показывает: Компоненты внутри одного контейнера (модули, слои, сервисы).
Шаблон:
# Component Diagram: [Container Name]
## Components
| Component | Responsibility | Interface |
|-----------|----------------|-----------|
| AuthHandler | JWT validation | FastAPI dependency |
| UserService | User CRUD | Domain service |
| EmailNotifier | Send emails | Async worker |
## Dependencies
[AuthHandler] → [UserService]: validates user
[UserService] → [EmailNotifier]: triggers on registrationMermaid диаграмма:
C4Component
title Components in [Container Name]
Container_Boundary(api, "API Container") {
Component(auth, "AuthHandler", "FastAPI", "JWT validation")
Component(users, "UserService", "Python", "User CRUD")
Component(email, "EmailNotifier", "Celery", "Async emails")
}
Rel(auth, users, "Validates")
Rel(users, email, "Triggers")Level 4 — Code Level
Аудитория: Developers реализующие конкретный компонент.
Что показывает: Классы, функции, key algorithms — только самое важное, не весь код.
# Code Level: [Component Name]
## Key Classes / Functions
| Name | Type | Responsibility |
|------|------|----------------|
| `AuthHandler.verify_token()` | method | JWT decode + validate |
| `UserService.create_user()` | method | User creation + email trigger |
## Critical Algorithms
[Только если non-obvious: rate limiting logic, caching strategy, etc.]
## Non-Obvious Decisions
[Причины важных implementation choices — для future developers]Workflow: Документировать Проект
Шаг 1: Читай существующий код (CLAUDE.md, main files, README)
Шаг 2: Level 1 → найди users + external systems
Шаг 3: Level 2 → найди deployable units из docker-compose / infra files
Шаг 4: Level 3 → для ключевых containers разбери modules
Шаг 5: Level 4 → только для complex/critical components
Шаг 6: Сохрани в docs/architecture/ (один файл на уровень)Правило: Начни с Level 1. Углубляйся только если стейкхолдер просит детали.
Связанные скилы
architect— принимает архитектурные решения (C4 документирует их)conductor— context артефакты проекта (tech-stack.md дополняет C4)reviewer— architectural review используя C4 как baseline
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

