adr-writing
БесплатноБез исполняемых скриптовНе проверенWrite and revise the ADRs in `docs/adr/` and their index `docs/ARCHITECTURE.md` so a first-time reader understands them alone. Covers the file conventions…
от lablup★ 137 звёзд на GitHubОб этом скилле
ADR writing
A decision nobody can read was not recorded. This skill governs the shape of
every file under docs/adr/ and of docs/ARCHITECTURE.md: how the file is
named and retired, how the sections run, when to draw instead of explain, and
what must hold before the document lands. When a change needs an ADR and what
an agent owes the ADRs in force is .claude/rules/adr.md, loaded in every
session; this skill does not repeat it.
Every sentence must pass one test: would someone meeting this codebase for the first time understand it without asking a question? If not, the fix belongs in the writing, not in the reader.
What an ADR is for
An ADR records an architecture-level decision: what was chosen, which alternatives were dropped and why, and what shape the code must now take. The reader is an agent or a person who will build against this decision months from now, not the author and not today's reviewer.
- Enough context, and no more. A line survives only if that reader would act differently for having read it.
- Never narrate your thinking. Deliberation, reversals, what an earlier draft said, what you worried about — none of it belongs. State the fact, the option, or the decision.
- The document never talks about itself. No "covered in the last section", no "this document does not decide X". Say the thing or delete it.
- Link outward instead of retelling. When the context lives in another ADR, a source file, an issue, or an upstream document, cite it and reproduce only the sentence the reader must act on.
- Name the scope boundary once. What is out of scope gets one line — never the reasoning for deferring it, never a sketch of the deferred design.
After reading, does the reader know what was chosen, what was rejected, and what shape the code must take? If any of the three is missing it is a memo, not a decision record.
ADR file conventions
This is the definition of how an ADR file is named, titled, and retired. The
one other copy is .github/instructions/adr.instructions.md, which restates
the points a review bot needs because it cannot load a skill (REVIEW.md points
reviewers at the ADRs); keep the two in step.
- Filename —
NNNN-title.md, for example0001-explicit-project-prop-contract.md. The next number is the highestNNNNindocs/adr/plus one. Numbers are never reused, so when the sequence has a gap the deleted number stays retired;git log -- docs/adrshows it. - Title —
# NNNN — <English noun phrase>(T1–T6). An issue key goes in the sources section, never in the title. A supersede pointer goes on its own line, never in the title. - No status field. An ADR on
mainis a decision in force — landing it there, merged and human-approved, is the record. A draft under review is proposed by virtue of sitting in an unmerged PR, and nothing marks it in the file. The one marker a file ever carries is reversal. - Reversing a decision — do not edit the existing ADR's reasoning. Either
keep the file and add a top line
> superseded by NNNNnaming what replaced it, or delete it outright. Both are allowed, and deleting is usually right once the decision and the code it described are both gone, because a retired file is then a trap a reader has to disprove. Git history holds what it said. Convert inbound references in surviving documents and source comments to plainADR NNNNmentions. - Partial replacement — if the new ADR replaces only part of the old, keep the old file, say so in the new ADR, and add a scoped pointer line rather than the blanket supersede marker.
- Mention form — documents and PR bodies write
ADR NNNN. Source comments written before this convention sayADR-NNNN; they are corrected when the file is next edited, never swept. - Language pair — every ADR is two files:
NNNN-title.mdin English, the authority, andNNNN-title.ko.md, its Korean translation (ADR 0018);docs/ARCHITECTURE.mdlikewise hasdocs/ARCHITECTURE.ko.md. Write the English file first, then translate it; a change to the English file changes the.ko.mdin the same PR. The Korean file keeps the English H1 title, the same###subsections and the same mermaid diagrams, and follows references/korean-companion.md. Identifiers are written as they appear in the code in both. - Single home — a design decision is recorded here and nowhere else. Do
not create
.specs/directories, design notes, or plan files in the repository; implementation plans and task breakdowns live in the GitHub issue and the PR (ADR 0018).
Phase 0 — Gather what the document must agree with
Read these before writing, so the draft does not contradict what already landed.
- The ADRs this decision touches, including the ones it supersedes or
narrows, and their rows in
docs/ARCHITECTURE.md. - The source files the decision names, so identifiers in th
Установить adr-writing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл adr-writing?
Write and revise the ADRs in `docs/adr/` and their index `docs/ARCHITECTURE.md` so a first-time reader understands them alone. Covers the file conventions (name, title, no status field, how a decision is retired), the section skeleton, the writing rules for titles, terms, and sentences, mermaid usage and its syntax traps, and the checks a document passes before it lands. Use before authoring a new ADR, before revising one, and before landing any change under `docs/adr/`. Trigger on "ADR 써줘", "결정 기록 남겨줘", "write an ADR", "architecture decision record", or when an implementation needs a decision no ADR in force covers. When a change needs an ADR, and what an agent owes the ADRs in force, is `.claude/rules/adr.md`.
Как установить скилл adr-writing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adr-writing запускает скрипты?
Нет, скилл состоит только из инструкций (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