record-decision
Skill6 starsChanged 3 months agoMITView on GitHub
Append a new Architecture Decision Record (ADR) to the repo with an auto-incremented number and the MADR template. TRIGGER when the user says "record this decision", "log this decision", "add an ADR for X", "create an ADR about Y", "record the choice to use Postgres", "write up this decision", "document this as an ADR", "/nyann:record-decision". Do NOT trigger on "write a doc" / "add documentation" (those are broader — route to the appropriate doc skill). Do NOT trigger on "record a bug" / "open an issue" (those are GitHub concerns). Do NOT trigger on "what decisions have we made" (that's reading existing ADRs, not creating one).
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Memolok/Claude-plugintheir own version, first seen Oct 1, 2026
- deanmikan/ai-native-company-startertheir own version, first seen Sep 4, 2026
- iopsystems/skills-mcptheir own version, first seen Aug 24, 2026
- suleymanbyzt/agent-helmtheir own version, first seen Aug 18, 2026
- YangFan-Code-Star/context-devtheir own version, first seen Aug 18, 2026
- hardness1020/VibeFlowtheir own version, first seen Mar 19, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- hardness1020/VibeFlow★ 8same name
- iopsystems/skills-mcp★ 4same name
- YangFan-Code-Star/context-dev★ 2same name
- suleymanbyzt/agent-helm★ 1same name
- deanmikan/ai-native-company-starter★ 0same name
- Memolok/Claude-plugin★ 0same name
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 repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-team-sourceSkill
- bootstrap-projectSkill
- check-prereqsSkill
- cleanup-branchesSkill
- commitSkill
- diagnoseSkill
- diff-profileSkill
- doctorSkill
- explain-diffSkill
- explain-stateSkill
- fleet-retrofitSkill
- fleetSkill
- gen-ciSkill
- gen-claudemdSkill
- gen-dependency-updaterSkill
- gen-devcontainerSkill
- gen-templatesSkill
- gh-protectSkill
- hotfixSkill
- iac-applySkill
- iac-planSkill
- inspect-profileSkill
- learn-profileSkill
- migrate-profileSkill
- new-branchSkill
- optimize-claudemdSkill
- prSkill
- releaseSkill
- retrofitSkill
- route-docsSkill
- settingsSkill
- setupSkill
- shipSkill
- suggestSkill
- syncSkill
- sync-team-profilesSkill
- undo-bootstrapSkill
- undoSkill
- wait-for-pr-checksSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
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
- Very specific: line 49
--dir: Default docs/decisions. Override when the repo uses a different location (check the profile's documentation.scaffold_types if … - Very specific: line 66
Run bin/record-decision.sh --dry-run and read back:
- Distinctive: line 96
Do NOT auto-fill the body from the user's conversation.
“Common” is measured: kept by at least 6 in 10 of the 5 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
record-decision
Wraps bin/record-decision.sh. Creates one ADR file per invocation
under docs/decisions/ (or the profile's configured location). Only
MADR format is supported in v1.
1. Collect inputs from the user
--title(required). Short, imperative headline: "Use Postgres for the primary datastore", "Adopt pnpm over npm". If the user's phrasing is long and prose-y ("I think we should probably go with Postgres because…"), propose a crisp title and confirm.--status.proposed(default) when the decision is still up for review;acceptedwhen the user says "we've already decided" or similar. Never default toacceptedsilently — when unclear, you MUST call theAskUserQuestiontool (not plain text):{ "questions": [ { "question": "What is the status of this decision?", "header": "Status", "multiSelect": false, "options": [ { "label": "Proposed (Default)", "description": "Decision is open for review" }, { "label": "Accepted", "description": "Decision has already been agreed upon" } ] } ] }--dir. Defaultdocs/decisions. Override when the repo uses a different location (check the profile'sdocumentation.scaffold_typesif uncertain).--slug— derived from the title. Review the auto-derived slug with the user when the title contains non-ASCII or unusual punctuation.
2. Check for existing scaffolding
record-decision creates the directory if missing, but doesn't
scaffold a README.md or ADR-000. If the directory is empty (no
prior ADRs), mention that bootstrap-project scaffolds an introductory
ADR-000 and offer to run it first — but proceed with the new ADR
either way if the user insists.
3. Dry-run first when the title is non-obvious
Run bin/record-decision.sh --dry-run and read back:
- The target path (which ADR number it'll land at).
- The derived slug.
Confirm before the real run. Single-line "record that we chose X" phrasings can skip confirmation when the title is already explicit.
4. Invoke
bin/record-decision.sh --target <cwd> \
--title "<imperative headline>" \
[--status proposed|accepted] \
[--dir <path>] \
[--slug <slug>] \
[--date YYYY-MM-DD] \
[--dry-run]5. After creation
The output JSON gives you the relative path. Offer to:
- Open the file so the user can fill in the sections (Context, Decision drivers, Considered options, Decision outcome, Consequences, Validation).
- Stage it for commit via
/nyann:commit(suggest a commit subject likedocs(adr): ADR-NNN — <title>).
Do NOT auto-fill the body from the user's conversation. An ADR's value comes from the writer thinking through the structure; filling it with Claude-generated prose dilutes that.
6. Number collisions
Numbers come from scanning ADR-<NNN>-*.md files in the target
directory. When the user has a non-conventional ADR naming scheme
(e.g. 0001-foo.md without the ADR- prefix), the detector will
miss them and start at 000. If the user reports this, offer to
rename existing files or accept a manual --dir pointing at a
separate location.
When to hand off
- "Show me existing ADRs" →
ls docs/decisions/or a simple file listing; outside this skill. - "Update an existing ADR" → this skill creates only. Supersedence is represented as a new ADR pointing at the old one (MADR convention).
- "Generate a changelog entry for this decision" →
releaseskill handles CHANGELOG; ADRs and CHANGELOG are separate stores.
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.

