Adr

From WaterplanAI/agentic-config · View interactive version

Adr is an AI agent skill from the GitHub repository WaterplanAI/agentic-config. Documents architecture decisions with auto-numbering following the ADR pattern. Triggers on keywords: adr, architecture decision, decision record

How to use this skill

Skill file

Architecture Decision Record (ADR) Command

Document architecture decisions following the ADR pattern. Auto-generates next ADR number and updates index.

Arguments

Pre-Flight Checks

  1. Ensure ADR directory exists:
  1. Ensure index exists:

```markdown

# Architecture Decision Records (ADR) Index

> Critical decisions that govern development. Read before implementing.

## Index

| # | Decision | Status | Date |

|---|----------|--------|------|

## Usage

ADRs document significant architectural and policy decisions. Each entry follows format:

NNN-<title>.md where NNN is zero-padded sequence number.

### Creating New ADR

Use /adr command or manually:

1. Create file adrs/NNN-title.md

2. Add entry to this index

3. Commit: adr(NNN): <title>

```

  1. Read ADR index: adrs/000-index.md
  1. Validate decision context:

Execution

  1. Generate ADR metadata:
  1. Create ADR file: adrs/NNN-<slug>.md

```markdown

# NNN - <Title>

Status: Accepted

Date: <YYYY-MM-DD>

## Context

<Why this decision was needed - problem statement, constraints, requirements>

## Decision

<What was decided - clear statement of the chosen approach>

## Consequences

<Implications and trade-offs:>

## References

<Related docs, specs, links if any>

```

  1. Update index: adrs/000-index.md

```

| NNN | <Title> | Accepted | YYYY-MM-DD |

```

  1. Commit changes:

```bash

git add adrs/NNN-<slug>.md adrs/000-index.md && git commit -m "adr(NNN): <title>"

```

Output

Report in markdown format:

Example Usage

/adr Use pnpm for package management

Creates:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.