ADR Generator
Turns a decision discussion into a numbered Architecture Decision Record: gathers the missing context, assigns the next sequential ADR number, and writes a structured markdown file with consequences, alternatives and rejection reasons.
Overview
ADR Generator writes Architecture Decision Records so a team doesn't lose the reasoning behind a technical choice a few months later. It follows a fixed structure designed to be read by both humans and other agents.
How it works
- It collects the pieces an ADR needs before writing anything: the decision title, the context and constraints, the chosen solution, the rejected alternatives and who was involved. If something is missing, it asks first.
- It checks the
/docs/adr/folder for existing records and assigns the next sequential four-digit number, starting at0001if the folder doesn't exist yet. - It writes the file with front matter (title, status, date, authors, tags) followed by context, decision, positive and negative consequences, alternatives considered with their rejection reasons, implementation notes and references.
- Consequences and alternatives use short coded bullets like
POS-001orALT-002, which makes it easy to reference a specific point later from a PR description or another ADR. - Before finishing, it runs through its own checklist: sequential
numbering, correct file naming (
adr-NNNN-title-slug.md), at least one positive and one negative consequence, and at least one documented alternative.
Examples
"Write an ADR for switching our event bus from RabbitMQ to Kafka. We
considered staying on RabbitMQ and also looked at NATS."
The agent produces /docs/adr/adr-0007-event-bus-kafka-migration.md with
both rejected alternatives documented and their rejection reasons spelled
out.
Installation
You need VS Code with the GitHub Copilot extension.
- Create the agents folder and download the file into your repo:
mkdir -p .github/agents curl -o .github/agents/adr-generator.agent.md \ https://raw.githubusercontent.com/github/awesome-copilot/main/agents/adr-generator.agent.md - Reload VS Code, or open a new Copilot Chat; custom agents under
.github/agents/are picked up automatically. - Pick this agent from the mode picker in Copilot Chat and describe a decision to confirm it writes a numbered ADR file.
Related assets
Context7
Pulls updated, version-specific documentation and code examples straight from the source into your prompt, so agents stop citing outdated APIs or hallucinating ones that don't exist.
Accessibility Expert
Reviews code and designs against WCAG 2.1/2.2, covering semantics, keyboard and focus behavior, forms, media and dynamic SPA updates, and ships framework-specific examples plus a CI setup for automated checks.
Address Comments Agent
Works through pull request review comments one at a time: applies the minimal fix for each, pushes back on comments that don't make sense, adds test coverage, and commits with a descriptive message before moving to the next comment.