Skip to content
Development
Skill

/architecture-decision-record

Nygard-format ADRs: context, decision, consequences, alternatives. Use when writing an ADR or recording an architectural decision.

From plugin
orchestkit
301122 skills36 agents

Claude Code

$ npx -y skills add yonatangross/orchestkit --skill architecture-decision-record --agent claude-code

SKILL.md

architecture-decision-record.SKILL.md
name: architecture-decision-record
license: MIT
compatibility: "Claude Code 2.1.277+."
description: "Nygard-format ADRs: context, decision, consequences, alternatives. Use when writing an ADR or recording an architectural decision."
user-invocable: false
metadata:
  owner-agent: "backend-system-architect"
  category: document-asset-creation
  version: "2.0.0"
  author: "OrchestKit"
  complexity: "medium"
  tags: "architecture, documentation, decision-making, backend"
allowed-tools: "Read Glob Grep WebFetch WebSearch"

Architecture Decision Records

Architecture Decision Records (ADRs) are lightweight documents that capture important architectural decisions along with their context and consequences. This skill provides templates, examples, and best practices for creating and maintaining ADRs in your projects.

Overview

  • Making significant technology choices (databases, frameworks, cloud providers)
  • Designing system architecture or major components
  • Establishing patterns or conventions for the team
  • Evaluating trade-offs between multiple approaches
  • Documenting decisions that will impact future development

Why ADRs Matter

ADRs serve as architectural memory for your team:

  • **Context Preservation**: Capture why decisions were made, not just what was decided
  • **Onboarding**: Help new team members understand architectural rationale
  • **Prevent Revisiting**: Avoid endless debates about settled decisions
  • **Track Evolution**: See how architecture evolved over time
  • **Accountability**: Clear ownership and decision timeline

ADR Format (Nygard Template)

Each ADR should follow this structure:

1. Title

Format: `ADR-####: [Decision Title]` Example: `ADR-0001: Adopt Microservices Architecture`

2. Status

Current state of the decision:

  • **Proposed**: Under consideration
  • **Accepted**: Decision approved and being implemented
  • **Superseded**: Replaced by a later decision (reference ADR number)
  • **Deprecated**: No longer recommended but not yet replaced
  • **Rejected**: Considered but not adopted (document why)

3. Context

**What to include:**

  • Problem statement or opportunity
  • Business/technical constraints
  • Stakeholder requirements
  • Current state of the system
  • Forces at play (conflicting concerns)

4. Decision

**What to include:**

  • The choice being made
  • Key principles or patterns to follow
  • What will change as a result
  • Who is responsible for implementation

**Be specific and actionable:**

  • ✅ "We will adopt microservices architecture using Node.js with Express"
  • ❌ "We will consider using microservices"

5. Consequences

**What to include:**

  • Positive outcomes (benefits)
  • Negative outcomes (costs, risks, trade-offs)
  • Neutral outcomes (things that change but aren't clearly better/worse)

6. Alternatives Considered

**Document at least 2 alternatives:**

**For each alternative, explain:**

  • What it was
  • Why it was considered
  • Why it was not chosen

7. References (Optional)

Links to relevant resources:

  • Meeting notes or discussion threads
  • Related ADRs
  • External research or articles
  • Proof of concept implementations

ADR Lifecycle

Proposed → Accepted → [Implemented] → (Eventually) Superseded/Deprecated
          ↓
      Rejected

Best Practices

1. **Keep ADRs Immutable**

Once accepted, don't edit ADRs. Create new ADRs that supersede old ones.

  • ✅ Create ADR-0015 that supersedes ADR-0003
  • ❌ Update ADR-0003 with new decisions

2. **Write in Present Tense**

ADRs are historical records written as if the decision is being made now.

  • ✅ "We will adopt microservices"
  • ❌ "We adopted microservices"

3. **Focus on 'Why', Not 'How'**

ADRs capture decisions, not implementation details.

  • ✅ "We chose PostgreSQL for relational consistency"
  • ❌ "Configure PostgreSQL with these specific settings..."

4. **Review ADRs as Team**

Get input from relevant stakeholders before accepting.

  • Architects: Technical viability
  • Developers: Implementation feasibility
  • Product: Business alignment
  • DevOps: Operational concerns

5. **Number Sequentially**

Use 4-digit zero-padded numbers: ADR-0001, ADR-0002, etc. Maintain a single sequence even with multiple projects.

6. **Store in Git**

Keep ADRs in version control alongside code:

  • **Location**: `/docs/adr/` or `/architecture/decisions/`
  • **Format**: Markdown for easy reading
  • **Branch**: Same branch as implementation

Quick Start Checklist

Option 1: Use Script-Enhanced Generator (Recommended)

  • [ ] Run `/create-adr [number] [title]` to generate ADR with auto-filled context
  • [ ] ADR number, date, and author are auto-populated
  • [ ] Review and fill in decision details
  • [ ] Set Status to "Proposed" and review with team

Option 2: Use Static Template

  • [ ] Copy ADR template from `assets/adr-template.md`
  • [ ] Assign next sequential number (check existing ADRs)
  • [ ] Fill in Context: problem, constraints, requirements
  • [ ] Document Decision: what, why, how, who
  • [ ] List Consequences: positive, negative, neutral
  • [ ] Describe at least 2 Alternatives: what, pros/cons, why not chosen
  • [ ] Add References: discussions, research, related ADRs
  • [ ] Set Status to "Proposed"
  • [ ] Review with team
  • [ ] Update Status to "Accepted" after approval
  • [ ] Link ADR in implementation PR
  • [ ] Update Status to "Implemented" after deployment

Available Scripts

  • **`scripts/create-adr.md`** - Dynamic ADR generator with auto-filled context
  • Auto-fills: ADR number, date, author, total ADRs count
  • Usage: `/create-adr [number] [title]`
  • Uses `$ARGUMENTS` and `!command` for dynamic context
  • **`assets/adr-template.md`** - Static template for manual use

Rules Quick Reference

| Rule | Impact | What It Covers | |------|--------|----------------| | [interrogation-scalability](rules/interrogation-scalability.md) | HIGH | Scale questions, data volume, growth projections | | [interrogation-reliability](rules/interrogation-reliability.md) | HIGH | Data pa

Read more
@yonatangross
Ships withorchestkit

The Complete AI Development Toolkit for Claude Code. 115 skills, 36 agents, 163 hooks. Install `ork` for stable (v10.x).

301122 skills36 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
301
Star history of yonatangross/orchestkit on GitHub, a chart by star-history.com

Other skills on orchestkit.

ork-assess

ork-assess

Assess a code change, design, architecture, workflow, or competing options against explicit criteria and evidence. Use when a…

ork-brainstorm

ork-brainstorm

Compare plausible implementation, architecture, product, or operational approaches before committing to one. Use when a request…

ork-explore

ork-explore

Map an unfamiliar codebase, feature, architecture, data flow, or operational path with file-backed evidence. Use when a request…

ork-glyph

ork-glyph

Render an answer inline as compact ASCII or box-drawing art with semantic status icons. Use for status, inventories, budgets,…

ork-implement

ork-implement

Make an approved, scoped change and prove the affected behavior. Use when a request asks to implement, build, add, or land a…

ork-review-pr

ork-review-pr

Review a pull request or branch for correctness, regressions, security, operational risk, and missing evidence. Use when a…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about architecture-decision-record.

Which coding agents can use architecture-decision-record?
architecture-decision-record installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.