Skip to content
Development
Command

/write-adr

Create a new Architecture Decision Record documenting a 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/write-adr

Context preview

What this command does when you run it.

Create a new Architecture Decision Record documenting a technical decision.

Command definition

write-adr.md

/write-adr - Write Architecture Decision Record

Create a new Architecture Decision Record documenting a technical decision.

Steps

1. Ask the user for the decision title and context 2. Determine the next ADR number by scanning existing ADRs in the docs/adr directory 3. Ask about the decision context: what problem is being solved and why now 4. Gather the options considered with pros and cons for each 5. Document the chosen option and the reasoning behind the decision 6. Identify consequences: what changes, what trade-offs are accepted 7. Note the decision status: proposed, accepted, deprecated, or superseded 8. Link to related ADRs if this decision supersedes or relates to previous ones 9. Format the ADR using the standard template: Title, Status, Context, Decision, Consequences 10. Save the ADR as `docs/adr/NNNN-title-slug.md` with zero-padded number 11. Update the ADR index file if one exists 12. Report the created ADR path and number

Rules

  • Follow the Michael Nygard ADR format (Title, Status, Context, Decision, Consequences)
  • Number ADRs sequentially with zero-padded 4-digit numbers (0001, 0002)
  • Keep the title concise and descriptive of the decision, not the problem
  • Include at least two alternatives that were considered
  • Document consequences honestly, including negative trade-offs
  • Never modify existing accepted ADRs; create a new one that supersedes
  • Create the docs/adr directory if it does not exist
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