architecture-decision-records
Что он делает
Этот инструмент создает формальную запись важных решений об архитектуре вашего программного проекта. Он сохраняет эти решения в простых для чтения текстовых файлах, которые называются ADR и хранятся вместе с кодом.
Когда использовать
- ✓Когда вы выбираете технологию (например, базу данных или фреймворк).
- ✓Когда обсуждаете плюсы и минусы разных подходов.
- ✓Когда кто-то спрашивает, почему было сделано именно это решение.
Ссылка на скилл
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/architecture-decision-records/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Запиши это решение: мы будем использовать базу данных PostgreSQL вместо MongoDB.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент определяет, когда принято важное решение. Затем он собирает контекст, рассмотренные альтернативы и последствия и оформляет всё в текстовый файл ADR.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
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:
# ADR-NNNN: [Decision Title]
**Date**: YYYY-MM-DD
**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
**Deciders**: [who was involved]
## Context
What is the issue that we're seeing that is motivating this decision or change?
[2-5 sentences describing the situation, constraints, and forces at play]
## Decision
What is the change that we're proposing and/or doing?
[1-3 sentences stating the decision clearly]
## Alternatives Considered
### Alternative 1: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]
### Alternative 2: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]
## Consequences
What becomes easier or more difficult to do because of this change?
### Positive
- [benefit 1]
- [benefit 2]
### Negative
- [trade-off 1]
- [trade-off 2]
### Risks
- [risk and mitigation]
Workflow
Capturing a New ADR
When a decision moment is detected:
- Initialize (first time only) — if
docs/adr/does not exist, ask the user for confirmation before creating the directory, aREADME.mdseeded with the index table header (see ADR Index Format below), and a blanktemplate.mdfor manual use. Do not create files without explicit consent. - Identify the decision — extract the core architectural choice being made
- Gather context — what problem prompted this? What constraints exist?
- Document alternatives — what other options were considered? Why were they rejected?
- State consequences — what are the trade-offs? What becomes easier/harder?
- Assign a number — scan existing ADRs in
docs/adr/and increment - Confirm and write — present the draft ADR to the user for review. Only write to
docs/adr/NNNN-decision-title.mdafter explicit approval. If the user declines, discard the draft without writing any files. - Update the index — append to
docs/adr/README.md
Reading Existing ADRs
When a user asks "why did we choose X?":
- Check if
docs/adr/exists — if not, respond: "No ADRs found in this project. Would you like to start recording architectural decisions?" - If it exists, scan
docs/adr/README.mdindex for relevant entries - Read matching ADR files and present the Context and Decision sections
- 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
# Architecture Decision Records
| ADR | Title | Status | Date |
|-----|-------|--------|------|
| [0001](0001-use-nextjs.md) | Use Next.js as frontend framework | accepted | 2026-01-15 |
| [0002](0002-postgres-over-mongo.md) | PostgreSQL over MongoDB for primary datastore | accepted | 2026-01-20 |
| [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)
…
Частые вопросы
Что такое ADR?
ADR расшифровывается как «Architecture Decision Record», то есть «запись архитектурного решения». Это простой документ, который фиксирует важное решение о структуре программы.
Где хранятся эти записи?
Они сохраняются как текстовые файлы Markdown в папке `docs/adr/` внутри вашего проекта.
Нужно ли создавать эти файлы вручную?
Нет, инструмент может создавать и вести их за вас, когда вы принимаете решение.
Подробности
Оригинальное описание автора
Capture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an index README. Use when the user says 'record this decision' or 'ADR this', chooses between frameworks or databases, discusses trade-offs, or asks why the codebase is shaped this way.
repo: affaan-m/ECC
Популярность
- Звёзды на GitHub
- 280k
- Место в рейтинге
- #139
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
accessibility
280kПомогает агенту создавать интерфейсы, которыми может пользоваться каждый. Следит, чтобы сайты и приложения работали для людей с нарушениями зрения или моторики.
agent-architecture-audit
280kЗаставляет агента проверить, всё ли работает правильно. Находит и исправляет проблемы в системах ИИ, чтобы они работали как задумано.
agent-eval
280kПомогает агенту сравнивать ИИ-инструменты для программирования. Измеряет, какой быстрее, дешевле и надёжнее для конкретных задач.
agent-harness-construction
280kПомогает агенту лучше понимать, как выполнять задачи. Оптимизирует инструменты и инструкции агента, чтобы повысить шансы на успех.
Похожие скиллы
technical-documentation
394kПомогает агенту писать и проверять понятную техническую документацию и инструкции для агентов, чтобы людям и ИИ-инструментам было легко по ним работать.
archify
260kУстанавливает Archify, который превращает небольшую спецификацию JSON в проверенную интерактивную HTML-диаграмму, которую можно экспортировать как изображение или видео.
concept-diagrams
260kСоздает понятные плоские учебные диаграммы в одном файле HTML с графикой SVG, охватывая физику, биологию, анатомию, планировки и процессы.