adr-create

Creates a single Architecture Decision Record (ADR) for a current technical decision. Unlike retrospective (which reconstructs past ADRs from git history), this skill documents decisions as they happen with full context, alternatives considered, and expected consequences.

23 stars

Best use case

adr-create is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Creates a single Architecture Decision Record (ADR) for a current technical decision. Unlike retrospective (which reconstructs past ADRs from git history), this skill documents decisions as they happen with full context, alternatives considered, and expected consequences.

Teams using adr-create should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/adr-create/SKILL.md --create-dirs "https://raw.githubusercontent.com/christophacham/agent-skills-library/main/skills/git/adr-create/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/adr-create/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How adr-create Compares

Feature / Agentadr-createStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Creates a single Architecture Decision Record (ADR) for a current technical decision. Unlike retrospective (which reconstructs past ADRs from git history), this skill documents decisions as they happen with full context, alternatives considered, and expected consequences.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Skill: ADR Create

## What This Skill Does

Documents a **technical decision as it happens** using the ADR (Architecture Decision Record) format. While `retrospective` reconstructs past decisions from git history (inferring context), this skill captures the full decision context in real-time — including alternatives considered, trade-offs evaluated, and expected consequences.

## When to Use

- When making a significant technical decision (new dependency, architecture change, pattern choice)
- When the user says "let's document this decision" or "why did we choose X?"
- Before implementing a controversial or non-obvious approach
- When `create-plan` involves architectural choices that should be recorded

## Execution Model

- **Always**: the primary agent runs this skill directly.
- **Output**: `docs/adrs/ADR-NNN-<title>.md`

## Workflow

### Step 1: Identify the Decision

Use the `question` tool to clarify:

1. What is the decision? (one sentence)
2. What triggered it? (new requirement, problem, tech debt)
3. What alternatives were considered?
4. What was chosen and why?

### Step 2: Gather Context

Collect context from the project:

- Related code or modules affected
- Existing patterns that influenced the decision
- Constraints (performance, compatibility, team skills)
- Reference materials (docs, benchmarks, discussions)

### Step 3: Determine ADR Number

```bash
# Find the next ADR number
ls docs/adrs/ 2>/dev/null | grep -o 'ADR-[0-9]*' | sort -t- -k2 -n | tail -1
```

If no `docs/adrs/` directory exists, create it and start with ADR-001.

### Step 4: Write the ADR

Create `docs/adrs/ADR-NNN-<slug>.md`:

```markdown
# ADR-NNN: <Title>

## Status

Accepted | Proposed | Superseded by ADR-NNN

## Date

YYYY-MM-DD

## Context

<What is the issue? What forces are at play? What constraints exist?>

## Decision

<What is the change that we're proposing and/or doing?>

## Alternatives Considered

### Alternative A: <name>
- **Pros**: ...
- **Cons**: ...
- **Why rejected**: ...

### Alternative B: <name>
- **Pros**: ...
- **Cons**: ...
- **Why rejected**: ...

## Consequences

### Positive
- <expected benefit>

### Negative
- <expected downside or trade-off>

### Risks
- <what could go wrong>

## References

- <related ADRs, docs, URLs>
```

### Step 5: Cross-Reference

- If this ADR supersedes a previous one, update the old ADR's status
- If this ADR relates to a plan, add a reference in the plan's changelog
- If this affects module documentation, note it for `update-docs`

## Rules

1. **Capture the WHY**: the most valuable part of an ADR is why the decision was made and why alternatives were rejected. Implementation details belong in docs, not ADRs.
2. **Alternatives are mandatory**: an ADR without alternatives considered is just a statement, not a decision record. Always document at least one alternative.
3. **Consequences are honest**: list both positive and negative consequences. Every decision has trade-offs.
4. **Keep it concise**: an ADR should be 1-2 pages. It's a record, not an essay.
5. **Immutable once accepted**: accepted ADRs are not edited. If a decision changes, create a new ADR that supersedes the old one.
6. **No built-in explore agent**: do NOT use the built-in `explore` subagent type.

Related Skills

git:create-worktree

23
from christophacham/agent-skills-library

Create and setup git worktrees for parallel development with automatic dependency installation

create-pr

23
from christophacham/agent-skills-library

Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

create-github-pull-request-from-specification

23
from christophacham/agent-skills-library

Create GitHub Pull Request for feature request from specification file using pull_request_template.md template.

create-github-issues-for-unmet-specification-requirements

23
from christophacham/agent-skills-library

Create GitHub Issues for unimplemented requirements from specification files using feature_request.yml template.

create-github-issues-feature-from-implementation-plan

23
from christophacham/agent-skills-library

Create GitHub Issues from implementation plan phases using feature_request.yml or chore_request.yml templates.

mcp-create-adaptive-cards

23
from christophacham/agent-skills-library

Skill converted from mcp-create-adaptive-cards.prompt.md

create-technical-spike

23
from christophacham/agent-skills-library

Create time-boxed technical spike documents for researching and resolving critical development decisions before implementation.

create-tldr-page

23
from christophacham/agent-skills-library

Create a tldr page from documentation URLs and command examples, requiring both URL and command name.

create-implementation-plan

23
from christophacham/agent-skills-library

Create a new implementation plan file for new features, refactoring existing code or upgrading packages, design, architecture or infrastructure.

sdd:create-ideas

23
from christophacham/agent-skills-library

Generate ideas in one shot using creative sampling

typespec-create-api-plugin

23
from christophacham/agent-skills-library

Generate a TypeSpec API plugin with REST operations, authentication, and Adaptive Cards for Microsoft 365 Copilot

create-spring-boot-kotlin-project

23
from christophacham/agent-skills-library

Create Spring Boot Kotlin Project Skeleton