Adr plan

From NikiforovAll/claude-code-rules · View interactive version

Adr plan is an AI agent skill from the GitHub repository NikiforovAll/claude-code-rules. Analyze a task and produce an Architecture Decision Record with implementation steps.

How to use this skill

Skill file

ADR Plan: Task Analysis → Architecture Decision Record

Analyze a task, explore the codebase, and produce an ADR with concrete implementation steps.

Phase 1: Analyze

  1. Read the task description, active plan, or task list
  2. Explore affected areas of the codebase — do it concurrently for independent modules
  3. Map blast radius — search for consumers of functions/types/routes being changed
  4. Identify alternatives worth considering (at least 2)

Do this silently.

Phase 2: Detect ADR Setup

Check if the project has an ADR directory:

ls docs/adr/ || ls adr/ || ls doc/adr/

Phase 3: Produce ADR Content

Write the ADR using npx adr new "<title>", then edit the generated file with the following structure:

# ADR-NNNN: [Title]

## Status
Proposed

## Context
[What problem are we solving? What constraints exist?]

## Decision
[What we chose and why]

## Alternatives Considered
| Option | Pros | Cons |
|--------|------|------|
| ... | ... | ... |

## Implementation Steps

### Step 1: [Description]
- **Files:** [files to create/modify]
- **Depends on:** [previous step or "none"]
- **Done when:** [concrete acceptance criteria]

### Step 2: [Description]
...

## Consequences
- [Positive and negative outcomes, tradeoffs accepted]

Guidelines

Phase 4: Present to User

Show the ADR content and the file path. The user may:

Important

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.