Goal
Create a short Architecture Decision Record that captures one repo-level decision without turning it into long-form documentation.
When to use
- A decision changes repo structure, publishing, validation, license, layout, or skill standards.
- A previous ADR is superseded, deprecated, or rejected.
- The user asks to document a repo-level decision.
When not to use
- Tiny copy edits, typo fixes, or minor template polish.
- Routine skill additions that follow existing standards.
- Temporary implementation details that do not affect future maintainers.
Inputs to inspect
docs/adr/README.mddocs/adr/TEMPLATE.md- Existing
docs/adr/NNNN-*.mdfiles - The decision context, current repo docs, and validation requirements
Workflow
- Identify the single decision sentence.
- Check
docs/adr/README.mdand the latest ADR number. - Create the next
docs/adr/NNNN-short-title.md. - Use
docs/adr/TEMPLATE.mdorincubator/skills/repo-maintenance/adr-writer/assets/adr-template.md. - Keep the ADR under 250 words, with a target of 120 to 180 words.
- Update the ADR index in
docs/adr/README.md. - Run ADR validation.
Safety rules
- Do not write long ADRs.
- Do not rewrite accepted ADRs; create a superseding ADR instead.
- Do not document secrets, private internal details, customer data, or credentials.
- Do not invent decision history. Mark uncertain decisions as
Proposed.
References
Read only when needed:
assets/adr-template.mdfor the compact ADR template.
Scripts
Use only when the user wants a new ADR file created:
npm run adr:new -- "Use category-based skill folders"
Output format
Return:
- ADR path
- Decision sentence
- Word count
- Validation result
- Recommended next action
Completion criteria
- The ADR records exactly one repo-level decision.
- The ADR is under 250 words.
- The ADR index is updated.
- ADR validation passes.
Failure modes
- If the decision is unclear, ask for the decision sentence before writing.
- If the next ADR number cannot be determined, stop and report the conflicting files.
- If validation fails, report the failing ADR rule and the file path.