adr-drafting
БесплатноБез исполняемых скриптовНе проверенCreates new Architecture Decision Record (ADR) documents for significant architectural changes using a consistent template and repository-aware naming and…
от giuseppe-trisciuoglio★ 373 звезды на GitHubОб этом скилле
ADR Drafting
Creates new Architecture Decision Record (ADR) documents for major architectural choices so teams can keep a clear history of why important technical decisions were made.
Overview
This skill helps create a new ADR from discovery to final markdown file. It confirms the decision details, inspects the repository for any existing ADR conventions, and drafts a new ADR with the standard sections Title, Status, Context, Decision, and Consequences.
When the repository does not already have an ADR convention, default to storing ADRs in docs/architecture/adr and use a zero-padded filename such as 0001-use-postgresql-for-primary-database.md.
See references/template.md for the default ADR template and references/examples.md for example ADRs and naming patterns.
When to Use
Use this skill when a user or agent has decided on a meaningful architectural change and needs to document the rationale, chosen direction, and trade-offs in a new Architecture Decision Record. It fits requests such as creating an ADR, documenting an architecture decision, writing a decision record, or preserving the project history behind an important technical choice.
Instructions
Phase 1: Confirm the ADR inputs
Ask the user for the minimum information needed to draft a new ADR:
- Decision title
- Decision status (
Proposedby default if not yet finalized) - Context: the problem, constraints, or forces driving the decision
- Decision: the chosen approach
- Consequences: what becomes easier, harder, riskier, or more expensive
- Confirm that this request is for a new ADR, not for editing an existing ADR
- Confirm the desired repository language if documentation language is unclear
- Confirm whether any existing ADR naming convention must be preserved
If the user actually wants to update an existing ADR, change statuses in older ADRs, or manage supersession links, explain that this skill only drafts new ADR documents and ask whether they want to proceed with a new record instead.
Phase 2: Discover ADR conventions in the repository
Inspect the repository before drafting:
- Search for likely ADR locations such as:
docs/architecture/adrdocs/adradrarchitecture/adr
- If ADR files already exist, read one to three examples to infer:
- numbering format
- filename pattern
- title format
- language and tone
- If no ADR directory exists, recommend
docs/architecture/adr - Determine the next ADR number from existing files when possible
- If no prior ADR exists, start with
0001
Preferred default naming when no convention exists:
- Directory:
docs/architecture/adr - Filename:
NNNN-short-kebab-title.md - Title:
# ADR-NNNN: <Decision Title>
Phase 3: Draft the ADR
Create a draft using the standard structure:
# ADR-NNNN: Decision Title
## Status
Proposed
## Context
What problem, constraints, or trade-offs led to this decision?
## Decision
What architectural choice was made?
## Consequences
What becomes easier, harder, riskier, or more expensive because of this decision?
Drafting rules:
- Keep the title specific and decision-oriented
- Capture enough context to explain why the decision was needed
- Record the chosen direction clearly and directly
- Include both positive and negative consequences when known
- Do not invent rationale, constraints, or outcomes that the user did not provide
- If critical information is missing, insert concise placeholders or ask follow-up questions before finalizing
Phase 4: Review the draft with the user
Before writing files, present:
- proposed file path
- proposed title
- ADR status
- a concise preview of the drafted sections
Ask for approval before creating the file. If the user wants adjustments, revise the draft first.
Phase 5: Create the ADR file
After approval:
- Create the ADR directory if it does not exist
- Write the ADR markdown file using the repository's established pattern when available
- Preserve the user's wording for decision rationale as much as possible while keeping the document concise
- Report the final file path and summarize what was created
- Stop after creating the new ADR file so the skill remains focused on a single new decision record
Examples
Example 1: New database decision
User request: "Create an ADR for moving from SQLite to PostgreSQL"
Expected flow:
- Confirm the title, status, reasons for the change, and expected consequences
- Check whether the repository already has ADR files
- Draft a new ADR in the existing convention or default to
docs/architecture/adr/0001-move-to-postgresql.md - Ask for approval before writing the file
Example 2: New service boundary
User request: "Document the decision to split billing into a dedicated service"
Expected flow:
- Ask for the architectural context and why the current design is insufficient
- Confirm the chosen boundary and the opera
Установить adr-drafting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobAskUserQuestionВложенные файлы
FAQ
Что делает скилл adr-drafting?
Creates new Architecture Decision Record (ADR) documents for significant architectural changes using a consistent template and repository-aware naming and storage guidance. Use when a user or agent decides on an architectural change, needs to document technical rationale, or wants to add a new ADR to the project history.
Как установить скилл adr-drafting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adr-drafting запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic