# Arc42 C4

> arc42 architecture documentation template (all 12 sections) combined with C4 diagrams (Context, Container, Component, Deployment) in PlantUML. The standard for architecture documentation in this setup. Maps each section to the Claude skills that help fill it.

- **Type:** Skill
- **Install:** `agentstack add skill-marvinrichter-clarc-arc42-c4`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [marvinrichter](https://agentstack.voostack.com/s/marvinrichter)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [marvinrichter](https://github.com/marvinrichter)
- **Source:** https://github.com/marvinrichter/clarc/tree/main/skills/arc42-c4
- **Website:** https://marvinrichter.github.io/clarc

## Install

```sh
agentstack add skill-marvinrichter-clarc-arc42-c4
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# arc42 + C4 Skill

arc42 is a template for architecture documentation with 12 sections. C4 is a diagram model (Context → Container → Component → Code) that maps directly into arc42's structural sections.

> Do not use arc42 for projects under 10 files — use a simple README instead.

## When to Activate

- Generating or updating project architecture documentation
- Onboarding a new engineer to the system architecture
- After a major architectural decision (ADR) that changes the structure
- Before a large feature that touches multiple system layers
- When someone asks "how does this system actually work?"

---

## arc42 Sections — Quick Reference

| # | Section | C4 Diagram | Claude Skill |
|---|---------|-----------|--------------|
| 1 | Introduction & Goals | — | commands/prd.md (requirements) |
| 2 | Architecture Constraints | — | adr-writing (constraints documented) |
| 3 | System Scope & Context | C4 Level 1: Context | — |
| 4 | Solution Strategy | — | agents/solution-designer |
| 5 | Building Block View | C4 Level 2: Container + Level 3: Component | — |
| 6 | Runtime View | Sequence Diagrams | skills/api-contract |
| 7 | Deployment View | C4 Deployment Diagram | skills/kubernetes-patterns, deployment-patterns |
| 8 | Cross-cutting Concepts | — | observability, security-review, multi-tenancy, caching-patterns |
| 9 | Architecture Decisions | — | skills/adr-writing, commands/explore |
| 10 | Quality Requirements | — | skills/load-testing |
| 11 | Risks & Technical Debt | — | — |
| 12 | Glossary | — | — |

---

## Full arc42 Document Template

Full template (all 12 sections with C4 PlantUML diagrams): `docs/templates/arc42-template.md`

Save the generated document to: `docs/architecture/arc42.md`
Diagrams to: `docs/architecture/diagrams/*.puml`

---

## Maintenance Rules

- **Update Section 3** when: system integrates a new external service
- **Update Section 5** when: a new container (service, DB, cache) is added or removed
- **Update Section 7** when: deployment infrastructure changes (new region, k8s upgrade)
- **Update Section 8** when: a new cross-cutting pattern is established (new logging standard, new auth flow)
- **Update Section 9** when: a new ADR is accepted — add it to the index table
- **Update Section 11** when: a new risk is identified or debt is resolved

## Anti-Patterns

- Writing Section 5 without a real diagram — prose alone is insufficient for building blocks
- Putting implementation details in Section 6 (runtime view) instead of sequence diagrams
- Keeping ADRs only in Section 9 without their own `docs/decisions/` file — always both
- Letting arc42 go stale — out-of-date architecture docs are worse than none (mislead new engineers)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [marvinrichter](https://github.com/marvinrichter)
- **Source:** [marvinrichter/clarc](https://github.com/marvinrichter/clarc)
- **License:** MIT
- **Homepage:** https://marvinrichter.github.io/clarc

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-marvinrichter-clarc-arc42-c4
- Seller: https://agentstack.voostack.com/s/marvinrichter
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
