Back to Skills

writeadr

verified

Output directory for ADRs (default: docs/adr)

View on GitHub

Marketplace

brockhoff-tools

kbrockhoff/brockhoff-tools-claude

Plugin

bkff

Repository

kbrockhoff/brockhoff-tools-claude

plugins/bkff/skills/writeadr/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/kbrockhoff/brockhoff-tools-claude/blob/main/plugins/bkff/skills/writeadr/SKILL.md -a claude-code --skill writeadr

Installation paths:

Claude
.claude/skills/writeadr/
Powered by add-skill CLI

Instructions

# Write Architectural Decision Record

Generates high-quality Architectural Decision Records (ADRs) using the MADR (Markdown Architectural Decision Records) template through a multi-agent pipeline.

## Usage

```bash
# Basic usage
/bkff:writeadr --decision="Use PostgreSQL for primary data storage"

# With context and specific sources
/bkff:writeadr --decision="Implement event sourcing" --context="High audit requirements" --sources="src/domain,docs/requirements.md"

# Custom output directory
/bkff:writeadr --decision="Adopt microservices" --output="architecture/decisions"
```

## Multi-Agent Pipeline

```
┌─────────────────────────────────────────────────────────────┐
│                     ADR GENERATION PIPELINE                  │
└─────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────┐
│                    1. ADR Writer Agent                       │
│  • Analyzes codebase and context                            │
│  • Generates initial ADR content using MADR template        │
│  • Documents options, decision drivers, and consequences    │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────┐
│                   2. ADR Validator Agent                     │
│  • Validates claims against grounding sources               │
│  • Checks technical accuracy                                │
│  • Identifies unsupported assertions                        │
│  • Suggests corrections or clarifications                   │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────┐
│                  3. ADR Formatter Agent                      │
│  • Assigns sequential ADR number                            │
│  • Formats for consistency with existing ADRs               │
│  • Ge

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5498 chars