/doc:adr <action> [args] (create <title> | review <path> | status <number> <status> | list | supersede <old> <new> | index)from doc
Creates, reviews, and manages Architecture Decision Records (ADRs) with auto-numbering, template detection, and index maintenance. Useful for documenting architectural choices and tradeoffs.
Ships in doc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create and manage Architecture Decision Records following project conventions with automatic numbering and index maintenance.
When invoked explicitly with /adr <action>, parse the first word:
| First word | Remaining args | Operation |
|---|---|---|
create | <title> | Create a new ADR with the given title |
review | <path> | Lightweight quality review of an ADR |
status | <number> <status> | Transition ADR status with validation and side effects |
list | (none) | List all ADRs (same as running adr_index.py --dry-run) |
supersede | <old-number> <new-number> | Supersede an old ADR with a new one |
index | (none) | Regenerate the README.md index |
| (empty) | Auto-detect from conversation context |
If the first word doesn't match an action, treat the entire $ARGUMENTS as a title and default to create.
When auto-invoked (no explicit /adr command), detect the operation from conversation context as before.
This skill automatically activates when:
docs/adr/, doc/adr/, architecture/decisions/, .adr//adr review <path> after creationSearch order for ADR directories:
docs/adr/doc/adr/architecture/decisions/.adr/docs/adr/ if none existsAnalyze existing ADRs to detect:
NNNN-kebab-case-title.md or NNN-title.mdAutomatically update README.md with ADR table:
| Number | Title | Status | Date |
|---|
When replacing an ADR:
Lightweight quality check using the adr-critic agent:
subagent_type: "doc:adr-critic")
Every ADR gets an ## Author's Notes section after Consequences:
Target: 2-5 items. Be specific, reference ADR sections.
Lifecycle: Added on create (always) | Read by adr-critic as review targets | Stripped when Status → Accepted (via /adr status) | Preserved on Superseded | Refreshed on major rewrites.
Dedicated command for changing ADR status with validation and side effects:
/adr review: "Consider reviewing first"/adr supersede to link replacement"## Author's Notes section entirelyadr_index.pyValid statuses: Proposed | Accepted | Deprecated | Superseded
#123)# Explicit subcommands:
/adr create Use PostgreSQL over MongoDB
/adr create Authentication approach for mobile apps
# Auto-invoke by saying:
"Document the decision to use PostgreSQL over MongoDB"
"Create an ADR for our authentication approach"
"I need to record why we chose React Query"
# Explicit subcommand:
/adr review docs/adr/0005-use-postgresql-for-persistence.md
# Auto-invoke:
"Review ADR-0005 for decision quality"
"Check if our caching ADR has solid reasoning"
# Explicit subcommand:
/adr supersede 5 12
# Auto-invoke:
"Supersede ADR-0005 with a new caching strategy"
"Replace our database decision ADR with the new approach"
# Transition with validation and side effects:
/adr status 14 accepted
/adr status 7 deprecated
# Auto-strips Author's Notes when accepting
# Warns on unusual transitions (e.g., skipping review)
/adr list
/adr index
Located in ${CLAUDE_SKILL_DIR}/scripts/ directory, using uv for execution:
uv run ${CLAUDE_SKILL_DIR}/scripts/adr_create.py --title "Use PostgreSQL for persistence"
uv run ${CLAUDE_SKILL_DIR}/scripts/adr_create.py --title "..." --template madr --create-dir
uv run ${CLAUDE_SKILL_DIR}/scripts/adr_index.py --dir docs/adr
uv run ${CLAUDE_SKILL_DIR}/scripts/adr_index.py --dir docs/adr --dry-run
uv run ${CLAUDE_SKILL_DIR}/scripts/adr_supersede.py --old 5 --new 12 --dir docs/adr
# ADR-0012: Use PostgreSQL for Data Persistence
## Status
Proposed
## Date
2026-01-10
## Context and Problem Statement
We need a reliable database solution for our microservices architecture
that supports complex queries and ACID transactions.
## Decision
Chosen option: PostgreSQL, because it provides the best balance of
ACID compliance, query flexibility, and team familiarity.
## Consequences
**Positive:**
- Full ACID transaction support
- Mature ecosystem and tooling
**Negative:**
- Horizontal scaling requires more setup
## Author's Notes
- **Shortcut**: Did not benchmark PostgreSQL vs CockroachDB under our expected write load; relied on team experience instead
- **Assumption**: Assumed read replicas will handle 5x current read traffic based on similar projects, not our actual query patterns
- **Uncertainty**: License compatibility of pgvector extension with our Apache 2.0 project not verified
# ADR-0012: Use PostgreSQL for Data Persistence
## Status
Accepted
## Date
2026-01-10
(same content, but ## Author's Notes section removed entirely)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin doc9 skills in this plugin
/code-explanationExplains complex code through clear narratives, visual diagrams, and step-by-step breakdowns. Use when user asks to explain code, understand algorithms, analyze design patterns, wants code walkthroughs, or mentions "explain this code", "how does this work", "code breakdown", or "understand this function"./diagrammingCreates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual documentation./diataxisAudit, classify, validate, and scaffold documentation using the Diataxis framework (Tutorials, How-to guides, Reference, Explanation). Use when user mentions "diataxis", "documentation framework", "quadrant", "doc audit", "doc coverage", "collapsed document", "tutorial vs how-to", "quadrant purity", "documentation types", or wants to classify docs by type.Other plugins' skills for the same job