Architecture decision record

From yonatangross/orchestkit · View interactive version

Architecture decision record is an AI agent skill from the GitHub repository yonatangross/orchestkit. Nygard-format ADRs: context, decision, consequences, alternatives. Use when writing an ADR or recording an architectural decision.

How to use this skill

Skill file

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

Why ADRs Matter

ADRs serve as architectural memory for your team:

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:

3. Context

What to include:

4. Decision

What to include:

Be specific and actionable:

5. Consequences

What to include:

6. Alternatives Considered

Document at least 2 alternatives:

For each alternative, explain:

7. References (Optional)

Links to relevant resources:

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.

2. **Write in Present Tense**

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

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

ADRs capture decisions, not implementation details.

4. **Review ADRs as Team**

Get input from relevant stakeholders before accepting.

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:

Quick Start Checklist

Option 1: Use Script-Enhanced Generator (Recommended)

Option 2: Use Static Template

Available Scripts

Rules Quick Reference

| Rule | Impact | What It Covers |

|------|--------|----------------|

| interrogation-scalability | HIGH | Scale questions, data volume, growth projections |

| interrogation-reliability | HIGH | Data patterns, UX impact, coherence validation |

| interrogation-security | HIGH | Access control, tenant isolation, attack surface |

Common Pitfalls to Avoid

❌ Too Technical: "We'll use Kubernetes with these 50 YAML configs..."

✅ Right Level: "We'll use Kubernetes for container orchestration because..."

❌ Too Vague: "We'll use a better database"

✅ Specific: "We'll use PostgreSQL 15+ for transactional data because..."

❌ No Alternatives: Only documenting the chosen solution

✅ Comparative: Document why alternatives weren't chosen

❌ Missing Consequences: Only listing benefits

✅ Balanced: Honest about costs and trade-offs

❌ No Context: "We decided to use Redis"

✅ Contextual: "Given our 1M+ concurrent users and sub-50ms latency requirement..."

Related Skills


Skill Version: 2.0.0

Last Updated: 2026-01-08

Maintained by: OrchestKit

Capability Details

adr-creation

Keywords: adr, architecture decision, decision record, document decision

Solves:

adr-best-practices

Keywords: when to write adr, adr lifecycle, adr workflow, adr process, adr review, quantify impact

Solves:

tradeoff-analysis

Keywords: tradeoff, pros cons, alternatives, comparison, evaluate options

Solves:

consequences

Keywords: consequence, impact, risk, benefit, outcome

Solves:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.