Agent skill
adr-creation
Generate Architecture Decision Records following the project template and numbering convention. Use when documenting architecture decisions, technical choices, or when the user asks to create an ADR.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/adr-creation
SKILL.md
ADR Creation Skill
Purpose: Generate Architecture Decision Records (ADRs) following the project template and numbering convention.
Trigger
When: User requests architecture documentation OR major technical decision made
Context Needed: Decision context, options considered, final decision
MCP Tools: mcp_payment-syste_search_full_text, read_file
ADR Numbering
Format: NNN-SHORT-TITLE.md
001-AUTH-STRATEGY.md
002-OFFLINE-STRATEGY.md
003-[NEXT-DECISION].md
Required Sections
# ADR-NNN: [Title]
## Status
[proposed | accepted | rejected | deprecated | superseded]
## Context
[What is the issue that we're seeing that motivates this decision?]
## Decision
[What is the change that we're proposing and/or doing?]
## Options Considered
### Option 1: [Name]
**Pros:** ...
**Cons:** ...
### Option 2: [Name]
**Pros:** ...
**Cons:** ...
## Rationale
[Why was this option chosen?]
## Consequences
[What becomes easier or more difficult?]
## Related ADRs
[Links to related decisions]
Frontmatter Template
---
document_type: "adr"
module: "architecture"
status: "accepted"
version: "1.0.0"
last_updated: "YYYY-MM-DD"
author: "@username"
keywords:
- "adr"
- "[topic]"
- "[technology]"
related_docs:
database_schema: ""
api_design: ""
adr_metadata:
adr_number: NNN
decision_date: "YYYY-MM-DD"
stakeholders: ["@Architect", "@Backend"]
---
ADR Categories
| Category | Keywords | Example |
|---|---|---|
| Architecture | pattern, structure | Monolith vs Microservices |
| Technology | framework, library | Angular vs React |
| Data | database, storage | PostgreSQL vs MongoDB |
| Security | auth, encryption | JWT vs Sessions |
| Integration | api, protocol | REST vs GraphQL |
Workflow
- Get next number - Check existing ADRs in
docs/technical/architecture/adr/ - Load template - Read 02-ADR-TEMPLATE.md
- Gather context - Document the problem
- List options - At least 2 alternatives
- Document decision - Clear statement
- Explain rationale - Why this choice?
- Create file -
docs/technical/architecture/adr/NNN-TITLE.md
Reference
- 02-ADR-TEMPLATE.md
- 001-AUTH-STRATEGY.md
- 002-OFFLINE-STRATEGY.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?