Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

adr-documentation

БесплатноБез исполняемых скриптовНе проверен

Architecture Decision Records (ADR) documentation practice. Use when documenting architectural decisions, recording technical trade-offs, creating decision…

MadAppGangот MadAppGang★ 290 звёзд на GitHub

Об этом скилле

ADR Documentation

Overview

What are ADRs?

Architecture Decision Records (ADRs) are lightweight documents that capture important architectural decisions along with their context and consequences. They serve as a historical record of why certain choices were made, helping teams avoid revisiting settled debates and providing context for future developers.

Key characteristics:

  • Immutable: Once accepted, ADRs are rarely modified (supersede instead)
  • Context-rich: Capture the environment and constraints at decision time
  • Outcome-focused: Document what was decided and why
  • Alternative-aware: Show what options were considered and rejected

Why Document Decisions?

Context Preservation:

  • Future team members understand why things are the way they are
  • Avoid "we've always done it this way" without knowing the reason
  • Preserve institutional knowledge across team changes

Onboarding:

  • New developers can read ADR history to understand system evolution
  • Reduces repetitive explanations of architectural choices
  • Provides learning path through project decisions

Avoiding Repeat Mistakes:

  • Document why certain approaches were rejected
  • Prevent re-proposing failed solutions
  • Learn from past trade-offs

Alignment:

  • Create shared understanding across team
  • Resolve disagreements with documented rationale
  • Enable asynchronous decision-making

When to Write an ADR

Write an ADR when:

  • Significant architectural choices: Microservices vs monolith, event-driven vs request/response
  • Technology selections: Database choice, framework adoption, language decisions
  • Pattern decisions: State management approach, authentication strategy, error handling patterns
  • Breaking changes: API redesigns, data model changes, migration strategies
  • Performance-critical decisions: Caching strategies, optimization approaches, scalability patterns
  • Security-related choices: Authentication methods, encryption strategies, access control models
  • Infrastructure decisions: Deployment strategy, hosting platform, CI/CD approach
  • Dependency selections: Major library choices, third-party service integrations

Don't write an ADR for:

  • Minor implementation details
  • Temporary workarounds
  • Personal coding style preferences
  • Reversible low-impact choices

ADR Structure

Standard Format

# ADR-XXXX: [Short Title]

## Status
[Proposed | Accepted | Deprecated | Superseded by ADR-YYYY]

## Date
YYYY-MM-DD

## Context
[Problem statement and environment]

## Decision
[What was decided]

## Consequences
[What results from this decision]

## Alternatives Considered
[Other options evaluated]

## Related ADRs
[Links to related decisions]

## References
[External links and documentation]

Section Guidelines

Title:

  • Format: ADR-XXXX: Short Decision Title
  • Be specific: "ADR-0012: Use PostgreSQL for Primary Database"
  • Not generic: "ADR-0012: Database Choice"

Status:

  • Proposed: Under discussion, not yet accepted
  • Accepted: Decision is final and being implemented
  • Deprecated: No longer recommended but not replaced
  • Superseded by ADR-YYYY: Replaced by a newer decision

Date:

  • Use ISO format: YYYY-MM-DD
  • Date of status change, not original proposal

Context:

  • Describe the forces at play
  • Technical constraints
  • Business requirements
  • Team capabilities
  • Timeline pressures
  • Budget considerations
  • Example: "We need to store structured data with complex relationships. Team has limited database expertise. Must support 100k+ users within 6 months."

Decision:

  • State clearly what was decided
  • Include scope and boundaries
  • Specify what is NOT included
  • Example: "We will use PostgreSQL as our primary database for all structured data. NoSQL solutions may be used for specific use cases (caching, session storage) but PostgreSQL is the default."

Consequences:

  • Positive: What benefits we gain
  • Negative: What drawbacks we accept
  • Neutral: What trade-offs we're making

Example:

### Positive
- Strong ACID guarantees for transactions
- Rich query capabilities with SQL
- Mature ecosystem and tooling

### Negative
- Requires careful index management for performance
- Scaling horizontally is more complex than NoSQL
- Team needs PostgreSQL training

### Neutral
- Need to establish backup/restore procedures
- Must define connection pooling strategy

Alternatives Considered:

  • List 2-4 alternatives seriously evaluated
  • For each: Pros, Cons, Why rejected
  • Be fair to alternatives (avoid strawman arguments)

Related ADRs:

  • Link to decisions that influenced this one
  • Link to decisions this one influences
  • Create a decision graph over time

References:

  • Documentation links
  • Blog posts or articles that influenced decision
  • Benchmark results
  • Proof of concepts

ADR Numbering and Naming

Sequential Numbering

Use zero-padded sequential numbers:

  • `ADR-0
Полный SKILL.md на GitHub

Установить adr-documentation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл adr-documentation?

Architecture Decision Records (ADR) documentation practice. Use when documenting architectural decisions, recording technical trade-offs, creating decision logs, or establishing architectural patterns. Trigger keywords - "ADR", "architecture decision", "decision record", "trade-offs", "architectural decision", "decision log".

Как установить скилл adr-documentation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adr-documentation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить adr-documentation с