decision-to-adr
Installation
SKILL.md
Convert a decision record into ADRs
- Locate the supplied decision record and the repository's ADR directory (default
docs/adr/). Read input-formats.md if the source shape is unclear. - Run the bundled CLI in dry-run mode. Choose MADR by default; use Nygard or Y-statement only when requested. Review
--jsonor useexplainto inspect mapping. - Show the complete planned diff to the user and ask for confirmation before writing. The CLI itself never asks or invokes an LLM.
- After confirmation, run the same command with
--write. Report created files, proposed decisions, open questions, and preserved manual edits.
node scripts/decision-to-adr.mjs generate --input decision-record.md
node scripts/decision-to-adr.mjs generate --input decision-record.md --write
Use --confirmed only after the human explicitly confirms the recorded decisions. A record that lacks a confirmation marker otherwise stays proposed: JEV and sub-agent outputs are recommendations, not human approval. The original provenance is retained in frontmatter and body. Escalated unanswered questions do not become decisions; keep them in the implementation spec and index. Read status-rules.md, security.md, and spec-guidance.md for those operations.
The CLI defaults to dry-run, never shells out, confines writes to the repository, uses a lock for --write, and preserves edited ADRs by creating a .generated.md sibling. It does not invent decisions or resolve open questions. See templates.md for output formats.
Worked example
Input: