Adr generator

From lightspeedwp/.github · View interactive version

Adr generator is an AI agent skill from the GitHub repository lightspeedwp/.github. Generate architectural decision records with configuration-driven templates and validation

How to use this skill

Skill file

ADR Generator

Generate architectural decision records (ADRs) with flexible, configuration-driven behavior. Supports multiple template variants, custom numbering schemes, approval workflows, and WordPress-specific customizations.

Overview

The ADR Generator is a portable, configuration-driven agent that creates architectural decision records in any context: control-plane repositories, organization repositories, WordPress plugins, WordPress themes, and more.

Key Features:

Quick Start

  1. Initialize Configuration

```bash

claude adr-generator init

```

Creates .adr-config.json in repo root with sensible defaults.

  1. Generate an ADR

```bash

claude adr-generator create "Decision about X"

```

Creates docs/adr/0001-decision-about-x.md (path based on config).

  1. Validate ADRs

```bash

claude adr-generator validate

```

Runs all configured validation rules across the ADR directory.

Configuration

The agent is configured via .adr-config.json in the repository root. Configuration supports:

Configuration Inheritance

The agent follows a two-level inheritance model:

  1. Organization Defaults — Org-level .adr-config.json (if present)
  2. Repository Overrides — Repo-level .adr-config.json (repo values override org)

Both files use the same schema defined in config/adr-config.schema.json.

Examples

See examples/ for configuration templates:

Architecture

agents/adr-generator/
├── adr-generator.agent.md       # Main agent specification
├── SKILL.md                      # This file (skill entrypoint)
├── config/
│   ├── adr-config.schema.json   # JSON schema (validation)
│   ├── adr-config.definitions.md # Field reference
│   └── defaults.json             # Sensible defaults
├── examples/
│   ├── control-plane-config.json
│   ├── org-repo-config.json
│   ├── wordpress-plugin-config.json
│   └── wordpress-theme-config.json
├── skills/
│   ├── adr-config-loader.md     # Config loading & validation
│   ├── adr-template-loader.md   # Template management
│   ├── adr-validators.md        # Validation rules
│   └── adr-discovery.md         # Find next ADR number
├── tests/
│   ├── config-loader.test.js
│   ├── template-loader.test.js
│   ├── validators.test.js
│   └── discovery.test.js
└── docs/
    ├── INSTALLATION.md           # Setup guide
    ├── CONFIGURATION_REFERENCE.md # All options explained
    ├── BEST_PRACTICES.md         # When & how to write ADRs
    └── ARCHITECTURE.md           # System overview

Phases

Phase 1A (Weeks 1–2) — Configuration System

Phase 1B (Weeks 3–5) — Templates & Validation

Phase 1C (Weeks 6–8) — Agent, Skills, Tests & Documentation

Related Issues

References

_Built by 🧱 LightSpeedWP with ☕, 🚀, and open-source spirit!_

Contributors

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.