Create an Architecture Decision Record (ADR)
You are creating a new ADR using the MADR (Markdown Architectural Decision Records) format.
Process
Resolve artifact paths: Follow the Artifact Path Resolution pattern from references/shared-patterns.md to determine the ADR directory. If $ARGUMENTS contains --module <name>, resolve paths relative to that module. The resolved ADR directory is referred to as {adr-dir} below.
Determine the next ADR number: Scan {adr-dir} for existing ADR-XXXX-*.md files and increment to the next number. Start at ADR-0001 if none exist. Create {adr-dir} if it does not exist. If $ARGUMENTS is empty (ignoring flags like --review and --module), use AskUserQuestion to ask the user what decision they want to document.
Choose drafting mode: Check if $ARGUMENTS contains --review.
Default (no --review): Single-agent mode. Research the codebase (read relevant files, understand the current architecture), draft the ADR directly, self-review against the architect's checklist in the Rules section, then write the file.
With --review: Team review mode.
- Tell the user: "Creating a drafting team to write and review the ADR. This takes a minute or two."
- Create a Claude Team with
TeamCreate to draft and review the ADR:
- Spawn a drafter agent (
general-purpose) to write the ADR based on the user's description: $ARGUMENTS
- Spawn an architect agent (
general-purpose) to review the drafter's output for completeness, accuracy, and adherence to MADR format
- The architect MUST review and approve the ADR before it is finalized
- The drafter should research the codebase (read relevant files, understand the current architecture) before writing
- If
TeamCreate fails, fall back to single-agent mode: draft the ADR directly, then self-review against the architect's checklist in the Rules section before writing.
Write the ADR to {adr-dir}/ADR-XXXX-short-title.md
Clean up the team when done (if --review was used).
Summarize what happened (files created, decision documented, review outcome).
Suggest next steps: After summarizing, tell the user:
- "To formalize requirements from this decision, run:
/design:spec {suggested capability name}"
- "The spec skill can also break requirements into trackable issues (Beads, GitHub, or Gitea) for sprint planning."
CLAUDE.md integration: Check if this is the first ADR (i.e., {adr-dir} was just created or contains only this new file). If so:
- Check if a
CLAUDE.md exists at the module root (or project root for single-module projects)
- If it exists, check if it already references the ADR directory
- If no reference exists, ask the user: "I can add an Architecture Context section to your CLAUDE.md so future sessions know about your decisions. Shall I?"
- If the user says yes, append an
## Architecture Context section with - Architecture Decision Records are in {adr-dir}
- If
CLAUDE.md doesn't exist, suggest creating one
Team Handoff Protocol (only for --review mode)
Follow the standard team handoff protocol from the plugin's references/shared-patterns.md. The drafter writes the ADR; the architect reviews against the Rules checklist below.
MADR Template
---
status: proposed
date: {YYYY-MM-DD}
decision-makers: {list}
---
# ADR-XXXX: {short title, representative of solved problem and found solution}
## Context and Problem Statement
{Describe the context and problem statement in 2-3 sentences. Articulate the problem as a question if possible.}
## Decision Drivers
* {driver 1, e.g., a force, facing concern}
* {driver 2}
## Considered Options
* {option 1}
* {option 2}
* {option 3}
## Decision Outcome
Chosen option: "{option}", because {justification}.
### Consequences
* Good, because {positive consequence}
* Bad, because {negative consequence}
### Confirmation
{How will compliance/implementation be confirmed?}
## Pros and Cons of the Options
### {Option 1}
{Description or pointer to more information.}
* Good, because {argument a}
* Good, because {argument b}
* Neutral, because {argument c}
* Bad, because {argument d}
### {Option 2}
{Description or pointer to more information.}
* Good, because {argument a}
* Bad, because {argument b}
## Architecture Diagram
```mermaid
{Mermaid diagram illustrating the architecture, decision flow, or component relationships.
Use flowchart, sequence, or C4 diagrams as appropriate.}
More Information
{Additional context, links to related ADRs, references.}
## Rules
- ADR numbers MUST be sequential and zero-padded to 4 digits: ADR-0001, ADR-0002, etc.
- MUST include at least 2 considered options with substantive pros and cons for each
- Status starts as `proposed` -- the user decides when to mark `accepted`
- Self-review (default) or architect review (`--review`) MUST check for:
- Completeness of all required sections (Context, Options, Outcome, Pros/Cons)
- Realistic and balanced pros/cons (not just cheerleading the chosen option)
- Clear decision rationale that explains "why this over alternatives"
- Correct MADR structure and frontmatter
- Keep the title short and descriptive
- Focus on the "why" -- what problem does this solve and why this solution?
- Reference existing ADRs if this supersedes or relates to them
- Every ADR SHOULD include at least one Mermaid diagram illustrating the architecture or decision flow. Use flowchart, sequence, or C4 diagrams as appropriate.
---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/joestump) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->
1---2name: adr-63description: Create a new Architecture Decision Record (ADR) using MADR format. Use when the user wants to document an architectural decision, says "create an ADR", "we need an ADR for", or discusses a decision that should be recorded. Use when this capability is needed.4---56# Create an Architecture Decision Record (ADR)78You are creating a new ADR using the MADR (Markdown Architectural Decision Records) format.910## Process1112<!-- Governing: ADR-0016 (Workspace Mode), SPEC-0014 REQ "Artifact Path Resolution" -->13140. **Resolve artifact paths**: Follow the **Artifact Path Resolution** pattern from `references/shared-patterns.md` to determine the ADR directory. If `$ARGUMENTS` contains `--module <name>`, resolve paths relative to that module. The resolved ADR directory is referred to as `{adr-dir}` below.15161. **Determine the next ADR number**: Scan `{adr-dir}` for existing `ADR-XXXX-*.md` files and increment to the next number. Start at ADR-0001 if none exist. Create `{adr-dir}` if it does not exist. If `$ARGUMENTS` is empty (ignoring flags like `--review` and `--module`), use `AskUserQuestion` to ask the user what decision they want to document.17182. **Choose drafting mode**: Check if `$ARGUMENTS` contains `--review`.1920 **Default (no `--review`)**: Single-agent mode. Research the codebase (read relevant files, understand the current architecture), draft the ADR directly, self-review against the architect's checklist in the Rules section, then write the file.2122 **With `--review`**: Team review mode.23 - Tell the user: "Creating a drafting team to write and review the ADR. This takes a minute or two."24 - Create a Claude Team with `TeamCreate` to draft and review the ADR:25 - Spawn a **drafter** agent (`general-purpose`) to write the ADR based on the user's description: `$ARGUMENTS`26 - Spawn an **architect** agent (`general-purpose`) to review the drafter's output for completeness, accuracy, and adherence to MADR format27 - The architect MUST review and approve the ADR before it is finalized28 - The drafter should research the codebase (read relevant files, understand the current architecture) before writing29 - If `TeamCreate` fails, fall back to single-agent mode: draft the ADR directly, then self-review against the architect's checklist in the Rules section before writing.30313. **Write the ADR** to `{adr-dir}/ADR-XXXX-short-title.md`32334. **Clean up** the team when done (if `--review` was used).34355. **Summarize** what happened (files created, decision documented, review outcome).36376. **Suggest next steps**: After summarizing, tell the user:38 - "To formalize requirements from this decision, run: `/design:spec {suggested capability name}`"39 - "The spec skill can also break requirements into trackable issues (Beads, GitHub, or Gitea) for sprint planning."40417. **CLAUDE.md integration**: Check if this is the first ADR (i.e., `{adr-dir}` was just created or contains only this new file). If so:42 - Check if a `CLAUDE.md` exists at the module root (or project root for single-module projects)43 - If it exists, check if it already references the ADR directory44 - If no reference exists, ask the user: "I can add an Architecture Context section to your CLAUDE.md so future sessions know about your decisions. Shall I?"45 - If the user says yes, append an `## Architecture Context` section with `- Architecture Decision Records are in {adr-dir}`46 - If `CLAUDE.md` doesn't exist, suggest creating one4748### Team Handoff Protocol (only for `--review` mode)4950Follow the standard team handoff protocol from the plugin's `references/shared-patterns.md`. The drafter writes the ADR; the architect reviews against the Rules checklist below.5152## MADR Template5354```markdown55---56status: proposed57date: {YYYY-MM-DD}58decision-makers: {list}59---6061# ADR-XXXX: {short title, representative of solved problem and found solution}6263## Context and Problem Statement6465{Describe the context and problem statement in 2-3 sentences. Articulate the problem as a question if possible.}6667## Decision Drivers6869* {driver 1, e.g., a force, facing concern}70* {driver 2}7172## Considered Options7374* {option 1}75* {option 2}76* {option 3}7778## Decision Outcome7980Chosen option: "{option}", because {justification}.8182### Consequences8384* Good, because {positive consequence}85* Bad, because {negative consequence}8687### Confirmation8889{How will compliance/implementation be confirmed?}9091## Pros and Cons of the Options9293### {Option 1}9495{Description or pointer to more information.}9697* Good, because {argument a}98* Good, because {argument b}99* Neutral, because {argument c}100* Bad, because {argument d}101102### {Option 2}103104{Description or pointer to more information.}105106* Good, because {argument a}107* Bad, because {argument b}108109## Architecture Diagram110111```mermaid112{Mermaid diagram illustrating the architecture, decision flow, or component relationships.113Use flowchart, sequence, or C4 diagrams as appropriate.}114```115116## More Information117118{Additional context, links to related ADRs, references.}119```120121## Rules122123- ADR numbers MUST be sequential and zero-padded to 4 digits: ADR-0001, ADR-0002, etc.124- MUST include at least 2 considered options with substantive pros and cons for each125- Status starts as `proposed` -- the user decides when to mark `accepted`126- Self-review (default) or architect review (`--review`) MUST check for:127 - Completeness of all required sections (Context, Options, Outcome, Pros/Cons)128 - Realistic and balanced pros/cons (not just cheerleading the chosen option)129 - Clear decision rationale that explains "why this over alternatives"130 - Correct MADR structure and frontmatter131- Keep the title short and descriptive132- Focus on the "why" -- what problem does this solve and why this solution?133- Reference existing ADRs if this supersedes or relates to them134- Every ADR SHOULD include at least one Mermaid diagram illustrating the architecture or decision flow. Use flowchart, sequence, or C4 diagrams as appropriate.135136---137> Converted and distributed by [TomeVault](https://tomevault.io/claim/joestump) — claim your Tome and manage your conversions.138<!-- tomevault:4.0:skill_md:2026-04-13 -->