Review adr

From atomicinnovation/accelerator · View interactive version

Review adr is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Review an architecture decision record for quality and completeness, then accept, reject, or suggest revisions. Enforces ADR immutability — only proposed ADRs can be modified, accepted ADRs can only transition to superseded or deprecated. Use when a proposed ADR is ready for review, or when an accep

How to use this skill

Skill file

Review Architecture Decision Record

!accelerator config context --skill review-adr --fail-safe

!accelerator config agents --fail-safe

If no "Agent Names" section appears above, use these defaults:

accelerator:reviewer, accelerator:codebase-locator,

accelerator:codebase-analyser, accelerator:codebase-pattern-finder,

accelerator:documents-locator, accelerator:documents-analyser,

accelerator:web-search-researcher.

Decisions directory: !accelerator config path decisions --fail-safe

You are tasked with reviewing ADRs for quality and managing their lifecycle

status transitions, enforcing the append-only immutability model.

Initial Setup

When this command is invoked:

  1. Check if parameters were provided:

```

I found the following accepted ADRs available for deprecation:

1. {decisions directory}/ADR-0001-use-jujutsu.md — Use Jujutsu for Version

Control

2. {decisions directory}/ADR-0002-filesystem-chaining.md — Filesystem-Mediated

Skill Chaining

Which ADR would you like to deprecate? (enter number or path)

```

workflow

I found the following proposed ADRs ready for review:

1. `{decisions directory}/ADR-0001-use-jujutsu.md` — Use Jujutsu for Version Control
2. `{decisions directory}/ADR-0003-append-only-lifecycle.md` — Append-Only ADR
   Lifecycle

Which ADR would you like to review? (enter number or path)

Tip: To deprecate an accepted ADR, use:
`/accelerator:review-adr --deprecate`

Wait for user selection.

Mutability Rules

Before making ANY changes to an ADR, check its status using:

accelerator corpus adr read-status <adr-path>

Then apply these rules:

| Current Status | Content Editable? | Permitted Transitions |

|----------------|-------------------|------------------------------------------------|

| proposed | Yes | → accepted, → rejected |

| accepted | No | → superseded (via create-adr), → deprecated|

| rejected | No | None (terminal) |

| superseded | No | None (terminal) |

| deprecated | No | None (terminal) |

CRITICAL: If the ADR status is anything other than proposed, you MUST NOT

modify its content. You may only update the status field and related metadata

fields (superseded_by, deprecated_reason) for permitted transitions.

If the user asks to modify a non-proposed ADR's content, explain:

This ADR has status "[status]" and is immutable. Its content cannot be changed.

To revise this decision, create a new ADR that supersedes it:
`/accelerator:create-adr [new decision] --supersedes ADR-NNNN`

Process Steps

For Proposed ADRs — Quality Review

Step 1: Read and Analyse
  1. Read the ADR fully
  2. Check status is proposed (if not, apply mutability rules above)
  3. Spawn agents for context (in parallel):
Step 2: Quality Review

Evaluate the ADR against these quality criteria:

Context Completeness:

Decision Drivers:

Options Analysis:

Decision Statement:

Consequences:

Overall Quality:

Step 3: Present Review
## ADR Review: ADR-NNNN — [Title]

**Overall Assessment**: [Strong / Adequate / Needs Revision]

### Strengths:
- [What's done well]

### Suggestions:
- [Specific improvements, if any]

### Issues:
- [Problems that should be fixed before acceptance, if any]

---

**Actions available:**

Use the AskUserQuestion tool with three options:

  1. Accept — mark the ADR as accepted (becomes immutable)
  2. Reject — mark as rejected with reason (becomes immutable; reason prompted after)
  3. Revise — make suggested improvements (stays proposed)

Wait for the user's decision.

Step 4: Execute Action

If Accept:

  1. Update the ADR's frontmatter:
  1. Update the in-body status line:
  1. Confirm:

```

ADR-NNNN has been accepted. It is now immutable — content can no longer be

changed. If this decision needs to be revised in the future, create a new

ADR that supersedes it.

```

If Reject:

  1. Ask for a rejection reason
  2. Update the ADR's frontmatter:
  1. Update the in-body status line:
  1. Confirm:

```

ADR-NNNN has been rejected. Reason: [reason]

```

If Revise:

  1. Make the suggested improvements to the ADR content
  2. Present the updated ADR for another round of review
  3. Return to Step 2

Validate the frontmatter: after writing the status transition, run

accelerator corpus frontmatter validate --file <adr-path>

If it exits non-zero, the ADR violates the canonical frontmatter standard;

report the emitted violation and fix the frontmatter before completing.

For Accepted ADRs — Deprecation Only

If the ADR is in accepted status and --deprecate was specified:

  1. Ask for or confirm the deprecation reason
  2. Update the ADR's frontmatter:
  1. Update the in-body status line:
  1. Confirm:

```

ADR-NNNN has been deprecated. Reason: [reason]

Note: The ADR content remains unchanged. If a replacement decision is

needed, use /accelerator:create-adr to create a new ADR.

```

For Terminal Status ADRs

If the ADR is in rejected, superseded, or deprecated status:

ADR-NNNN is in "[status]" status, which is terminal. No further changes are
permitted.

[If superseded]: This ADR was superseded by ADR-MMMM. See
`{decisions directory}/ADR-MMMM-description.md`.
[If deprecated]: Reason: [deprecated_reason from frontmatter]
[If rejected]: Reason: [rejected_reason from frontmatter]

Important Notes

enforcement mechanism

skill

criticism

the filesystem level. Direct file edits outside of ADR skills bypass this

protection. This is an accepted tradeoff — skill-level enforcement is

simpler and sufficient for the intended workflow. If an ADR appears to have

been modified outside the skills, note this to the user during review.

!accelerator config instructions review-adr --fail-safe

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.