blueprint-adr-validate
БесплатноЗапускает вложенные скриптыНе проверенValidate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links…
от laurigates★ 61 звезда на GitHubОб этом скилле
/blueprint:adr-validate
Validate Architecture Decision Records for relationship consistency, reference integrity, and domain conflicts.
Usage: /blueprint:adr-validate [--report-only]
When to Use This Skill
| Use this skill when... | Use alternative when... |
|---|---|
| Maintaining ADR integrity before releases | Creating new ADRs (use /blueprint:derive-plans) |
| Auditing after refactoring or changes | Quick one-time documentation review |
| Regular documentation review process | General ADR reading |
Context
- ADR directory exists: !
find . -path '*/docs/adrs' -maxdepth 2 -type d - ADR count: !
find . -path '*/docs/adrs/*' -name "*.md" -type f - Domain-tagged ADRs: !
find . -path '*/docs/adrs/*' -maxdepth 3 -name '*.md' -exec grep -l "^domain:" {} + - Flag: !
echo "${1:---}"
Parameters
Parse $ARGUMENTS:
--report-only: Output validation report without prompting for fixes- Default: Interactive mode with remediation options
Execution
Execute complete ADR validation and remediation workflow:
Step 1: Discover all ADRs
- Check for ADR directory at
docs/adrs/ - If missing → Error: "No ADRs found in docs/adrs/"
- Parse all ADR files:
ls docs/adrs/*.md - Extract frontmatter for each ADR: number, id, created, modified, status, domain, supersedes, superseded-by, extends, relates-to
Step 2: Validate reference integrity
For each ADR, validate:
- supersedes references: Verify target exists, target status = "Superseded", target has reciprocal superseded-by
- extends references: Verify target exists, warn if target is "Superseded"
- related references: Verify all targets exist, warn if one-way links
- self-references: Flag if ADR references itself
- circular chains: Detect cycles in supersession graph
- Cross-workspace references (v3.3.0+, manifests with
workspaces.role): Recognise these reference forms in supersedes/extends/related fields:ADR-NNN— local to the current workspace (existing behaviour).<workspace-path>/ADR-NNN— points into a sibling/child workspace. Resolve by reading<workspace-path>/docs/adrs/from the monorepo root. Warn if the workspace is not listed in rootworkspaces.children./ADR-NNN— points at the monorepo root's ADR set. Resolve using the manifest'sworkspaces.root_relative_path(for child manifests) or the current directory (for root manifests). Unresolved cross-workspace refs are reported as warnings (not errors) so they do not block validation during migration.
See REFERENCE.md for detailed checks.
Step 2b: Detect ADR-number collisions and index drift
ADR numbers are chosen at branch time but only claimed at merge time, so two
in-flight ADR PRs can pick the same number and both land (issue #1585 — the FVH
infrastructure #2015 collision where two ADRs both claimed 0038). Run the
deterministic guard:
bash ${CLAUDE_SKILL_DIR}/scripts/check-adr-numbers.sh
It emits STATUS= / REASON= / ISSUE_COUNT= and reports these
classes (see REFERENCE.md):
duplicate_adr_number(ERROR) — two files claim the same number, byNNNN-/ADR-NNN-filename or frontmatterid: ADR-NNNN. The message names the source (basename/frontmatter).adr_number_collision(ERROR) — a working-tree ADR claims a number a different file already holds on the base ref (origin/main) — the pre-merge parallel-PR case, caught before the second PR merges.adr_registry_mismatch(ERROR) — a file claimsADR-NNNNbut the manifestid_registrymaps that number to a different path. The registry is the only arbiter resolving id → path unambiguously: two files can both sayADR-0016, only one can be registered. Silent with no manifest / noid_registry.adr_missing_index_row(WARN) — an ADR is missing from the directory's README index (how the0038collision went unnoticed for a week). Repair via Step 2c instead of re-warning.adr_dir_unrecognized_naming(WARN) — no ADR number recognised (#2822).
Multiple ADR directories (issue #2129): the guard scans a directory set —
the real ADR-0016 collision had its claimants in docs/adrs/ and
docs/blueprint/adrs/, which a single-directory scan cannot see. Precedence:
repeatable --adr-dir <dir>, else validation.adr_dirs from the shared
validation manifest block (issue #2128, read via
blueprint-plugin/scripts/get-validation-config.sh — do not add a second config
mechanism), else the default docs/adrs then docs/adr order. It emits
ADR_DIRS= (TAB-separated) and ADR_DIR_COUNT=; ADR_DIR=, ADR_COUNT= and
INDEX= keep their #1585 meanings.
Fold findings into the Step 4 report. STATUS=ERROR is a blocking collision:
renumber the newer ADR to the next free number (updating both its filename
and its frontmatter id:), then regenerate the ind
Установить blueprint-adr-validate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBash(find *)Bash(ls *)Bash(wc *)Bash(grep *)Bash(head *)Bash(sed *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/check-adr-numbers.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/generate-adr-index.sh *)Bash(jq *)Bash(date *)Bash(mv *)GlobGrepEditAskUserQuestionВложенные файлы
FAQ
Что делает скилл blueprint-adr-validate?
Validate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links, cycles, or number collisions.
Как установить скилл blueprint-adr-validate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blueprint-adr-validate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic