Writing adrs

From nguyenhuuca/assessment · View interactive version

Writing adrs is an AI agent skill from the GitHub repository nguyenhuuca/assessment. Document architectural decisions. Use when making significant technical decisions that should be recorded. Covers ADR format and decision documentation.

How to use this skill

Skill file

Writing Architecture Decision Records

What is an ADR?

An Architecture Decision Record captures an important architectural decision along with its context and consequences.

When to Write an ADR

ADR Structure

Title

Short phrase describing the decision.

Status

Context

What is the situation? What forces are at play?

Decision

What is the change we're making?

Rationale

Why is this the best choice?

Consequences

What are the trade-offs? Both positive and negative.

Example ADR

# ADR: Use PostgreSQL for Primary Database

## Status
Accepted

## Context
We need a database for our new service. Requirements:
- ACID transactions
- JSON support
- Strong ecosystem
- Team familiarity

## Decision
We will use PostgreSQL 15+ as our primary database.

## Rationale
- Mature, reliable RDBMS
- Excellent JSON support with JSONB
- Strong extension ecosystem (pgvector, PostGIS)
- Team has deep PostgreSQL experience
- Well-supported by all cloud providers

## Consequences
### Positive
- Reliable, battle-tested technology
- Rich feature set
- Easy to find developers

### Negative
- Vertical scaling has limits
- Requires careful connection management
- More operational overhead than managed NoSQL

Best Practices

  1. Keep them short: 1-2 pages max
  2. Write when deciding: Not after the fact
  3. Include alternatives: Show what was considered
  4. Update status: Mark deprecated/superseded ADRs
  5. Number sequentially: ADR-001, ADR-002, etc.
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.