Home/Templates/Architecture Decision Record
Coding

Architecture Decision Record Prompt Template

Write an ADR documenting why an architectural decision was made, what alternatives were considered, and the expected consequences.

The Prompt

ROLE: You are a tech lead who maintains a rigorous ADR (Architecture Decision Record) practice — you write ADRs that new engineers read years later to understand why the codebase is built the way it is, not just what was decided. CONTEXT: You are documenting an architectural decision that has been made or is being considered. ADRs serve one purpose: making the context and reasoning behind a decision legible to someone who wasn't in the room. The decision might be reversed later — a good ADR makes that reversal decision easier by documenting what was known and assumed at the time. TASK: Write a complete Architecture Decision Record for the decision below. RULES: • The context section must capture the problem and constraints as they existed at the time of the decision — not in hindsight • Every alternative considered must be evaluated fairly — no strawmanning rejected options • The "decision" section must be one clear sentence: "We will [do X]" • Consequences must include both positive and negative outcomes — an ADR with only upsides wasn't honestly written • Include a "revisit trigger": the specific conditions that would warrant reconsidering this decision CONSTRAINTS: Professional, concise. Present tense for current state, past tense for history. Target 400–600 words. An ADR is a document, not a design doc — it captures a decision, not the full exploration that led to it. EDITABLE VARIABLES: • [DECISION] — what architectural choice was made (e.g. "use PostgreSQL over MongoDB for user data storage") • [CONTEXT] — the problem, constraints, and team situation at the time of the decision • [OPTIONS_CONSIDERED] — the alternatives that were evaluated • [DATE] — when this decision was made • [DECISION_MAKERS] — who was involved OUTPUT FORMAT: # ADR-[NUMBER]: [Decision Title] **Date:** [DATE] **Status:** [Proposed / Accepted / Deprecated / Superseded by ADR-X] **Deciders:** [Names or roles] ## Context [Problem statement and constraints at time of decision] ## Decision We will [one clear sentence]. ## Alternatives Considered ### Option A: [Name] [Fair evaluation with pros and cons] ### Option B: [Name] [Fair evaluation] ## Rationale [Why this option over the alternatives — reference the specific constraints that drove the choice] ## Consequences **Positive:** [Bullet list] **Negative:** [Bullet list] ## Revisit Trigger [Specific conditions that would prompt reconsideration] QUALITY BAR: An engineer who joins the team 2 years after this decision was made should read this ADR and understand both what was decided and why — without needing to ask anyone who was in the room.

Make it specific to you

PromptITIN asks a few questions and builds a version tailored to your use case.

✦ Enhance with AI

How to use this template

1

Copy the template

Click the copy button to grab the full prompt text.

2

Fill in the placeholders

Replace anything in [BRACKETS] with your specific details.

3

Paste into any AI tool

Works with ChatGPT, Claude, Gemini, Cursor, and more.

4

Or enhance with AI

Sign in to PromptITIN and let AI tailor the prompt to your exact situation in seconds.

Why this prompt works

The 'revisit trigger' section is what makes ADRs actionable rather than archival — it turns a historical document into a living one that surfaces when conditions change. Requiring the decision as a single sentence prevents ADRs from becoming vague discussion documents.

Tips for best results

  • Write ADRs at the time of the decision, not months later — the context section degrades fast and 'why did we do this?' is harder to answer retrospectively
  • Number your ADRs sequentially in your repo (ADR-001, ADR-002) and link superseding ADRs to the ones they replace
  • The 'alternatives considered' section is where most ADRs fail — ask the AI to play devil's advocate for each rejected option to ensure it's evaluated fairly
  • Store ADRs alongside the code they affect (e.g. /docs/adr/) not in a separate wiki — they're more likely to be read and updated when they live close to the code

More Coding templates

Code Review

Get a comprehensive AI code review covering bugs, performance issues, security vulnerabilities, best practice violations, and refactoring opportunities with specific line references.

View →

Debug an Error

Diagnose any code error with a structured breakdown: root cause analysis, step-by-step fix, and prevention strategies for the future.

View →

Explain Code Simply

Translate complex code into plain English with line-by-line explanations, real-world analogies, and edge-case analysis for any skill level.

View →
← Browse all 195 templates