Skip to content
Back to skills

Architecture Documentation

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill architecture-documentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Documentation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Documentation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-architecture-documentation/badge)](https://www.skillsdirectory.com/skills/vectora-os-architecture-documentation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.