Logo: Decision Records

Decision Records

Communautéit
ericrisco
decision-records

Use when a hard-to-reverse choice (database, framework, vendor, auth model) must be frozen as an immutable numbered ADR — the context that forced it, the options weighed, the decision, consequences both ways — or superseded without erasing history. NOT a meeting recap (that is meeting-notes), NOT standing project principles (that is constitution).

Iwwersiicht

Editeurericrisco
Repositoryrsc-harness
Skill-Nummdecision-records
Stären
239
Forks
24
Matgeliwwert Dateien
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ericrisco huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Decision Records an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ericrisco/rsc-harness/tree/main/skills/decision-records
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericrisco/rsc-harness.git /tmp/rsc-harness
mkdir -p .claude/skills
cp -r /tmp/rsc-harness/skills/decision-records .claude/skills/decision-records
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Decision Records an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Decision Records automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Decision Records net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Decision Records — Freeze the Why Before It Evaporates

A consequential choice got made. Capture it as one short, immutable, numbered ADR: the context that forced it, the real options weighed, the decision, and what it costs you both ways. Six months from now this file is the only thing standing between you and re-litigating the whole thing.

You own the durable single-decision artifact — an Architecture/Any Decision Record (ADR). Not a meeting recap, not a runbook, not a spec. One bounded choice, recorded so the reasoning survives the people who made it.

The one test: is this even ADR-worthy?

Write an ADR iff the choice is costly to reverse OR future-you will ask "why did we do it this way". Everything else is noise — an ADR for a trivial reversible tweak is just paperwork, and ADRs lose all their value the moment they become forced ceremony (this is the consistent message from Fowler and the AWS Architecture Blog).

Worth an ADRSkip it
Postgres vs DynamoDB for the primary storeWhich lint rule to enable
Monolith vs microservices for v1Renaming a local variable
Build vs buy auth (Clerk vs roll-your-own)Bumping a patch dependency
Dropping REST for tRPC across the APIChoosing a CSS color token
Picking Hetzner over AWS for hostingA reversible feature flag default

If you can rip it out in an afternoon and nobody will ever ask why, don't write an ADR. Decide, move on.

Decide home + naming once

Pick a storage convention before the first record, and never spawn a competing second log. Default to the project's existing convention if one exists.

Naming schoolLooks likeUse when
Numeric-prefix (adr-tools / MADR)0007-choose-postgres.mdYou need stable IDs to cross-reference for supersession — the default
Imperative verb-nounchoose-database.mdTiny log, no supersession expected, humans browse by topic

Prefer numeric-prefix: NNNN-title-with-dashes.md. Stable IDs are what make "Superseded by ADR-0012" mean something.

Where to store (first match wins):

  1. The project's existing convention — never invent a parallel log.
  2. A code repo with no convention: docs/adr/ (also seen as doc/adr/).
  3. A harness workspace: 02-DOCS/wiki/decisions/, indexed in 02-DOCS/wiki/index.md (the Knowledge map; root CLAUDE.md keeps only a short pointer).
text
Bad:  decision-final-v2-REAL.md          # no ID, no order, will rot
Bad:  notes/adr/db.md                     # buried, not in the log
Good: docs/adr/0007-choose-postgres.md    # stable ID, sorts, cross-referencable

Seed the index the moment you create the first ADR — a README row or 0000-index.md listing id, title, status, date. An ADR that isn't in the index is an orphan nobody will find.

The record spine

Map every ADR to the MADR 4.0.0 template (released 2024-09-17 — the current version). MADR ships full and minimal variants; use minimal until a section earns its place.

Required spine, in order: Title → Status → Date → Context and Problem Statement → Decision Drivers → Considered Options → Decision Outcome → Consequences. The MADR-optional sections (Confirmation, Pros and Cons of the Options, More Information) you add only when they pull weight.

Minimal skeleton — this is enough for most decisions. When the ADR lives in a harness workspace (02-DOCS/wiki/decisions/), it is part of an OKF v0.1 bundle, so it opens with YAML frontmatter carrying a non-empty type: decision (plus the OKF-recommended title/tags/ timestamp). The body keeps the human-readable - Status:/- Date: lines verbatim — they are the decision's domain record and scripts/verify.sh reads them, so the frontmatter is purely additive. Cross-references use standard markdown links, never wikilinks. (In a plain code repo under docs/adr/, the frontmatter is optional — OKF conformance only governs the wiki bundle.)

markdown
---
type: decision
title: "Choose Postgres over DynamoDB for the primary store"
tags: [adr, database, billing]
timestamp: 2026-06-02T00:00:00Z
---

# 7. Choose Postgres over DynamoDB for the primary store

- Status: accepted
- Date: 2026-06-02
- Deciders: @alice, @bob

## Context and Problem Statement

We need a primary datastore for the billing service. Relational
invoicing data, ~2k writes/min, team of 3 with deep SQL experience,
EU data-residency required. Which store do we adopt?

## Decision Drivers

- Strong relational integrity for invoices (foreign keys, transactions)
- Team SQL fluency; near-zero NoSQL operational experience
- EU residency + self-host option (constitution §data-residency)

## Considered Options

- Postgres (managed, EU region)
- DynamoDB
- MongoDB Atlas

## Decision Outcome

Chosen: **Postgres**, because it matches the relational shape of the
data and the team's existing fluency, with the lowest operational risk.

## Consequences

- Good: ACID transactions, mature tooling, team productive day one.
- Bad: we own connection-pool and vertical-scaling concerns earlier.
- Follow-up: provision read replica before launch (ADR-0009 tracks scaling).

Keep it to 1–2 pages, readable in 5–10 minutes. If a record sprawls, you're probably bundling two decisions — split them. The full annotated MADR full+minimal templates and a worked example live in references/templates.md.

Write context that forces the decision

The context section must make the decision feel inevitable. State the problem and the constraints — not the solution.

  • State the problem, not the answer. "We need to pick a store" not "We should use Postgres." The verdict belongs in Decision Outcome.
  • Quantify. "~2k writes/min", "team of 3", "EU residency", "p99 < 100ms". Numbers are what let future readers judge if your constraints still hold.
  • Cite the driver. If a constitution principle or a spec/plan fork forced this, link it. An ADR is often downstream of constitution and cites it as a driver.
markdown
Bad context:  "We decided to use Postgres because it's reliable."
              (conclusion smuggled in, no constraints, unfalsifiable)

Good context: "Billing needs relational integrity for invoices,
              ~2k writes/min, a 3-person team with SQL but no NoSQL
              ops experience, and EU data residency (constitution
              §data-residency). Which primary store do we adopt?"

Options must be real and comparable

The rejected options are the asset — they're the proof you thought, and they stop the next person re-proposing them.

  • List ≥2 genuine options. A single foregone "option" is theatre. If there was really only one path, you don't need an ADR.
  • Score each against the same drivers. Apples to apples, or the comparison is meaningless.
  • Record why each loser lost. That sentence is worth more than the winner's praise.
markdown
| Option    | Relational integrity | Team fluency | EU self-host | Op. risk |
|-----------|----------------------|--------------|--------------|----------|
| Postgres  | native               | high         | yes          | low      |
| DynamoDB  | app-enforced         | none         | no (AWS)     | high     |
| Mongo     | partial              | medium       | yes          | medium   |

Consequences, both directions

A one-sided ADR is marketing, and marketing erodes the trust that makes the log worth reading. Record:

  • What improves — the upside you bought.
  • What degrades — the price you paid, honestly.
  • New work / risk it creates — what you now own that you didn't before.
  • Follow-ups — concrete tasks, ideally linked to a tracker or a future ADR.

If you can't name a single downside, you haven't finished thinking. Every real choice has a cost.

Status lifecycle + immutability

An accepted or rejected ADR is immutable. You never edit the decision — you write a new ADR that supersedes it and flip the old one's status. This is the whole point: history stays intact.

StatusMeaningNext
proposeddrafted, under review→ accepted or rejected
acceptedadopted, in force→ deprecated or superseded
rejectedconsidered and declinedterminal (kept for the record)
deprecatedno longer relevant, not replacedterminal
superseded by ADR-NNNNreplaced by a newer decisionterminal, back-linked

The supersession ritual (never skip a step):

  1. Write the new ADR (e.g. 0012-adopt-trpc.md), status accepted, with a "Supersedes ADR-0004" note in its context.
  2. Edit only the status line of the old ADR (0004) to superseded by ADR-0012. Leave its decision and rationale untouched.
  3. Back-link both ways so a reader landing on either finds the other.

Never delete an ADR and never rewrite its decision — a wrong-in-hindsight ADR is still true history. A worked supersession pair is in references/templates.md.

Maintain the log

A decision log is only useful if it stays navigable.

  • Index every ADR at creation. One row: | 0007 | Choose Postgres | accepted | 2026-06-02 |. No orphans.
  • Keep supersession links live in both directions.
  • Review cadence. Periodically sweep accepted ADRs — anything reality has overtaken gets a superseding record, not a silent edit.
  • Index the log from the entry point — 02-DOCS/wiki/index.md — so onboarding finds it. The broader wiki and onboarding doc belong to knowledge-ops and codebase-onboarding; this skill owns only the ADRs the wiki links to. The meeting that spawned a decision routes to meeting-notes; the repeatable how-to it implies routes to sop-builder.

Anti-patterns

Anti-patternWhy it's wrongDo instead
Editing an accepted ADR's decision in placeDestroys history; future readers can't see the pathSupersede with a new ADR, flip old status
Single foregone "option"No real comparison; theatre, not a recordList ≥2 genuine options or skip the ADR
No consequences (or only upside)One-sided ADR is marketing; erodes trustRecord gains, costs, new work, follow-ups
Novella-length ADRNobody reads 8 pages; signal drowns1–2 pages; split bundled decisions
ADR for a trivial reversible choiceForced paperwork; kills the practiceApply the one test first
Re-deciding what the constitution settledDuplicates the standing ruleset, causes driftCite the constitution as a driver instead
Orphan ADR not in the indexInvisible; nobody finds itAdd the index row at creation
Context that states the answerDecision smuggled in, unfalsifiableProblem + constraints only; verdict in Outcome

Verify

Lint a produced ADR (or a whole decisions dir) with scripts/verify.sh <path>: it checks for a recognized status, a date, the required sections, ≥2 options, and a valid filename — read-only, no network. It expects the skeletons above.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Decision Records?

Use when a hard-to-reverse choice (database, framework, vendor, auth model) must be frozen as an immutable numbered ADR — the context that forced it, the options weighed, the decision, consequences both ways — or superseded without erasing history. NOT a meeting recap (that is meeting-notes), NOT standing project principles (that is constitution).

Firwat Decision Records op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Decision Records besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Decision Records an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ericrisco/rsc-harness/tree/main/skills/decision-records an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Decision Records benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Decision Records benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Decision Records domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Decision Records gratis?

Jo. ericrisco huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇