adr
Keep track of architectural decisions in a structured format using Architecture Decision Records (ADRs).
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 3.0k
- Forks
- 152
01 前言 Front Matter
- name
- adr
- description
- Keep track of architectural decisions in a structured format using Architecture Decision Records (ADRs).
03 SKILL.md 正文
Architecture Decision Records (ADRs)
Manage architectural decisions as structured markdown documents in docs/adr/.
Directory Structure
docs/adr/
├── INDEX.md # Index with TOC (read this first)
├── ADR-001-nats-jetstream-instead-of-kafka.md # Individual ADR
├── ADR-002-embedded-nats-server.md
└── ...
Workflow
Before doing anything
- Read
docs/adr/INDEX.mdto see the current index of all ADRs - Only read individual ADR files if their content is relevant to the current task
Creating a new ADR
- Read
docs/adr/INDEX.mdto determine the next available number - Create the ADR file using the template below
- Update
docs/adr/INDEX.mdto add the new entry to the TOC - FDR sweep: after writing, scan
docs/fdr/INDEX.mdfor features whose design now relates to this ADR. Update those FDRs to cite the new ADR in theirRelated → ADRsline. (ADRs themselves don't carry aRelated FDRssection — citations flow FDR → ADR only.)
Updating an ADR
- Read
docs/adr/INDEX.mdto find the ADR - Read the specific ADR file
- Make changes (typically amending the consequences or adding context)
- Update the TOC in
docs/adr/INDEX.mdif the title changed
Superseding an ADR
- Create a new ADR that references the old one
- Add a note to the old ADR's Context or Decision section pointing to the replacement
- Update the TOC to include the new entry
File Naming
ADR-{NNN}-{kebab-case-slug}.md
NNN: Zero-padded three-digit number, sequential- Slug: Short kebab-case summary of the decision (not the full title)
ADR Template
# ADR-{NNN}: {Title}
**Date:** {YYYY-MM-DD}
## Context
What is the issue that we're seeing that is motivating this decision or change?
## Decision
What is the change that we're proposing and/or doing?
## Consequences
What becomes easier or more difficult to do because of this change?
TOC Format (in INDEX.md)
Each entry in the TOC should be a markdown table row:
| # | Decision | Date |
|---|----------|------|
| [ADR-001](ADR-001-slug.md) | Title of the decision | 2026-03-01 |
04 同仓库更多 Skills
chatto-release-checklist
Check Chatto release readiness, including release metadata, upgrade guidance, and docs website consistency. Use when preparing or reviewing a Chatto release or release PR.
github
Work with GitHub issues, pull requests, and repository information for Chatto. Use for issue searches, bug reports, feature requests, issue updates, and GitHub access checks.
writing-tests
Instructions and hints for writing tests.
update-project-dependencies
Update Chatto Go and frontend dependencies within their compatible version ranges, then run tests.
svelte-docs
Look up official Svelte, SvelteKit, and Svelte CLI documentation.
svelte-core-bestpractices
Guidance on writing fast, robust, modern Svelte code. Load this skill whenever in a Svelte project and asked to write/edit or analyze a Svelte component or module. Covers reactivity, event handling, styling, integration with libraries and more.