Creates structured, immutable ADR files to document technical choices, trade-offs, and project decisions.
Install
mkdir -p .claude/skills/adr-landphieran && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/19153" && unzip -o skill.zip -d .claude/skills/adr-landphieran && rm skill.zipInstalls to .claude/skills/adr-landphieran
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Record an Architecture Decision Record (ADR). Produces an immutable docs/architecture/ADR-[NNN]-[title].md capturing the context, options considered, decision made, and consequences. Use when making any significant technical decision about architecture, technology choice, or design pattern.Key capabilities
- →Determine the next sequential Architecture Decision Record (ADR) number
- →Gather context, alternatives, decision, and consequences for an ADR
- →Scaffold a new ADR document with a predefined template
- →Set the status of a new ADR (Proposed or Accepted)
- →Append a new ADR entry to the architecture index (`README.md`)
- →Cross-reference and update older ADRs if superseded
How it works
The skill determines the next ADR number, gathers decision details, scaffolds a new ADR document using a template, sets its status, and updates the architecture index.
Inputs & outputs
When to use adr
- →Document a technology choice
- →Record an architectural pattern
- →Explain trade-offs of a decision
About this skill
ADR Skill
Create an Architecture Decision Record at docs/architecture/ADR-[NNN]-[title].md.
The argument is the decision title in kebab-case: /adr use-nextauth or /adr postgresql-for-primary-db.
ADRs are immutable. Once accepted, never edit the content. If a decision changes, create a new ADR that supersedes the old one.
Process
Step 1: Determine ADR number
Read docs/architecture/ to find the highest existing ADR number.
The new ADR gets the next sequential number (zero-padded to 3 digits: ADR-001, ADR-002, etc.).
If no ADRs exist yet, start at ADR-001.
Step 2: Gather context
Ask the user (or infer from context):
- What problem or decision is this ADR about?
- What alternatives were considered?
- What was decided?
- What are the consequences (positive and negative)?
- Is this tied to a specific feature? If yes, what is the feature number? (Used in frontmatter — omit if the decision is cross-cutting.)
If already in conversation context with enough information, skip asking and draft directly.
Step 3: Scaffold the ADR
Create docs/architecture/ADR-[NNN]-[title].md using this template:
---
feature: "[NNN]" # omit this line if the decision is cross-cutting (not tied to one feature)
---
# ADR-[NNN]: [Decision Title]
**Status**: Proposed | Accepted | Superseded by ADR-[NNN]
**Date**: [YYYY-MM-DD]
**Supersedes**: [ADR-NNN if applicable]
## Context
[What is the problem or situation that requires a decision?
What forces are at play — technical constraints, team preferences, deadlines, compliance requirements?
Be specific about what prompted this decision now.]
## Options Considered
### Option 1: [Name]
[Brief description]
**Pros:**
- [Pro]
**Cons:**
- [Con]
### Option 2: [Name]
[Brief description]
**Pros:**
- [Pro]
**Cons:**
- [Con]
### Option 3: [Name] (if applicable)
...
## Decision
**We will use [Option N].**
[1-3 sentences explaining the primary reason for this choice over the alternatives.]
## Consequences
**Positive:**
- [Expected benefit]
- [Expected benefit]
**Negative / Trade-offs:**
- [Known downside or limitation]
- [What this decision makes harder]
**Neutral:**
- [Something that changes but isn't clearly good or bad]
Step 4: Set status
- New ADRs start with Proposed
- Ask the user: "Should this ADR be marked Accepted, or leave it as Proposed for review?"
Step 5: Append to the architecture index
Append to docs/architecture/README.md:
| [ADR-NNN] | [Decision Title] | Proposed/Accepted | [date] |
Step 6: Cross-reference if superseding
If this ADR supersedes an older one:
- Add
**Supersedes**: ADR-[old-number]in the header - Edit the old ADR's Status line:
Superseded by ADR-[new-number](this is the only allowed edit to an accepted ADR)
Output
docs/architecture/ADR-[NNN]-[title].md — an immutable decision record
Example
/adr use-nextauth
Produces: docs/architecture/ADR-003-use-nextauth.md
Checklist Before Done
- ADR number is correct (sequential, zero-padded, no gaps)
- At least 2 options considered and documented with pros/cons
- The Decision section clearly states which option was chosen and why
- Consequences section includes both positive and negative trade-offs
- Status is set (Proposed or Accepted — not left blank)
- If superseding an older ADR: old ADR's status line updated to
Superseded by ADR-[NNN] - Row appended to
docs/architecture/README.md - ADR is not created for decisions that are already obvious from the code
When not to use it
- →When making a decision that is already obvious from the code
- →When editing the content of an already accepted ADR
- →When the decision is not significant enough to warrant an ADR
Limitations
- →ADRs are immutable once accepted, requiring a new ADR for changes
- →It requires manual input for context, alternatives, and consequences
- →It only allows editing an old ADR's status line if superseded
How it compares
This skill standardizes the documentation of architectural decisions with a sequential numbering system and predefined template, ensuring consistency and immutability, unlike unstructured decision notes.
Compared to similar skills
adr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| adr (this skill) | 0 | 4mo | No flags | Beginner |
| discovery-step-7-prd-authoring | 0 | 3mo | No flags | Intermediate |
| spec-kit-workflow | 11 | 7mo | No flags | Intermediate |
| c4-architecture-documentation | 0 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
discovery-step-7-prd-authoring
nakamura1201
製品要求仕様書(PRD)を作成するスキル。背景と目的、ユーザーストーリー、機能要件、非機能要件、成功指標に加えて事業性(獲得チャネル・収益仮説・主要リスク)を統合する。開発着手前の最終仕様化依頼時に使う。
spec-kit-workflow
jmanhype
Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).
c4-architecture-documentation
Hack23
Document system architecture using C4 model with context, container, component views and Mermaid diagrams
orion-cli
peckop
Orion CLI dokümantasyon pipeline komutlarını öğretir, tree veya şema
wiki
jmstar85
>
business-knowledge-workflow
TencentBlueKing
业务知识获取与 Skill 文档编写工作流。当用户需要熟悉新业务模块、从 iWiki 获取文档、结合代码分析生成架构文档、或将业务知识沉淀为 Skill 时使用。