Back to Skills

architecture-decision-records

Capture architectural decisions made during Claude Code sessions as structured ADRs. Auto-detects decision moments, records context, alternatives considered, and rationale. Maintains an ADR log so future developers understand why the codebase is shaped the way it is.

181,553stars27,983forksUpdated 5/14/2026

Security Assessment

Safe(100/100)
Security Score100/100

About architecture-decision-records

The architecture-decision-records skill captures architectural decisions made during Claude Code sessions in a structured, persistent format known as Architecture Decision Records (ADRs). It addresses the common problem where decisions about frameworks, patterns, databases, and APIs are scattered across Slack threads, pull request comments, or developers’ memories, making it difficult for teams to understand why the codebase is shaped a certain way. By producing ADRs as part of the code repository, this skill ensures that architectural rationale, context, and alternatives are documented and accessible for future developers.

This skill automatically detects decision moments and guides users through a structured workflow to document each decision. It supports initializing an ADR directory, gathering context, recording alternatives with pros and cons, stating consequences, assigning sequential numbers, confirming drafts with the user, and updating an ADR index. The ADRs follow a lightweight format proposed by Michael Nygard, including sections for context, decision, alternatives considered, and consequences. Users can also query existing ADRs to understand prior architectural choices, and the skill will present the relevant context and decisions from the ADR log.

Typical use cases include recording framework choices, database selections, API design decisions, or any significant architectural trade-offs during planning or coding sessions. Target users are software developers, architects, and teams who want to maintain a transparent, well-documented rationale behind their system architecture. It is particularly useful for onboarding new team members, auditing architectural evolution, or ensuring consistency in decision-making across distributed teams.

FAQ

How do I create a new ADR using this skill?

When a decision moment is detected, the skill guides you through initializing the ADR directory if needed, identifying the decision, gathering context, documenting alternatives, stating consequences, assigning a number, and confirming before writing the ADR file.

Can I read existing ADRs to understand previous decisions?

Yes. By asking questions like 'why did we choose X?', the skill scans the ADR index and presents the Context and Decision sections from matching ADR files.

What formats are ADRs stored in?

ADRs are stored as Markdown files in a structured directory (docs/adr/) with a README index and optional template for manual entries.

Does the skill automatically write ADRs without approval?

No. Draft ADRs are only written after explicit user confirmation. If declined, the draft is discarded.

Who should use this skill?

Software developers, architects, and teams who want to maintain a clear, structured record of architectural decisions alongside their codebase.

Install architecture-decision-records

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill