create-adr
Skill1 starsChanged 15 days agoMITView on GitHub
Author or compress Architecture Decision Records (ADRs) using the Nygard ADR Markdown template extended with MADR's "Alternatives considered" section. Use when the user asks to create an ADR, compress a `.specify` spec + plan into an ADR, supersede an existing ADR, summarize a merged PR / stack of PRs as an ADR, or mentions "ADR", "architecture decision record", "decision log", or "compress spec to ADR". Always asks the engineer first for (1) the input mode and (2) the destination folder; never assumes a default location.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- atomicinnovation/acceleratortheir own version, first seen Nov 22, 2026
- jerelvelarde/chalk-skillstheir own version, first seen Nov 22, 2026
- torrust/torrust-trackertheir own version, first seen Nov 16, 2026
- oze-xxbumpxx/cookpittheir own version, first seen Nov 16, 2026
- microsoft/fhir-servertheir own version, first seen Nov 9, 2026
- codenamev/ai-software-architecttheir own version, first seen Nov 9, 2026
Used with
Projects with it also use create-rfc, create-plan and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
NVIDIASkillcreate-rfc
Create OpenShell RFC proposals in rfc/ from a design request. Use when the user asks to write, draft, start, create, or update an RFC, Request for Comments, architecture proposal, API proposal, process proposal, or cross-cutting design proposal that should follow the OpenShell RFC process and template.
Also in 3 projects that use this
JetBrainsSkillcreate-plan
Research the codebase and create an implementation plan with architecture notes, design document, and track decomposition. Use when starting a new feature or large change.
Also in 4 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- microsoft/fhir-server★ 1.4ksame name
- torrust/torrust-tracker★ 539same name
- pandazki/pneuma-skills★ 162same name
- codenamev/ai-software-architect★ 81same name
- atomicinnovation/accelerator★ 36same name
- emiliosheinz/agent-skills★ 20same name
- jerelvelarde/chalk-skills★ 8same name
- Ronnasayd/aipp★ 5same name
- pitimon/claude-governance★ 4same name
- adolfoaranaes12/BMAD-ENHANCED★ 2same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- career-hub-toolkitSkill
- career-ladderSkill
- cloud-workspaceSkill
- disciplinesSkill
- doc-templatesSkill
- setup-zeevolution-skillsSkill
- service-handoffSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. 0 are common, 18 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Always ask, never guess: Ask the input mode and the destination folder before touching any file.
- Very specific: line 20
mkdocs.yaml is optional: Only update it after the file is written and the user confirms.
- Very specific: line 35
Use wc -c <file> | awk '{print $1/4}' for a quick approximate token count (≈ 4 chars/token).
- Distinctive: line 39
When the Decision touches code, name only the 1–2 classes that anchor the design — typically:
- Distinctive: line 60
If you find yourself listing more than 2–3 class names, or writing bullets that describe how the code is structured, cut them.
- Distinctive: line 64
Create a task list (the agent's to-do / task tool, if it has one) with one item per phase and update it as you go:
- Distinctive: line 78
Ask the engineer which form they want, presenting all four modes:
- Distinctive: line 89
Ask the engineer for the destination folder.
- Distinctive: line 99
Use the same width (3-digit if the folder uses 3, 4-digit if 4).
- Very specific: line 106
Ask which spec + plan files to compress (offer a picker showing .specify/specs/*.md and .specify/plans/*.md that exist).
- Distinctive: line 107
Read both files in full.
- Distinctive: line 113
Ask for one or more PR numbers / URLs.
- Very specific: line 115
Read PR bodies to extract decision rationale.
- Very specific: line 116
If gh search prs --owner <owner> --merged "<feature keyword>" returns related PRs in other repos, ask whether to include them.
- Distinctive: line 120
Ask, one question per message, for:
- Distinctive: line 133
Ask which ADR is being superseded (file path).
- Distinctive: line 134
Read it; carry forward Context and the now-obsolete Decision into the new ADR's Context section as "Prior state".
- Very specific: line 139
Read template.md for the exact section ordering and field labels.
- Distinctive: line 149
After writing, do a quick self-review pass:
- Very specific: line 152
No-dangling-links check: every relative link resolves.
- Distinctive: line 162
Update their parent index READMEs (if they exist):
- Very specific: line 164
Search the repo (rg / Grep) for any other file referencing the deleted paths.
- Distinctive: line 173
No automatic cleanup; just remind the engineer to commit.
- Very specific: line 177
Look for mkdocs.yaml (or mkdocs.yml) at the repo root first, then at the app root (e.g.
- Very specific: line 182
If absent, insert an ADRs: group with Overview: …/adrs/README.md first, then the new ADR.
- Very specific: line 184
Run mkdocs build --strict (or the repo's equivalent) if available.
- Distinctive: line 206
If the repo has its own PR-creation command or skill, mention it as the next step.
- Distinctive: line 210
When working in an unfamiliar repo:
- Distinctive: line 225
Inventing a default folder: Always ask. Common conventions are suggestions, not defaults.
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
create-adr
Produce a single, durable Architecture Decision Record in the chosen folder, following:
- Base structure: Nygard ADR — Markdown rendering (Title, Status, Context, Decision, Consequences).
- Alternatives considered: MADR 4.0.0 — full template.
- Catalogue: adr.github.io/adr-templates (browse if a future ADR needs a different shape, e.g. Y-Statement).
The fully rendered template lives in template.md next to this file — read it when generating the ADR body.
Hard rules
- Always ask, never guess. Ask the input mode and the destination folder before touching any file. Use the agent's question tool if it has one (e.g. Claude's question dialog, Cursor's ask-questions tool); otherwise ask conversationally.
- No silent deletes. In
compressmode, list the source files you will delete and ask for confirmation before doing it. - mkdocs.yaml is optional. Only update it after the file is written and the user confirms.
- Stay self-contained. Once written, the ADR must not link to files that the same flow is about to delete; inline whatever is necessary (esp.
Alternatives considered). - Defer implementation to code. An ADR records the why, not the how. Concrete wiring (Spring beans, exception classes, HTTP statuses, config keys, IRSA scoping, test names) lives in code; the ADR should name at most one or two anchor classes that lead the reader into the right place — the rest is a one-line pointer back to the code and the Related artifacts PRs.
- Respect the size budget. See § Size budget below. If you exceed it, cut implementation detail first — never cut Context, Alternatives, or Consequences.
Size budget
ADRs are read by humans (often years later, often during incidents). Long ADRs go unread.
| Slice | Target | Soft cap | Action if exceeded |
| Narrative body (Context + Alternatives + Decision + Consequences + References + Changelog, excluding tables) | ~1500 tokens | 2000 tokens | Cut implementation detail; replace bullet lists describing code mechanics with a one-line pointer + 1–2 anchor class names. |
| Reference tables (Related artifacts, Supported regions, Mitigations matrix) | as needed | — | Tables are reference data; don't trim for budget — trim for relevance. |
| Whole file | ~2500 tokens | 4000 tokens | If both the narrative and tables push past 4000 tokens, split: keep the ADR focused on the decision, and move overflow into a sibling doc (e.g. <NNN>-multi-region-storage-runbook.md) referenced from the ADR. |
Use wc -c <file> | awk '{print $1/4}' for a quick approximate token count (≈ 4 chars/token).
The "anchor classes" pattern
When the Decision touches code, name only the 1–2 classes that anchor the design — typically:
- the request/DTO that carries the new option (write path), and
- the persisted column / domain entity that materialises it (read path).
Good — names anchors, leaves the rest to code:
We make the file-storage adapter region-aware by routing every object-storage operation through clients keyed by
Region, with the region read from:
UploadRequest.regionon writes, and- the persisted
StoredFile.regioncolumn on reads.Concrete wiring (dependency-injection setup, the
regionmetric tag, theUnsupportedRegionException, startup validation, cloud permission scoping, local emulator parity) — read the code; the PRs in Related artifacts link the exact diffs.
Bad — restates code as prose:
- Add a
StoragePropertiesconfig class with aMap<Region, RegionConfig>...RegionClientsConfigproduces three clients keyed byRegion...BlobStorageAdapterswaps three singletons for three maps...- ... (10 bullets total)
If you find yourself listing more than 2–3 class names, or writing bullets that describe how the code is structured, cut them. Code is the source of truth for the "how".
Workflow
Create a task list (the agent's to-do / task tool, if it has one) with one item per phase and update it as you go:
1. Pick input mode (compress | from-pr | free-prompt | supersede)
2. Pick destination folder + ADR number
3. Gather mode-specific inputs
4. Draft and write the ADR
5. Mode-specific cleanup
6. (Optional) Update mkdocs.yaml
7. Summarize and hand offPhase 1 — Pick input mode
Ask the engineer which form they want, presenting all four modes:
| Mode | Use when |
compress | An existing .specify/specs/<name>.md + .specify/plans/<name>.md pair represents work that has now shipped. Skill compresses both into one ADR and deletes the sources. |
from-pr | A merged PR (or stack) represents the decision. Skill fetches metadata via gh pr view, summarises the decision, and includes the PRs in a Related artifacts table. |
free-prompt | No spec/plan/PR exists yet — the engineer wants to dictate Context / Decision / Consequences interactively. |
supersede | Replaces an existing ADR. Creates the new ADR and flips the previous one's Status to Superseded by ADR-NNN. |
Phase 2 — Pick destination folder + ADR number
Ask the engineer for the destination folder. Never assume. Helpful suggestions (offer, don't dictate):
- Monorepos: a per-service folder is common, e.g.
docs/<service>/adrs/orservices/<service>/docs/adr/. Look for existing ADR folders first (see § Discovering repo conventions). - Other repos:
docs/adr/is the most common; some teams usearchitecture/decisions/(adr-tools default). - If the folder doesn't exist: offer to scaffold it with a short
README.md: what ADRs are, the template used (Nygard + MADR "Alternatives considered"), the lifecycle (Proposed → Accepted → Superseded), and a table listing each ADR.
Then determine the next number:
- List
*.mdfiles in the folder. - Detect the highest
NNN-orNNNN-prefix. - Use the same width (3-digit if the folder uses 3, 4-digit if 4). Default to 3-digit zero-padded for new folders.
- Confirm with the engineer:
Next ADR will be NNN-<kebab-slug>.md — confirm or override.
Phase 3 — Mode-specific input gathering
compress
- Ask which spec + plan files to compress (offer a picker showing
.specify/specs/*.mdand.specify/plans/*.mdthat exist). - Read both files in full.
- Extract: problem, constraints, chosen approach, alternatives, consequences, validation/rollout, file change inventory (used for "Related artifacts").
- Surface anything the spec mentions about other repos (Terraform / k8s manifests / IRSA) so the Related artifacts table can be cross-repo.
from-pr
- Ask for one or more PR numbers / URLs.
- For each, run
gh pr view <num> --repo <owner>/<repo> --json title,body,mergedAt,mergeCommit,url,headRefName,baseRefName. - Read PR bodies to extract decision rationale; treat each PR as a candidate row in the Related artifacts table (sorted by
mergedAt). - If
gh search prs --owner <owner> --merged "<feature keyword>"returns related PRs in other repos, ask whether to include them.
free-prompt
Ask, one question per message, for:
- Title (imperative, short).
- Date decided / date in production (offer "use today" or detect via
git log -1 --format=%cI). - Deciders / Consulted.
- Context — what problem, what constraints (no longer than ~200 words).
- Alternatives considered (at least 2 rejected options with pros/cons).
- Decision — what we chose and why.
- Consequences — positive, negative, neutral, risks + mitigations.
- Related artifacts (PRs / runbooks / dashboards).
supersede
- Ask which ADR is being superseded (file path).
- Read it; carry forward Context and the now-obsolete Decision into the new ADR's Context section as "Prior state".
- The new ADR's Status header should say
Accepted — supersedes ADR-<old>. A later cleanup step will edit the old ADR.
Phase 4 — Draft and write
- Read
template.mdfor the exact section ordering and field labels. - Render the ADR with:
Status: Accepted — implemented and rolled out to production.if applicable, orStatus: Proposed/Status: Acceptedper context.Date in production (approx.)— when uncertain, use the merge timestamp of the decisive commit (git log -1 --format=%cI <commit>); explicitly note that it's an approximation and how to refine it.Related artifactstable sorted in infrastructure-first rollout order (deployments → infrastructure → app code).Alternatives consideredwith at least 2 rejected options, each with Pros / Cons.Consequencessplit into Positive / Negative / Mitigations / Neutral.- Decision section follows the anchor-classes pattern: name at most 1–2 classes that anchor the design (typically the write-path DTO and the read-path persisted column/entity). Everything else collapses into a one-line pointer to the code + the Related artifacts PRs.
- Inline anything that the
compressstep is about to delete (do not leave[link to spec]references pointing at soon-to-be-deleted files). - Write the file to the destination chosen in Phase 2. If the agent can't write files (chat-only app), deliver the ADR as one fenced ```markdown block and say which path it should be saved to. Write the ADR in the language the repo's existing ADRs use (default: the user's language).
- After writing, do a quick self-review pass:
- Token check:
wc -c <file> | awk '{print $1/4}'. If narrative body is over 2000 tokens (or whole file over 4000), cut implementation detail per the § Size budget — never cut Context, Alternatives, or Consequences. - Anchor-classes check: count class/file names referenced in the Decision section. More than 2–3 means you're restating code as prose; collapse the list and add
(read the code; the PRs in Related artifacts link the exact diffs). - No-dangling-links check: every relative link resolves; no
[link to spec]to files thecompressstep is about to delete. - No-TODO check: no
<…>,TBD, orTODOplaceholders left. - Decision clarity check: the Decision can be paraphrased in one sentence by someone reading only that section. If not, rewrite.
- Token check:
Phase 5 — Mode-specific cleanup
compress
- Confirm with the engineer: "I'm about to delete
<spec.md>and<plan.md>. Proceed?" - On approval, delete the spec/plan files.
- Update their parent index READMEs (if they exist):
.specify/specs/README.mdand.specify/plans/README.md→ replace the deleted file's row in theDocumentstable with aFormer → Superseded byrow pointing at the new ADR. Keep the folder's structure description intact (so it stays ready for future initiatives).
- Search the repo (
rg/ Grep) for any other file referencing the deleted paths; offer to update them to point at the new ADR.
supersede
- Edit the old ADR's frontmatter / header
StatustoSuperseded by ADR-<NNN>and link to the new file. - Append a one-line Superseded by entry under the old ADR's
Changelog / Metadatasection (if present).
from-pr and free-prompt
No automatic cleanup; just remind the engineer to commit.
Phase 6 — (Optional) Update mkdocs.yaml
- Look for
mkdocs.yaml(ormkdocs.yml) at the repo root first, then at the app root (e.g.applications/<svc>/mkdocs.yaml). - Skip this phase silently if no mkdocs file exists. Ask the engineer whether to proceed if one does.
- If proceeding:
- Locate the app's
navblock. - Find an existing
- ADRs:subsection. If present, append the new entry under it (mirroring nearby siblings, e.g.- NNN - <Title>: <service>/adrs/<file>.md). - If absent, insert an
ADRs:group withOverview: …/adrs/README.mdfirst, then the new ADR. - Indentation matters. Match the surrounding indentation exactly; copy a neighbouring block as a template if unsure.
- Locate the app's
- Run
mkdocs build --strict(or the repo's equivalent) if available; otherwise print a "you may want to verify" note.
Phase 7 — Summarize and hand off
Print a final summary:
ADR written: <path>
Mode: <mode>
Number: <NNN>
Deleted: <list or "none">
mkdocs.yaml: <updated | skipped | n/a>
Old ADR(s) superseded: <list or "none">
Related artifacts: <count>Then suggest a commit message in the repo's existing style (look at recent commits with git log --oneline -5) — usually:
docs(<scope>): add ADR <NNN> for <topic>If the repo has its own PR-creation command or skill, mention it as the next step. Do not open the PR automatically.
Discovering repo conventions (helper checklist)
When working in an unfamiliar repo:
find <repo-root> -type d \( -iname adr -o -iname adrs -o -iname decisions \) -not -path '*/node_modules/*'— locate existing ADR folders.cat <one-existing-adr.md>— match the numbering width, frontmatter shape, and header style.ls -la <adr-folder>/andcat <adr-folder>/README.md— pick up any README format conventions.git log --oneline -5 -- docs/— match commit-message style.
Tooling references
adr.github.io/adr-templates— canonical catalogue (Nygard, MADR, Y-Statement, others).adr/madr— MADR templates and rationale.architecture-decision-record/architecture-decision-record— Nygard Markdown rendering used as the base.
Anti-patterns to avoid
- Inventing a default folder. Always ask. Common conventions are suggestions, not defaults.
- Linking from the new ADR to files the same flow is about to delete. Inline the content instead.
- Re-numbering existing ADRs to fix gaps. Numbers are monotonically increasing and immutable.
- Picking a non-Nygard/MADR template without telling the engineer. If the conversation suggests Y-Statement or ISO/IEC/IEEE 42010, surface that explicitly and confirm.
- Auto-pushing or auto-PRing. This skill writes files and leaves the engineer to commit / push / open the PR with their usual flow.
- Restating code as prose. A long "Concretely:" list of beans, configs, exceptions, and HTTP status codes belongs in the code (and the PR diffs), not in the ADR. Name 1–2 anchor classes, point at the PRs, stop.
- Letting the ADR grow past 4000 tokens. Long ADRs go unread. If you hit the cap, cut implementation detail first; if the decision truly needs more room, split into a sibling document (e.g.
<NNN>-…-runbook.md).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

