Skip to content
Back to skills

Architecture Decision

ASecurity

Creates an Architecture Decision Record (ADR) documenting a significant technical decision, context, alternatives, and consequences.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
designgoapiperformancedocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill architecture-decision --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Decision?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Decision
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-architecture-decision/badge)](https://www.skillsdirectory.com/skills/sebastianluser-architecture-decision)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture-decision
description: "Creates an Architecture Decision Record (ADR) documenting a significant technical decision, context, alternatives, and consequences."
category: "documentation"
argument-hint: "[title] [--review full|lean|solo]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Write, Task, AskUserQuestion
---
# architecture-decision — ADR Authoring

> → Read templates/adr.md for the full ADR document skeleton with all sections

## Parse Arguments

- `--review [full|lean|solo]` → or read `production/review-mode.txt` → default `lean`
- **Retrofit mode:** arg starts with `retrofit <path>` → read existing ADR, show section status, fill only missing sections (Status, ADR Dependencies, Engine Compatibility, GDD Requirements). Never modify existing content
- No argument → ask for title before proceeding

## Phase 0: Load Engine Context (ALWAYS FIRST)

1. Read the engine version from the project: `ProjectSettings/ProjectVersion.txt` (Unity) or `EngineAssociation` in the `.uproject` (Unreal). For Unreal, also read `docs/unreal/project-context.md` if `/ue-project-context` has run
2. Identify domain from title (Physics, Rendering, UI, Audio, etc.)
3. If the engine version is newer than what you know reliably, say so before proposing engine APIs
4. No engine detected → ask the user which engine and version

## Phase 1: Context Gathering

1. Scan `docs/architecture/` for next ADR number
2. Read related code, existing ADRs, GDDs from `design/gdd/`
3. **Architecture Registry Check (BLOCKING):** Read `docs/registry/architecture.yaml`, present locked constraints. If proposed decision contradicts registered stance → surface conflict, offer align/supersede/exception. Don't proceed until resolved

## Phase 2: Collaborative Design

Derive assumptions from context, then confirm/adjust via AskUserQuestion:
- Problem statement, 2-3 alternatives, GDD linkage, dependencies, Status=Proposed
- After confirmation, separate AskUserQuestion for any schema/data design questions
- ADR Dependencies: depends on, enables, blocks (or "None" for each)

## Phase 3: Generate ADR

Use template from `templates/adr.md`. Fill all sections from gathered context.

### Reviews (before saving)

| Review | When |
|--------|------|
| Engine Specialist | Always (if engine configured) — validate idiomatic approach, deprecated APIs |
| TD-ADR (technical-director) | `full` mode only — architectural coherence |

### GDD Sync Check

Before write approval, scan GDDs for naming inconsistencies with ADR interfaces. Surface as warning block if found, offer to update GDD in same pass.

## Phase 4: Write

AskUserQuestion for write approval. Write to `docs/architecture/adr-[NNNN]-[slug].md`.

## Phase 5: Update Architecture Registry

Scan ADR for new stances (state ownership, interface contracts, performance budgets, forbidden patterns). Present candidates. **BLOCKING** — don't write registry without explicit approval.

## Phase 6: Closing

List remaining priority ADRs as options. Include "Start writing GDDs" if all prereqs done.

**Always include:** "Run `/architecture-review` in a **fresh session** (never same session as authoring)."

Update blocked stories to Ready if this ADR unblocks them.

## Protocol
- Derive assumptions first, confirm via AskUserQuestion (not open-ended questions)
- Never generate ADR until user confirms assumptions
- Registry entries are append-only (supersede old, add new)
- Retrofit mode: only add missing sections, never modify existing

Files in this skill

  • SKILL.md3.4 KB
  • templates/adr.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.