architecture-decision-records · wshobson — скилл для Claude Code: ADR и установка
Помогает создавать и вести Architecture Decision Records: фиксировать контекст решения, сам выбор и его последствия. Пригодится команде, которая хочет сохранять причины архитектурных изменений.
/plugin marketplace add wshobson/agents
/plugin install documentation-generation@claude-code-workflowsЧто делает architecture-decision-records
Скилл помогает определить, когда нужен ADR, оформить значимое техническое решение и поддерживать его статус. В записи описывают контекст, принятое решение и последствия; среди примеров для ADR — выбор базы данных, нового фреймворка или архитектуры безопасности. Для исправления бага или обычного обновления версии ADR не нужен.
В материалах есть структура каталога docs/adr/, правила ведения индекса, жизненный цикл решений и чек-лист ревью. Для черновиков предусмотрены ссылки на шаблоны, а с adr-tools можно создать запись, связать её с другой и сгенерировать оглавление. Перед установкой проверьте, что подходящие шаблоны доступны в проекте. Ставьте скилл, если команде важно помнить, почему она выбрала конкретное решение; для повседневных правок он лишний.
Какие задачи решает
- зафиксировать причины выбора базы данных
- описать компромиссы при переходе на новый фреймворк
- связать новое решение с предыдущими ADR
- проверить ADR перед отправкой на ревью
- обновить статус решения, которое заменили
Примеры запросов агенту
- Создай ADR для выбора PostgreSQL: опиши контекст, решение и последствия.
- Проверь этот ADR по чек-листу ревью и укажи, какие компромиссы не описаны.
- Создай новый ADR, который заменяет решение 3, и обнови индекс.
Как установить architecture-decision-records
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install documentation-generation@claude-code-workflowsКоманда ставит плагин documentation-generation целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill architecture-decision-records -a claude-code3Вручную: положить файлы
~/.claude/skills/architecture-decision-records/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/architecture-decision-records/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill architecture-decision-records -a codex2Вручную: положить файлы
.agents/skills/architecture-decision-records/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill architecture-decision-records -a cursor2Вручную: положить файлы
.cursor/skills/architecture-decision-records/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents architecture-decision-records2Вручную: положить файлы
.github/skills/architecture-decision-records/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/documentation-generation/skills/architecture-decision-recordsВручную: положить файлы
.devin/skills/architecture-decision-records/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора213
Весь набор →Другие версии architecture-decision-records
Похожие
Вопросы о architecture-decision-records
Как установить architecture-decision-records в Claude Code?
Выполните npx skills add wshobson/agents --skill architecture-decision-records -a claude-code. Для установки через маркетплейс во входе также указаны /plugin marketplace add wshobson/agents и /plugin install documentation-generation@claude-code-workflows.
Что делает architecture-decision-records?
Помогает оформлять и вести ADR с контекстом, решением и последствиями. Также описывает статусы записей и процесс ревью.
Для каких решений стоит писать ADR?
Для значимых выборов, например нового фреймворка, технологии базы данных или архитектуры безопасности. Исправления багов и обычные обновления версий в примерах отнесены к случаям, когда ADR можно пропустить.
Исходный текст
SKILL.md · MIT
---
name: architecture-decision-records
description: Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.
---
# Architecture Decision Records
Comprehensive patterns for creating, maintaining, and managing Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions.
## When to Use This Skill
- Making significant architectural decisions
- Documenting technology choices
- Recording design trade-offs
- Onboarding new team members
- Reviewing historical decisions
- Establishing decision-making processes
## Core Concepts
### 1. What is an ADR?
An Architecture Decision Record captures:
- **Context**: Why we needed to make a decision
- **Decision**: What we decided
- **Consequences**: What happens as a result
### 2. When to Write an ADR
| Write ADR | Skip ADR |
| -------------------------- | ---------------------- |
| New framework adoption | Minor version upgrades |
| Database technology choice | Bug fixes |
| API design patterns | Implementation details |
| Security architecture | Routine maintenance |
| Integration patterns | Configuration changes |
### 3. ADR Lifecycle
```
Proposed → Accepted → Deprecated → Superseded
↓
Rejected
```
Before drafting a standard, lightweight, or Y-statement ADR, read [decision templates](references/decision-templates.md).
Before drafting a deprecation ADR or RFC, read [deprecation and RFC templates](references/deprecation-rfc-templates.md).
## ADR Management
### Directory Structure
```
docs/
├── adr/
│ ├── README.md # Index and guidelines
│ ├── template.md # Team's ADR template
│ ├── 0001-use-postgresql.md
│ ├── 0002-caching-strategy.md
│ ├── 0003-mongodb-user-profiles.md # [DEPRECATED]
│ └── 0020-deprecate-mongodb.md # Supersedes 0003
```
### ADR Index (README.md)
```markdown
# Architecture Decision Records
This directory contains Architecture Decision Records (ADRs) for [Project Name].
## Index
| ADR | Title | Status | Date |
| ------------------------------------- | ---------------------------------- | ---------- | ---------- |
| [0001](0001-use-postgresql.md) | Use PostgreSQL as Primary Database | Accepted | 2024-01-10 |
| [0002](0002-caching-strategy.md) | Caching Strategy with Redis | Accepted | 2024-01-12 |
| [0003](0003-mongodb-user-profiles.md) | MongoDB for User Profiles | Deprecated | 2023-06-15 |
| [0020](0020-deprecate-mongodb.md) | Deprecate MongoDB | Accepted | 2024-01-15 |
## Creating a New ADR
1. Copy `template.md` to `NNNN-title-with-dashes.md`
2. Fill in the template
3. Submit PR for review
4. Update this index after approval
## ADR Status
- **Proposed**: Under discussion
- **Accepted**: Decision made, implementing
- **Deprecated**: No longer relevant
- **Superseded**: Replaced by another ADR
- **Rejected**: Considered but not adopted
```
### Automation (adr-tools)
```bash
# Install adr-tools
brew install adr-tools
# Initialize ADR directory
adr init docs/adr
# Create new ADR
adr new "Use PostgreSQL as Primary Database"
# Supersede an ADR
adr new -s 3 "Deprecate MongoDB in Favor of PostgreSQL"
# Generate table of contents (to a separate file, so the hand-written
# index and guidelines in README.md are not overwritten)
adr generate toc > docs/adr/toc.md
# Link related ADRs
adr link 2 "Complements" 1 "Is complemented by"
```
## Review Process
```markdown
## ADR Review Checklist
### Before Submission
- [ ] Context clearly explains the problem
- [ ] All viable options considered
- [ ] Pros/cons balanced and honest
- [ ] Consequences (positive and negative) documented
- [ ] Related ADRs linked
### During Review
- [ ] At least 2 senior engineers reviewed
- [ ] Affected teams consulted
- [ ] Security implications considered
- [ ] Cost implications documented
- [ ] Reversibility assessed
### After Acceptance
- [ ] ADR index updated
- [ ] Team notified
- [ ] Implementation tickets created
- [ ] Related documentation updated
```
## Best Practices
### Do's
- **Write ADRs early** - Before implementation starts
- **Keep them short** - 1-2 pages maximum
- **Be honest about trade-offs** - Include real cons
- **Link related decisions** - Build decision graph
- **Update status** - Deprecate when superseded
### Don'ts
- **Don't change accepted ADRs** - Write new ones to supersede
- **Don't skip context** - Future readers need background
- **Don't hide failures** - Rejected decisions are valuable
- **Don't be vague** - Specific decisions, specific consequences
- **Don't forget implementation** - ADR without action is waste
© Seth Hobson · MIT · wshobson/agents