architecture-documentation

Write ADRs, C4 diagrams, and arc42 documentation for software systems.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill architecture-documentation-snoodleboot-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: architecture-documentation
Source: https://github.com/snoodleboot-io/discrecontinual_equations/tree/main/.claude/skills/architecture-documentation
Command: npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill architecture-documentation-snoodleboot-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Architecture knowledge decays: decisions lose their rationale, diagrams drift from the code, and new engineers cannot orient themselves. This Skill provides the patterns and discipline for keeping architecture documentation accurate, reviewable, and useful. ## Core Features & Use Cases - Architecture Decision Records: Write numbered, immutable ADRs with context, rejected alternatives, real costs, and revisit conditions, stored in the repo under docs/adr/. - C4 Model Diagrams: Produce System Context and Container diagrams as Mermaid text, with guidance on which levels to maintain and which to generate. - arc42 and Quality Scenarios: Structure whole-system documentation with the arc42 skeleton and express non-functional requirements as measurable scenarios. - Use Case: A team adding Redis session storage writes ADR-0021 capturing the rejected JWT and Postgres options, updates the Level 2 container diagram in the same PR, and records the new Redis failure mode as an accepted cost. ## Quick Start Write an ADR for the decision to move session storage from sticky sessions to Redis, including alternatives and consequences.

Frequently Asked Questions about architecture-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write an architecture decision record?▼

Write one decision per ADR with context including real numbers, the decision itself, alternatives with rejection reasons, and consequences naming at least one accepted cost. Number it sequentially, store it in docs/adr/ in the repo, and mark it immutable once accepted.

What is the C4 model for architecture diagrams?▼

The C4 model provides four zoom levels: System Context, Container, Component, and Code. Most teams should maintain only Levels 1 and 2, hand-authored as Mermaid text in the repo, and generate lower levels on demand rather than maintaining them.

Should ADRs be edited after they are accepted?▼

No, accepted ADRs are immutable. To change a decision, write a new ADR that supersedes the old one and mark the original as Superseded. Editing history destroys the record of what was known when the decision was made.

How do I keep architecture diagrams from going stale?▼

Generate infrastructure, schema, and dependency diagrams in CI from Terraform state, database schemas, or trace data. Hand-author only Context and Container diagrams as text in the repo, and make updating them part of the pull request definition of done.

When should I use arc42 instead of ADRs?▼

Use arc42 when you need a document describing the whole system as it stands, such as for onboarding, audits, or handovers. ADRs capture individual decisions; arc42 sections 1, 3, 4, 5, 8, 9, and 11 carry most of the value.