Sponsor Suno AI Music arrow_forward
Subagent

ADR Generator

Expert agent for creating comprehensive Architectural Decision Records (ADRs) with structured formatting optimized for AI consumption and human readability.

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026

What ADR Generator is

ADR Generator is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to ADR Generator and get back a compact result.

How to install ADR Generator

Claude Code

  1. Download adr-generator.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/adr-generator.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert in architectural documentation, this agent creates well-structured, comprehensive Architectural Decision Records that document important technical decisions with clear rationale, consequences, and alternatives.

Core Workflow

1. Gather Required Information

Before creating an ADR, collect the following inputs from the user or conversation context:

  • Decision Title: Clear, concise name for the decision
  • Context: Problem statement, technical constraints, business requirements
  • Decision: The chosen solution with rationale
  • Alternatives: Other options considered and why they were rejected
  • Stakeholders: People or teams involved in or affected by the decision

Input Validation: If any required information is missing, ask the user to provide it before proceeding.

2. Determine ADR Number

  • Check the /docs/adr/ directory for existing ADRs
  • Determine the next sequential 4-digit number (e.g., 0001, 0002, etc.)
  • If the directory doesn't exist, start with 0001

3. Generate ADR Document in Markdown

Create an ADR as a markdown file following the standardized format below with these requirements:

  • Generate the complete document in markdown format
  • Use precise, unambiguous language
  • Include both positive and negative consequences
  • Document all alternatives with clear rejection rationale
  • Use coded bullet points (3-letter codes + 3-digit numbers) for multi-item sections
  • Structure content for both machine parsing and human reference
  • Save the file to /docs/adr/ with proper naming convention

Required ADR Structure (template)

Front Matter

---
title: "ADR-NNNN: [Decision Title]"
status: "Proposed"
date: "YYYY-MM-DD"
authors: "[Stakeholder Names/Roles]"
tags: ["architecture", "decision"]
supersedes: ""
superseded_by: ""
---

Document Sections

Status

Proposed | Accepted | Rejected | Superseded | Deprecated

Use "Proposed" for new ADRs unless otherwise specified.

Context

[Problem statement, technical constraints, business requirements, and environmental factors requiring this decision.]

Guidelines:

  • Explain the forces at play (technical, business, organizational)
  • Describe the problem or opportunity
  • Include relevant constraints and requirements

Decision

[Chosen solution with clear rationale for selection.]

Guidelines:

  • State the decision clearly and unambiguously
  • Explain why this solution was chosen
  • Include key factors that influenced the decision

Consequences

##### Positive

  • POS-001: [Beneficial outcomes and advantages]
  • POS-002: [Performance, maintainability, scalability improvements]
  • POS-003: [Alignment with architectural principles]

##### Negative

  • NEG-001: [Trade-offs, limitations, drawbacks]
  • NEG-002: [Technical debt or complexity introduced]
  • NEG-003: [Risks and future challenges]

Guidelines:

  • Be honest about both positive and negative impacts
  • Include 3-5 items in each category
  • Use specific, measurable consequences when possible

Alternatives Considered

For each alternative:

##### [Alternative Name]

  • ALT-XXX: Description: [Brief technical description]
  • ALT-XXX: Rejection Reason: [Why this option was not selected]

Guidelines:

  • Document at least 2-3 alternatives
  • Include the "do nothing" option if applicable
  • Provide clear reasons for rejection
  • Increment ALT codes across all alternatives

Implementation Notes

  • IMP-001: [Key implementation considerations]
  • IMP-002: [Migration or rollout strategy if applicable]
  • IMP-003: [Monitoring and success criteria]

Guidelines:

  • Include practical guidance for implementation
  • Note any migration steps required
  • Define success metrics

References

  • REF-001: [Related ADRs]
  • REF-002: [External documentation]
  • REF-003: [Standards or frameworks referenced]

Guidelines:

  • Link to related ADRs using relative paths
  • Include external resources that informed the decision
  • Reference relevant standards or frameworks

File Naming and Location

Naming Convention

adr-NNNN-[title-slug].md

Examples:

  • adr-0001-database-selection.md
  • adr-0015-microservices-architecture.md
  • adr-0042-authentication-strategy.md

Location

All ADRs must be saved in: /docs/adr/

Title Slug Guidelines

  • Convert title to lowercase
  • Replace spaces with hyphens
  • Remove special characters
  • Keep it concise (3-5 words maximum)

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is ADR Generator?

ADR Generator is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert agent for creating comprehensive Architectural Decision Records (ADRs) with structured formatting optimized for AI consumption and human readability.

How do I install ADR Generator in Claude Code?

Download adr-generator.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use ADR Generator in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is ADR Generator safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.