Documenting architecture — arc42 sections, C4 model (context, container, component) as diagrams-as-code in Mermaid or Structurizr, views for audiences, linking diagrams to ADRs, keeping docs in sync. Use to write or update architecture overviews and diagrams (architecture documentation, C4, arc42, diagrams as code, Mermaid).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Architecture Documentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-architecture-documentation)
---
name: architecture-documentation
description: Documenting architecture — arc42 sections, C4 model (context, container, component) as diagrams-as-code in Mermaid or Structurizr, views for audiences, linking diagrams to ADRs, keeping docs in sync. Use to write or update architecture overviews and diagrams (architecture documentation, C4, arc42, diagrams as code, Mermaid).
metadata:
category: documentation
---
# Architecture documentation
## Purpose
Make architecture understandable with a small set of current, layered diagrams and text.
**Use when:** after architectural changes or when onboarding needs an overview.
**Not for:** making decisions (ADRs).
## Inputs
- ADRs, designs, code structure.
## Outputs
- Architecture overview and diagram sources.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "architecture documentation"` for prior decisions, patterns and anti-patterns.
- [Architecture overview](../../../project-brain/context/architecture-overview.md)
## Steps
1. **Audience.** Pick audience and the C4 levels they need.
Done when views are chosen.
2. **Diagrams.** Draw as code; one diagram, one level.
Done when diagrams render and have legends.
3. **Narrative.** Explain key decisions with links to ADRs.
Done when no decision text is duplicated.
4. **Sync.** Update with every ADR that changes structure.
Done when diagrams match accepted ADRs.
## Best practices
- Diagrams as code in the repo.
- Show technology on containers.
## Common mistakes
- One giant diagram.
- Diagrams drifting from reality.
## Example
Container diagram (Mermaid) with web app, API, worker, Postgres, Redis, queue; each box links to its ADR.
## Reusable prompt
```text
Apply the Architecture documentation skill (.agents/skills/architecture-documentation/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Produce or update the C4 diagrams as code and the overview narrative linking to ADRs.
Return: Architecture overview and diagram sources..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```