c4-model
Skill18 starsChanged 3 months agoMITView on GitHub
WHAT — C4 model methodology (Context, Container, Component, Code) guidance — what to draw at each level, when, and how to render C4-inspired diagrams via Mermaid (PlantUML/Structurizr optional advanced). Methodology not renderer.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- mryll/skillstheir own version, first seen Aug 31, 2026
- roanbrasil/engineer-grade-agent-skillstheir own version, first seen Jun 17, 2026
- muthub-ai/c4-skillstheir own version, first seen Apr 26, 2026
- cheriftj/c4-model-skilltheir own version, first seen Apr 25, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- cheriftj/c4-model-skill★ 43same name
- roanbrasil/engineer-grade-agent-skills★ 8same name
- mryll/skills★ 5same name
- muthub-ai/c4-skills★ 4same name
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 repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- mcp-auditSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Do not mandate Structurizr DSL for every diagram — Mermaid suffices for most.
- Distinctive: line 49
Do not dump PlantUML infra as separate skill — keep as optional note.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
C4 Model — Methodology Overlay (WHAT → HOW via Mermaid)
Sources (2026-08-12): Simon Brown C4 https://c4model.com/ (Context, Container, Component, Code); Structurizr DSL https://github.com/structurizr/dsl (open-source DSL, paid cloud) + structurizr-mcp https://github.com/cubical6/structurizr-mcp + go-structurizr; C4-PlantUML https://github.com/plantuml-stdlib/C4-PlantUML; overarch https://github.com/soulspace-org/overarch (PlantUML/Structurizr generation); rendering via Mermaid mermaid-js/mermaid MIT per §44.
Pack:
architecturecore (architect + ADR + TRD + threat-model + mermaid (+ C4 via mermaid)) —c4-modelteaches what to draw;mermaidrenders it. Seedocs/architecture/research-385-diagram.mdfor C4 vs Mermaid vs PlantUML/Structurizr decision (Excalidraw/draw.io REJECT).
When to use
- Need system Context / Container / Component / Code views.
Instructions
- Select level: Context (system + actors) → Container (apps/data stores) → Component (modules) → Code (classes, optional).
- Render via Mermaid (C4-inspired):
flowchart TDwithsubgraphfor boundaries, e.g.:flowchart TD user([User]) --> web[Web Container] web --> api[API Container] api --> db[(Database Container)] subgraph System Context user; web; api; db end - Advanced (optional): For consistency checks across views, use Structurizr DSL (
structurizr-cli+workspace.dsl→ PlantUML/Mermaid) or C4-PlantUML (@startuml+!include C4_Context.puml); notestructurizrCLI requires DSL file and is heavier.
Collaboration
architectdefines system →c4-modelselects C4 level →mermaidrenders →ADRrecords decision.
Anti-patterns
- Do not mandate Structurizr DSL for every diagram — Mermaid suffices for most.
- Do not dump PlantUML infra as separate skill — keep as optional note.
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.

