architecture-decision-records — for Claude Code architecture-decision-records, everything-claude-code, official, for Claude Code, ide skills, architecture decision records, ADR format, Michael Nygard, codebase clarity, decision-making transparency, Claude Code

Verified
v1.0.0
GitHub

About this Skill

Ideal for Code Analysis Agents requiring structured documentation of architectural decisions, such as those made during Claude Code sessions. architecture-decision-records is a skill that captures and records architectural decisions made during coding sessions, providing a transparent and structured approach to decision-making.

Features

Auto-detect decision moments using AI
Record context and alternatives considered
Maintain an ADR log for future developers
Use the lightweight ADR format proposed by Michael Nygard
Capture decisions during planning phases and coding sessions
Read existing ADRs to understand past decisions

# Core Topics

affaan-m affaan-m
[105.8k]
[13742]
Updated: 3/25/2026

Agent Capability Analysis

The architecture-decision-records skill by affaan-m is an open-source official AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for for Claude Code, architecture decision records, ADR format.

Ideal Agent Persona

Ideal for Code Analysis Agents requiring structured documentation of architectural decisions, such as those made during Claude Code sessions.

Core Value

Empowers agents to capture and maintain Architecture Decision Records (ADRs) in a lightweight format, utilizing Markdown and including decision context, alternatives considered, and rationale, thereby enhancing codebase transparency and maintainability through the use of ADR logs and Michael Nygard's ADR format.

Capabilities Granted for architecture-decision-records

Automating the documentation of architectural trade-offs during planning phases
Generating structured ADRs for significant codebase decisions, such as framework or library choices
Debugging codebase evolution by tracing back to original design decisions and rationale

! Prerequisites & Limits

  • Requires explicit user activation or specific trigger phrases
  • Dependent on user input for decision context and alternatives
  • Limited to Markdown format for ADR documentation
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

architecture-decision-records

Streamline coding decisions with Architecture Decision Records for Claude Code. Auto-detect decision moments, record context, and maintain an ADR log for...

SKILL.md
Readonly

Architecture Decision Records

Capture architectural decisions as they happen during coding sessions. Instead of decisions living only in Slack threads, PR comments, or someone's memory, this skill produces structured ADR documents that live alongside the code.

When to Activate

  • User explicitly says "let's record this decision" or "ADR this"
  • User chooses between significant alternatives (framework, library, pattern, database, API design)
  • User says "we decided to..." or "the reason we're doing X instead of Y is..."
  • User asks "why did we choose X?" (read existing ADRs)
  • During planning phases when architectural trade-offs are discussed

ADR Format

Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:

markdown
1# ADR-NNNN: [Decision Title] 2 3**Date**: YYYY-MM-DD 4**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN 5**Deciders**: [who was involved] 6 7## Context 8 9What is the issue that we're seeing that is motivating this decision or change? 10 11[2-5 sentences describing the situation, constraints, and forces at play] 12 13## Decision 14 15What is the change that we're proposing and/or doing? 16 17[1-3 sentences stating the decision clearly] 18 19## Alternatives Considered 20 21### Alternative 1: [Name] 22- **Pros**: [benefits] 23- **Cons**: [drawbacks] 24- **Why not**: [specific reason this was rejected] 25 26### Alternative 2: [Name] 27- **Pros**: [benefits] 28- **Cons**: [drawbacks] 29- **Why not**: [specific reason this was rejected] 30 31## Consequences 32 33What becomes easier or more difficult to do because of this change? 34 35### Positive 36- [benefit 1] 37- [benefit 2] 38 39### Negative 40- [trade-off 1] 41- [trade-off 2] 42 43### Risks 44- [risk and mitigation]

Workflow

Capturing a New ADR

When a decision moment is detected:

  1. Initialize (first time only) — if docs/adr/ does not exist, ask the user for confirmation before creating the directory, a README.md seeded with the index table header (see ADR Index Format below), and a blank template.md for manual use. Do not create files without explicit consent.
  2. Identify the decision — extract the core architectural choice being made
  3. Gather context — what problem prompted this? What constraints exist?
  4. Document alternatives — what other options were considered? Why were they rejected?
  5. State consequences — what are the trade-offs? What becomes easier/harder?
  6. Assign a number — scan existing ADRs in docs/adr/ and increment
  7. Confirm and write — present the draft ADR to the user for review. Only write to docs/adr/NNNN-decision-title.md after explicit approval. If the user declines, discard the draft without writing any files.
  8. Update the index — append to docs/adr/README.md

Reading Existing ADRs

When a user asks "why did we choose X?":

  1. Check if docs/adr/ exists — if not, respond: "No ADRs found in this project. Would you like to start recording architectural decisions?"
  2. If it exists, scan docs/adr/README.md index for relevant entries
  3. Read matching ADR files and present the Context and Decision sections
  4. If no match is found, respond: "No ADR found for that decision. Would you like to record one now?"

ADR Directory Structure

docs/
└── adr/
    ├── README.md              ← index of all ADRs
    ├── 0001-use-nextjs.md
    ├── 0002-postgres-over-mongo.md
    ├── 0003-rest-over-graphql.md
    └── template.md            ← blank template for manual use

ADR Index Format

markdown
1# Architecture Decision Records 2 3| ADR | Title | Status | Date | 4|-----|-------|--------|------| 5| [0001](0001-use-nextjs.md) | Use Next.js as frontend framework | accepted | 2026-01-15 | 6| [0002](0002-postgres-over-mongo.md) | PostgreSQL over MongoDB for primary datastore | accepted | 2026-01-20 | 7| [0003](0003-rest-over-graphql.md) | REST API over GraphQL | accepted | 2026-02-01 |

Decision Detection Signals

Watch for these patterns in conversation that indicate an architectural decision:

Explicit signals

  • "Let's go with X"
  • "We should use X instead of Y"
  • "The trade-off is worth it because..."
  • "Record this as an ADR"

Implicit signals (suggest recording an ADR — do not auto-create without user confirmation)

  • Comparing two frameworks or libraries and reaching a conclusion
  • Making a database schema design choice with stated rationale
  • Choosing between architectural patterns (monolith vs microservices, REST vs GraphQL)
  • Deciding on authentication/authorization strategy
  • Selecting deployment infrastructure after evaluating alternatives

What Makes a Good ADR

Do

  • Be specific — "Use Prisma ORM" not "use an ORM"
  • Record the why — the rationale matters more than the what
  • Include rejected alternatives — future developers need to know what was considered
  • State consequences honestly — every decision has trade-offs
  • Keep it short — an ADR should be readable in 2 minutes
  • Use present tense — "We use X" not "We will use X"

Don't

  • Record trivial decisions — variable naming or formatting choices don't need ADRs
  • Write essays — if the context section exceeds 10 lines, it's too long
  • Omit alternatives — "we just picked it" is not a valid rationale
  • Backfill without marking it — if recording a past decision, note the original date
  • Let ADRs go stale — superseded decisions should reference their replacement

ADR Lifecycle

proposed → accepted → [deprecated | superseded by ADR-NNNN]
  • proposed: decision is under discussion, not yet committed
  • accepted: decision is in effect and being followed
  • deprecated: decision is no longer relevant (e.g., feature removed)
  • superseded: a newer ADR replaces this one (always link the replacement)

Categories of Decisions Worth Recording

CategoryExamples
Technology choicesFramework, language, database, cloud provider
Architecture patternsMonolith vs microservices, event-driven, CQRS
API designREST vs GraphQL, versioning strategy, auth mechanism
Data modelingSchema design, normalization decisions, caching strategy
InfrastructureDeployment model, CI/CD pipeline, monitoring stack
SecurityAuth strategy, encryption approach, secret management
TestingTest framework, coverage targets, E2E vs integration balance
ProcessBranching strategy, review process, release cadence

Integration with Other Skills

  • Planner agent: when the planner proposes architecture changes, suggest creating an ADR
  • Code reviewer agent: flag PRs that introduce architectural changes without a corresponding ADR

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is architecture-decision-records?

Ideal for Code Analysis Agents requiring structured documentation of architectural decisions, such as those made during Claude Code sessions. architecture-decision-records is a skill that captures and records architectural decisions made during coding sessions, providing a transparent and structured approach to decision-making.

How do I install architecture-decision-records?

Run the command: npx killer-skills add affaan-m/everything-claude-code/architecture-decision-records. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for architecture-decision-records?

Key use cases include: Automating the documentation of architectural trade-offs during planning phases, Generating structured ADRs for significant codebase decisions, such as framework or library choices, Debugging codebase evolution by tracing back to original design decisions and rationale.

Which IDEs are compatible with architecture-decision-records?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for architecture-decision-records?

Requires explicit user activation or specific trigger phrases. Dependent on user input for decision context and alternatives. Limited to Markdown format for ADR documentation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add affaan-m/everything-claude-code/architecture-decision-records. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use architecture-decision-records immediately in the current project.

Related Skills

Looking for an alternative to architecture-decision-records or another official skill for your workflow? Explore these related open-source skills.

View All

flags

Logo of facebook
facebook

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

243.6k
0
Developer

extract-errors

Logo of facebook
facebook

Use when adding new error messages to React, or seeing unknown error code warnings.

243.6k
0
Developer

fix

Logo of facebook
facebook

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

243.6k
0
Developer

flow

Logo of facebook
facebook

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

243.6k
0
Developer