adr-create
Create ADR
Create a new Architecture Decision Record with the next sequential number, register it in the AgentDB graph, and link it to related ADRs.
When to use
When a significant architectural decision needs to be recorded -- new technology adoption, API design choices, data model changes, infrastructure decisions, or any cross-cutting concern that affects multiple components.
Steps
-
Find next number --
Globfordocs/adr/ADR-*.mdand parse existing numbers to determine the next sequential ID (ADR-001, ADR-002, etc.). Createdocs/adr/if it does not exist. -
Slugify title -- Convert the title argument to a lowercase, hyphen-separated slug (e.g., "Use PostgreSQL for persistence" becomes
use-postgresql-for-persistence). -
Create ADR file --
Writethe file atdocs/adr/ADR-NNN-<slug>.mdusing the standard template:# ADR-NNN: <Title>