Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

adr-author

БесплатноЗапускает вложенные скриптыНе проверен

Authoring skill for Architecture Decision Records (ADRs) supporting capture, from-planner-handoff, and adopt-template entry modes with selectable Y-Statement…

microsoftот microsoft★ 1 654 звезды на GitHub

Об этом скилле

adr-author

Overview

This skill encodes the per-phase authoring conventions for Architecture Decision Records consumed by the ADR Creator agent. It also supports direct invocation when no ADR Creator state file exists. Direct callers first run the session recovery and bootstrap protocol from references/adr-identity.md: resolve or create .copilot-tracking/adr-plans/{projectSlug}/state.json, confirm entryMode, projectSlug, and outputTemplate, then continue at the phase recorded in state. It supports three entry modes and two output templates and converges all of them at the Govern phase, where the final ADR file is written and lineage is updated atomically.

Entry modes (state.entryMode):

  • capture — Interactive authoring driven by user answers to Frame and Decide questions.
  • from-planner-handoff — Entry from an upstream planner (Security, RAI, SSSC) with pre-populated Frame fields. Frame still requires user confirmation before exit.
  • adopt-template — One-time setup mode that ingests a project's pre-existing ADR template and emits both the first ADR and a committed .adr-config.yml.

Output templates (state.outputTemplate):

  • y-statement — Compact Y-Statement-shaped ADR for low-stakes or reversible decisions. Compressed Frame; ASR triggers optional.
  • madr-v4 — Long-form MADR v4.0.0 ADR for architecturally significant decisions. ASR trigger evaluation required during Frame.

Entry mode and output template are independent: a from-planner-handoff session can target either y-statement or madr-v4, and a capture session can do the same. The adopt-template mode produces output shaped by the user's normalized template.

Lifecycle at a glance:

Mode Phase sequence Output
capture Frame → Decide → Govern Shaped by outputTemplate (y-statement or madr-v4)
from-planner-handoff Frame (confirm pre-populated) → Decide → Govern Shaped by outputTemplate (y-statement or madr-v4)
adopt-template Ingest → Normalize → Derive Questions → Fill → Govern First ADR + .adr-config.yml per the BYO contract

The state machine, hard exit gates, autonomy tiers (manual, partial, full), and the canonical state.json schema are defined in references/adr-identity.md. This skill provides the authoring activities and artifact contracts; it does not redefine the state machine.

Frame

Activities:

  • Scope — capture the decision in one or two sentences; bound it to a single project.
  • Decision-makers — record deciders, consulted, informed (RACI-aligned). Prefer a role or team handle over a personal name, and never record personal contact details, secrets, credentials, or third-party or customer PII in any ADR field.
  • Drivers — list decision drivers (functional needs, business goals).
  • Constraints — list non-negotiables (regulatory, platform, contractual, time).
  • ASR trigger evaluation — required when state.outputTemplate == 'madr-v4'. Evaluate triggers against the rubric in adr-standards.instructions.md and record results in state.asrTriggers[]. Defer the rubric and full taxonomy to that file and to references/asr-trigger-taxonomy.md.
  • Diagram-format prompt — when state.userPreferences.diagramFormat is unset, check the architecture-diagrams root state at .copilot-tracking/architecture-diagrams/state.json; if that file provides userPreferences.diagramFormat, use it. Otherwise ask the user for ascii or mermaid, persist the answer to state.userPreferences.diagramFormat, and persist it to the architecture-diagrams root state for standalone reuse. When a caller, handoff, or existing ADR state already provides state.userPreferences.diagramFormat, treat that value as authoritative and do not ask again. Required before Frame can exit.

Hard exit gate (restated from references/adr-identity.md):

The Frame phase cannot advance without all of the following recorded: scope statement, deciders list, decision drivers, ASR triggers determination (when outputTemplate == 'madr-v4'), and userPreferences.diagramFormat. The user must confirm the Frame summary before advancing.

Output artifacts:

  • Frame section of the in-progress ADR draft (working draft only; not yet written to disk).
  • Updated state.json fields: scope, deciders, consulted, informed, drivers, constraints, asrTriggers (when outputTemplate == 'madr-v4'), userPreferences.diagramFormat.

Decide

Activities:

  • Option enumeration — at least two considered options. A single-option ADR is rejected at this gate.
  • Evaluation criteria — score each option against the drivers and constraints c
Полный SKILL.md на GitHub

Установить adr-author в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

pyproject.tomlreferences/adr-identity.mdreferences/asr-trigger-taxonomy.mdreferences/authoring-rubric.mdreferences/lineage-rules.mdreferences/standards-excerpts.mdscripts/__init__.pyscripts/_utils.pyscripts/normalize_template.pyscripts/render_template.pyscripts/scan_sensitive_content.pyscripts/update_lineage.pyscripts/validate_config.pyscripts/validate_frontmatter.pytemplates/diagram-ascii.mdtemplates/diagram-mermaid.mdtemplates/madr-v4-frontmatter-overlay.mdtemplates/madr-v4.mdtemplates/y-statement.mduv.lock

FAQ

Что делает скилл adr-author?

Authoring skill for Architecture Decision Records (ADRs) supporting capture, from-planner-handoff, and adopt-template entry modes with selectable Y-Statement or MADR v4.0.0 output templates, supersession lineage, and ASR trigger evaluation.

Как установить скилл adr-author?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adr-author запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить adr-author с