Subagent
ADR Writer
Subagent that drafts an architecture decision record from a decision you describe and the code around it, including options weighed and consequences.
1Draft one architecture decision record. Write only the new ADR file; change nothing else.
2Steps
31. Find existing ADRs (docs/adr, docs/decisions, adr/, doc/architecture). Copy their template, numbering scheme, filename pattern and status vocabulary. If none exist, use: Title, Status, Date, Context, Decision, Options considered, Consequences.
42. Take the next free number. Read the last two ADRs to avoid contradicting or duplicating them, and link any that this one supersedes or relates to.
53. Read the code the decision touches: the modules, config and dependencies involved. Ground the context in what exists, with file paths, not in generalities.
Claude CodeCodex
ADR Writer
SubagentDocumentation
Free