Architecture Decision Records

Architecture Decision Records

Teaches writing and maintaining Architecture Decision Records with templates for context, decision, consequences, deprecation and RFCs.

Skill files3 files

references/

SKILL.md167 lines
1
---
2
name: architecture-decision-records
3
description: Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.
4
---
5
6
# Architecture Decision Records
7
8
Comprehensive patterns for creating, maintaining, and managing Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions.
9
10
## When to Use This Skill
11
12
- Making significant architectural decisions
13
- Documenting technology choices
14
- Recording design trade-offs
15
- Onboarding new team members
16
- Reviewing historical decisions
17
- Establishing decision-making processes
18
19
## Core Concepts
20
21
### 1. What is an ADR?
22
23
An Architecture Decision Record captures:
24
25
- **Context**: Why we needed to make a decision
26
- **Decision**: What we decided
27
- **Consequences**: What happens as a result
28
29
### 2. When to Write an ADR
30
31
| Write ADR | Skip ADR |
32
| -------------------------- | ---------------------- |
33
| New framework adoption | Minor version upgrades |
34
| Database technology choice | Bug fixes |
35
| API design patterns | Implementation details |
36
| Security architecture | Routine maintenance |
37
| Integration patterns | Configuration changes |
38
39
### 3. ADR Lifecycle
40
41
```
42
Proposed → Accepted → Deprecated → Superseded
43
↓
44
Rejected
45
```
46
47
Before drafting a standard, lightweight, or Y-statement ADR, read [decision templates](references/decision-templates.md).
48
49
Before drafting a deprecation ADR or RFC, read [deprecation and RFC templates](references/deprecation-rfc-templates.md).
50
51
## ADR Management
52
53
### Directory Structure
54
55
```
56
docs/
57
├── adr/
58
│ ├── README.md # Index and guidelines
59
│ ├── template.md # Team's ADR template
60
│ ├── 0001-use-postgresql.md
61
│ ├── 0002-caching-strategy.md
62
│ ├── 0003-mongodb-user-profiles.md # [DEPRECATED]
63
│ └── 0020-deprecate-mongodb.md # Supersedes 0003
64
```
65
66
### ADR Index (README.md)
67
68
```markdown
69
# Architecture Decision Records
70
71
This directory contains Architecture Decision Records (ADRs) for [Project Name].
72
73
## Index
74
75
| ADR | Title | Status | Date |
76
| ------------------------------------- | ---------------------------------- | ---------- | ---------- |
77
| [0001](0001-use-postgresql.md) | Use PostgreSQL as Primary Database | Accepted | 2024-01-10 |
78
| [0002](0002-caching-strategy.md) | Caching Strategy with Redis | Accepted | 2024-01-12 |
79
| [0003](0003-mongodb-user-profiles.md) | MongoDB for User Profiles | Deprecated | 2023-06-15 |
80
| [0020](0020-deprecate-mongodb.md) | Deprecate MongoDB | Accepted | 2024-01-15 |
81
82
## Creating a New ADR
83
84
1. Copy `template.md` to `NNNN-title-with-dashes.md`
85
2. Fill in the template
86
3. Submit PR for review
87
4. Update this index after approval
88
89
## ADR Status
90
91
- **Proposed**: Under discussion
92
- **Accepted**: Decision made, implementing
93
- **Deprecated**: No longer relevant
94
- **Superseded**: Replaced by another ADR
95
- **Rejected**: Considered but not adopted
96
```
97
98
### Automation (adr-tools)
99
100
```bash
101
# Install adr-tools
102
brew install adr-tools
103
104
# Initialize ADR directory
105
adr init docs/adr
106
107
# Create new ADR
108
adr new "Use PostgreSQL as Primary Database"
109
110
# Supersede an ADR
111
adr new -s 3 "Deprecate MongoDB in Favor of PostgreSQL"
112
113
# Generate table of contents (to a separate file, so the hand-written
114
# index and guidelines in README.md are not overwritten)
115
adr generate toc > docs/adr/toc.md
116
117
# Link related ADRs
118
adr link 2 "Complements" 1 "Is complemented by"
119
```
120
121
## Review Process
122
123
```markdown
124
## ADR Review Checklist
125
126
### Before Submission
127
128
- [ ] Context clearly explains the problem
129
- [ ] All viable options considered
130
- [ ] Pros/cons balanced and honest
131
- [ ] Consequences (positive and negative) documented
132
- [ ] Related ADRs linked
133
134
### During Review
135
136
- [ ] At least 2 senior engineers reviewed
137
- [ ] Affected teams consulted
138
- [ ] Security implications considered
139
- [ ] Cost implications documented
140
- [ ] Reversibility assessed
141
142
### After Acceptance
143
144
- [ ] ADR index updated
145
- [ ] Team notified
146
- [ ] Implementation tickets created
147
- [ ] Related documentation updated
148
```
149
150
## Best Practices
151
152
### Do's
153
154
- **Write ADRs early** - Before implementation starts
155
- **Keep them short** - 1-2 pages maximum
156
- **Be honest about trade-offs** - Include real cons
157
- **Link related decisions** - Build decision graph
158
- **Update status** - Deprecate when superseded
159
160
### Don'ts
161
162
- **Don't change accepted ADRs** - Write new ones to supersede
163
- **Don't skip context** - Future readers need background
164
- **Don't hide failures** - Rejected decisions are valuable
165
- **Don't be vague** - Specific decisions, specific consequences
166
- **Don't forget implementation** - ADR without action is waste
167

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…