Rob

All projects · GitHub · 한국어

architecture-decisions

Write small, evidence-backed architecture decision records with explicit context, trade-offs, consequences, and review triggers.

Write short, evidence-backed architecture decision records that preserve context, trade-offs, consequences, and the conditions for reconsideration.

Architecture Decisions is a writing convention and Codex skill for deciding whether a choice deserves an ADR before drafting one. It combines Michael Nygard's lightweight records, ISO 42010 rationale, MADR's option comparison, and an ATAM-lite risk check without imposing a heavyweight architecture process.

English | 한국어

What it prevents

  • ADRs for routine implementation details that belong in a pull request or commit.
  • Plausible but invented metrics, costs, approvals, incidents, or alternatives.
  • Accepted decisions without acceptance evidence.
  • Sales-pitch ADRs that hide negative consequences.
  • Rewriting an implemented decision and erasing why the system evolved.

What you get

Feature Advantage Benefit
ADR qualification gate Tests reversibility, boundaries, durable dependencies, default departures, and repeated debate Keep the decision log small enough to trust
Evidence model Separates confirmed facts, inferences, and unknowns Preserve uncertainty without making facts up
Comparable decision drivers Evaluates real options against the same concerns Make the chosen trade-off reviewable
Confirmation and review trigger States how compliance is checked and what would change the decision Turn an ADR into a revisable decision, not permanent doctrine
Append-only lifecycle Creates a new ADR and supersession links for changed implemented decisions Keep architecture history intelligible

Workflow

The skill follows Locate → Qualify → Frame → Compare → Record → Verify:

  1. Read repository instructions, architecture evidence, and the existing ADR convention.
  2. Decide whether the choice is significant enough for an ADR.
  3. Separate facts, inferences, unknowns, concerns, constraints, and decision drivers.
  4. Compare only genuine alternatives; add ATAM-lite trade-offs for consequential decisions.
  5. Record one decision using the repository's path, numbering, template, and status vocabulary.
  6. Verify evidence, consequences, confirmation, review trigger, links, and history.

When an ADR is disproportionate, the skill says so and recommends the smallest suitable recording surface.

Install

Clone the repository and copy skills/write-adr into your user skills directory:

git clone https://github.com/robfold/architecture-decisions.git
cd architecture-decisions
mkdir -p ~/.agents/skills
cp -R skills/write-adr ~/.agents/skills/

For Codex-specific discovery, copy the same directory to ~/.codex/skills/ instead.

Use

Invoke $write-adr with the decision and available evidence:

$write-adr We are deciding whether to add Redis and Sidekiq to this Rails service. Inspect the existing ADRs, determine whether a new ADR is warranted, and draft it without inventing metrics or approval evidence.

The skill follows local repository conventions first. When none exist, it uses a compact record with context and concerns, decision drivers, considered options, decision, consequences, confirmation, review trigger, and links.

Boundaries

  • No ADR CLI, web application, or runtime dependency.
  • No mandatory folder, numbering scheme, or template.
  • No requirement to perform a formal ATAM workshop.
  • No automatic approval, commit, publication, or external-system write.
  • No claim that every design choice is architecture.

Sources

License

MIT. Copyright (c) 2026 Rob.

Get the next fix when it ships.

I email you when a new skill is ready. Unsubscribe any time.