| name | architecture-docs |
| description | Workflow for creating and maintaining architecture documentation. Use when the user needs to document system architecture or make ADRs. |
Skill: Create Architecture Documentation
Trigger
When the user needs to document system architecture or make Architecture Decision Records (ADRs).
Prerequisites
Steps
Step 1: System Overview
Step 2: Component Documentation
For each service/component:
Step 3: Architecture Decision Records (ADRs)
For significant decisions:
ADR template:
# ADR-{number}: {title}
## Status
{Proposed | Accepted | Deprecated | Superseded by ADR-{n}}
## Context
{What is the issue that we're seeing that is motivating this decision?}
## Decision
{What is the change that we're proposing and/or doing?}
## Consequences
{What becomes easier or harder because of this change?}
Step 4: Data Flow Diagrams
Step 5: Operational Documentation
Completion Checklist
If Step Fails
- Step 1 (overview): Start with 3–5 boxes; add detail later. Use
flowchart LR or flowchart TB for simple flows
- Step 3 (ADRs): Number format
ADR-001; keep each ADR to one decision
- Step 4 (diagrams): Mermaid syntax: no spaces in node IDs; use
A[Label] not A[Label with spaces]
Example
Step 1: flowchart LR with Client -> API -> DB, API -> Cache. Step 3: ADR-001 Use PostgreSQL — Status Accepted, Context: need relational, Decision: PostgreSQL, Consequences: SQL expertise required.