Skip to content
Mike Reams

Try

Searches titles, summaries and topics across posts, work, diagrams, pages and the Toolbox resources.

↑ ↓ move · Enter open · Esc close
← AI Library

Skill · Original · Enterprise architecture

Decision records that cite patterns

Writes an architecture decision record that names the design patterns behind each option, the anti-patterns it avoids and the capability it serves.

Share this page ↓

What you get

An ADR (template TM-10) with every pattern and anti-pattern cited by id and link.

When to use it
When recording a design choice, a trade-off or a standard.
Ask for it like this
“Write the decision record for choosing event streaming over batch, with the patterns behind each option.”
Limits
A pattern whose trade-off the record cannot state is left out.
Works with
Run it after Catalog lookup.

Install with the skills CLI

Before you start The catalog's read-only MCP server (catalog.mikereams.com/mcp) or its HTTPS API. No key, no install. In Claude Code, the Blueprint Catalog plugin sets the server up with the skills.

terminal
npx skills add solventarchitect/skills --skill adr-with-patterns

From the public solventarchitect/skills (opens in a new tab) repo, kept in step with this library. Read a skill before you install it.

How I use it

  • Written for the Blueprint Catalog, my free capability catalog; every path, tool and id it names is checked against each catalog build.
  • If the record cannot state the trade-off a pattern answers, the pattern is decoration.

Example output

A real run on 2026-11-13 against Blueprint Catalog 0.48.0, by an AI agent following the skill. The company is fictional; the pattern and capability ids are real.

ADR-0001: Send order changes to the warehouse as events, not as a nightly file

Request: "Write the decision record for choosing event streaming over batch, with the patterns behind each option."

Run on 2026-11-13 against Blueprint Catalog 0.48.0. The company and its systems are fictional; the capability, pattern and anti-pattern ids are real and were checked against the catalog's API.

FieldValue
StatusProposed
Date2026-11-13
DecidersHead of supply chain systems
ConsultedWarehouse operations lead, order desk lead, integration engineer
ScopeBC-670.10 Order Capture & Validation, feeding BC-650.40 Outbound Operations

Context

Order changes and cancellations are captured in the order system and reach the warehouse system in a nightly file. A change made after the file is cut is picked and shipped as the old order. Two systems act on an order change today (the warehouse and customer notifications) and reporting will be the third. The warehouse team cannot change the order system's database, and the order desk needs a change to reach the floor within minutes.

The catalog's reading path for BC-670.10 lists no patterns, so the patterns below were found by searching the pattern library.

Options considered

  1. Keep the file and run it hourly. No catalog pattern names this option, so none is cited. Each new consumer would need its own file and schedule, which is how AP-040 Point-to-Point Spaghetti starts.
  2. Publish order events. DP-130 Publish-Subscribe: several systems react to the same fact. What is published follows DP-230 Domain Events; the order system emits through a DP-290 Transactional Outbox; the warehouse is a DP-180 Idempotent Consumer.
  3. Let the warehouse read the order tables. Reading them directly is AP-030 Shared Database Integration. Reading them through DP-300 Change Data Capture avoids touching the order system, at the price of events that describe rows, not business meaning: "line 4 updated", not "order cancelled".

Decision

We will publish order events (option 2), because three systems need the same fact and a missed cancellation costs a shipment.

Consequences

  • Gains: a change reaches the warehouse in minutes; a new consumer subscribes without a new interface; a cancellation is a named event, not a difference between two files.
  • Costs: event contracts that must be versioned, and no direct answer to "did anyone handle this" (DP-130); a relay process and an outbox table to prune (DP-290); a deduplication store with a retention window in the warehouse, and message ids the order system assigns consistently (DP-180); a decision about which events are internal and which are published contracts (DP-230).
  • Anti-patterns avoided: AP-040 Point-to-Point Spaghetti and AP-030 Shared Database Integration.
  • Risks and follow-ups: when a second team starts producing events, add a DP-310 Schema Registry. Watch the age of the oldest unprocessed order event; a growing backlog means the warehouse consumer needs attention before the order desk notices.

Links

Capability, pattern and anti-pattern ids: Blueprint Catalog 0.48.0 (https://catalog.mikereams.com), CC BY 4.0, Mike Reams. Record layout: the catalog's template TM-10.

Open the file

  • ADR
  • design patterns
  • anti-patterns
  • trade-offs

Where it lives

Served by the Blueprint Catalog (opens in a new tab), so there is one copy to keep current.

Licence: CC BY 4.0. Save it as .claude/skills/adr-with-patterns/SKILL.md in your agent's skills directory.