adr
Skill288 starsChanged 52 days agoMITView on GitHub
Record an architecture decision as an ADR in api/docs/arch/adr/. Use when choosing between frameworks, libraries, databases, or architectural patterns; stating a decision with reasoning ("we decided X instead of Y because..."); or querying past decisions ("why did we choose X?").
90 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- GustavoAlecio/claude-setuptheir own version, first seen Nov 8, 2026
- computerlovetech/skillstheir own version, first seen Nov 8, 2026
- rvdbreemen/OTGW-firmwaretheir own version, first seen Nov 8, 2026
- axodouble/skillstheir own version, first seen Nov 8, 2026
- RodrigoAnciaes/golem-sddtheir own version, first seen Nov 8, 2026
- n1kben/agentstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use fdr, runbook and 10 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.
thiagofgfSkillfdr
Use when creating, changing, reviewing, retiring, auditing, or backfilling implemented user-visible feature behavior, permissions, feature-specific rationale, tradeoffs, or relationships to architectural decisions.
Also in 3 projects that use this
AnthropicSkillrunbook
Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.
Also in 5 projects that use this
drewdrewthisSkillsweep
Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.
Also in 4 projects that use this
vndeeSkillproduct-spec
Use when starting a new feature, product, or project — before any architecture or code, to define what to build and why
Also in 3 projects that use this
OpenAISkillthreat-model
Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.
Also in 6 projects that use this
montymiSkilltech-spec
Parse and review Technical Specification documents for completeness, consistency, and implementation readiness
Also in 3 projects that use this
Other versions90 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- CrowdDotDev/crowd.dev★ 3.4k78% same
Wrote their own version · 89
- chattocorp/chatto★ 2.9ksame name
- Cosmian/kms★ 372same name
- rvdbreemen/OTGW-firmware★ 213same name
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
- irahardianto/awesome-agv★ 157same name
- jellydn/my-ai-tools★ 127same name
- EmeaAppGbb/spec2cloud★ 100same name
- AsiaOstrich/universal-dev-standards★ 84same name
- theagentplane/tokenops★ 84same name
79 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- commitSkill
- db-migrateSkill
- dcoSkill
- event-trackingSkill
- fix-security-findingSkill
- fix-vulnsSkill
- preflightSkill
- review-prSkill
- setup-docsSkill
- setupSkill
- tech-writerSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 75 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Every ADR must have an H1 title stating the decision, and body prose covering the context, the decision itself, and the alternatives …
- Very specific: line 99
Check if api/docs/arch/adr/README.md exists.
- Distinctive: line 100
Read the README index table and find entries relevant to the user's question.
- Distinctive: line 101
Read the matching ADR file and summarise the Context and Decision sections.
- Distinctive: line 102
If no ADR matches, suggest recording one now.
- Distinctive: line 107
Every rejected alternative must include a Why not reason — "we didn't pick X" without a reason is useless.
- Very specific: line 108
When a decision is superseded, update the old ADR's Status field to superseded by ADR-NNNN and create the new ADR with a back-reference in …
- Distinctive: line 109
Keep one decision per ADR — split if two separate choices are getting conflated.
“Common” is measured: kept by at least 6 in 10 of the 75 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
Architecture Decision Records
You are recording or retrieving an Architecture Decision Record (ADR) for this
project. ADRs live in api/docs/arch/adr/ at the repo root.
When to record
Record these decisions:
- Technology selections (frameworks, libraries, databases, cloud providers)
- Architectural patterns (state management, caching strategy, API design)
- Data modeling choices (schema design, indexing, query approach)
- Infrastructure and deployment models
- Security, authentication, or testing strategy changes
- Any choice where the "why we didn't pick the alternative" will matter in 6 months
Skip: trivial choices (variable naming, formatting, minor refactors).
ADR template
Every ADR must have an H1 title stating the decision, and body prose covering
the context, the decision itself, and the alternatives considered with why
they were rejected. README.md and template.md are index/template files,
not ADRs, and are exempt from this requirement.
The body may be short free-form prose covering those points, or the full
template below (Date/Status/Deciders header block, Context, Decision,
Alternatives Considered, Consequences). The full template is recommended for
new ADRs but not required — the **Deciders**: line is always optional. If
the decision, its context, or the rejected alternatives can't be stated, stop
and ask the user for the missing information before writing the file.
# ADR-NNNN: [Decision Title]
**Date**: YYYY-MM-DD
**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
**Deciders**: [who was involved]
## Context
[2–5 sentences describing the situation, constraints, and forces at play]
## Decision
[1–3 sentences stating the change clearly and unambiguously]
## Alternatives Considered
### Alternative 1: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific rejection reason]
### Alternative 2: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific rejection reason]
## Consequences
### Positive
- [benefit 1]
### Negative
- [trade-off 1]
### Risks
- [risk and mitigation]Workflow — recording a new ADR
- Scan existing ADRs —
Glob api/docs/arch/adr/[0-9]*.mdto find the highest existing number. - Assign next ID — next sequential 4-digit number (e.g.,
0003). - Gather context — ask the user for any missing details on the context, the decision, and the alternatives considered with why they were rejected. Only ask about deciders and consequences if the user opts into the full template.
- Draft the ADR — cover the context, decision, and rejected alternatives, either as free-form prose or using the full template above.
- Present the draft — show it to the user for review before writing any file.
- Write the file —
api/docs/arch/adr/NNNN-kebab-title.md(kebab-case title, all lowercase). - Update the index — append a new row to the
| ADR | Title | Status | Date |table inapi/docs/arch/adr/README.md.
Workflow — reading / querying ADRs
- Check if
api/docs/arch/adr/README.mdexists. If not, offer to start the ADR directory. - Read the README index table and find entries relevant to the user's question.
- Read the matching ADR file and summarise the Context and Decision sections.
- If no ADR matches, suggest recording one now.
Quality standards
- Each ADR should be readable in under 2 minutes.
- Every rejected alternative must include a Why not reason — "we didn't pick X" without a reason is useless.
- When a decision is superseded, update the old ADR's Status field to
superseded by ADR-NNNNand create the new ADR with a back-reference in its Context. - Keep one decision per ADR — split if two separate choices are getting conflated.
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.

