Skip to content
Development
Command

/adr

Write an Architecture Decision Record documenting a significant technical decision.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/adr

Context preview

What this command does when you run it.

Write an Architecture Decision Record documenting a significant technical decision.

Command definition

adr.md

Write an Architecture Decision Record documenting a significant technical decision.

Steps

1. Ask for or infer the decision topic from the argument (e.g., "use PostgreSQL over MongoDB"). 2. Scan the codebase for existing ADRs in `docs/adr/`, `docs/decisions/`, or `adr/` directories. 3. Determine the next ADR number by counting existing records. 4. Research the current codebase to gather context:

  • What technologies are currently used.
  • What constraints exist (team size, performance requirements, existing integrations).

5. Draft the ADR with all required sections. 6. Create the file as `docs/adr/NNNN-<slug>.md`. 7. If a `docs/adr/README.md` index exists, add an entry for the new ADR.

Format

# ADR-NNNN: <Title>

## Status
Proposed | Accepted | Deprecated | Superseded by ADR-XXXX

## Context
What is the issue that we are seeing that motivates this decision?

## Decision
What is the change that we are proposing and/or doing?

## Consequences
What becomes easier or harder as a result of this decision?

### Positive
- Benefit 1

### Negative
- Tradeoff 1

### Risks
- Risk 1 with mitigation strategy

Rules

  • ADRs are immutable once accepted; create a new ADR to supersede an old one.
  • Keep the context section factual and free of opinion.
  • List at least one positive, one negative, and one risk consequence.
  • Use the project's existing ADR format if one already exists.
  • Date the ADR with the current date in the status section.
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin