Create an Architectural Decision Record (ADR) document for AI-optimized decision documentation.
Create an ADR document for ${input:DecisionTitle} using structured formatting optimized for AI consumption and human readability.
${input:Context}${input:Decision}${input:Alternatives}${input:Stakeholders}If any of the required inputs are not provided or cannot be determined from the conversation history, ask the user to provide the missing information before proceeding with ADR generation.
The ADR must be saved in the /docs/adr/ directory using the naming convention: adr-NNNN-[title-slug].md, where NNNN is the next sequential 4-digit number (e.g., adr-0001-database-selection.md).
The documentation file must follow the template below, ensuring that all sections are filled out appropriately. The front matter for the markdown should be structured correctly as per the example following:
---