/blueprint-plugin:blueprint-adr-validate --report-only to validate without prompting for fixesfrom blueprint-plugin
Validates Architecture Decision Records for relationship integrity, domain consistency, and duplicate numbers. Use when auditing ADRs before release or finding broken links.
Ships in blueprint-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Validate Architecture Decision Records for relationship consistency, reference integrity, and domain conflicts.
Usage: /blueprint:adr-validate [--report-only]
| 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 |
find . -path '*/docs/adrs' -maxdepth 2 -type dfind . -path '*/docs/adrs/*' -name "*.md" -type ffind . -path '*/docs/adrs/*' -maxdepth 3 -name '*.md' -exec grep -l "^domain:" {} +echo "${1:---}"Parse $ARGUMENTS:
--report-only: Output validation report without prompting for fixes
Execute complete ADR validation and remediation workflow:
docs/adrs/ls docs/adrs/*.mdFor each ADR, validate:
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 root workspaces.children./ADR-NNN — points at the monorepo root's ADR set. Resolve using the
manifest's workspaces.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.
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, by NNNN- / ADR-NNN- filename or frontmatter id: 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 claims ADR-NNNN but the manifest id_registry maps that number to a different path. The registry is the only arbiter resolving id → path unambiguously: two files can both say ADR-0016, only one can be registered. Silent with no manifest / no id_registry.adr_missing_index_row (WARN) — an ADR is missing from the directory's README index (how the 0038 collision 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 index (Step 2c).
adr_missing_index_row is repairable — the hand-maintained table is what
rotted. Rebuild it from frontmatter:
# CI / read-only gate: non-zero exit when the on-disk index is out of date
bash ${CLAUDE_SKILL_DIR}/scripts/generate-adr-index.sh --check
# Repair: rewrite the table in every resolved ADR directory
bash ${CLAUDE_SKILL_DIR}/scripts/generate-adr-index.sh
Only the block between two marker comments is rewritten, so prose around it survives:
<!-- ADR-INDEX:START -->
| ADR | Title | Status |
| --- | ----- | ------ |
| [ADR-0016](0016-in-engine-ui.md) | In-engine UI | Accepted |
<!-- ADR-INDEX:END -->
One index per directory (--index-file overrides the README.md default), over
the same directory set and widened number collection as Step 2b — so an ADR
numbered only in frontmatter still gets a row. --check states per directory:
| State | Severity | Meaning |
|---|---|---|
in_sync | OK | On-disk block matches the generated one |
drifted | ERROR (exit 1) | Regenerate — the index is stale |
markers_absent | WARN (exit 0) | No marker pair yet; a write adopts them. Deliberately not a diff |
index_absent | WARN (exit 0) | No index file yet; a write creates one |
no_adrs | OK | Directory holds no numbered ADRs |
Write mode reports written / unchanged / markers_inserted /
index_created. When markers land in a README that already had a hand-written
table, delete that table — the generated block is authoritative.
Compile comprehensive report showing:
If --report-only flag present:
Ask user action via AskUserQuestion:
docs/adrs/validation-report.mdExecute based on selection (see REFERENCE.md).
Update the task registry entry in docs/blueprint/manifest.json:
jq --arg now "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--arg result "${VALIDATION_RESULT:-success}" \
--argjson processed "${ADRS_VALIDATED:-0}" \
'.task_registry["adr-validate"].last_completed_at = $now |
.task_registry["adr-validate"].last_result = $result |
.task_registry["adr-validate"].stats.items_processed = $processed' \
docs/blueprint/manifest.json > tmp.json && mv tmp.json docs/blueprint/manifest.json
Where VALIDATION_RESULT is "success", "{N} warnings", or "failed: {reason}".
Report all changes made:
| Context | Command |
|---|---|
| Check ADR directory | test -d docs/adrs && echo "YES" || echo "NO" |
| Count ADRs | ls docs/adrs/*.md 2>/dev/null | wc -l |
| Extract frontmatter | head -50 {file} | grep -m1 "^field:" | sed 's/^[^:]*:[[:space:]]*//' |
| Find by domain | grep -l "^domain: {domain}" docs/adrs/*.md |
| Detect cycles | Build supersession graph and traverse |
| Number collisions | bash ${CLAUDE_SKILL_DIR}/scripts/check-adr-numbers.sh |
| Two ADR dirs | … /check-adr-numbers.sh --adr-dir docs/adrs --adr-dir docs/blueprint/adrs |
| Index drift gate (CI) | bash ${CLAUDE_SKILL_DIR}/scripts/generate-adr-index.sh --check |
| Regenerate index | bash ${CLAUDE_SKILL_DIR}/scripts/generate-adr-index.sh |
For validation rules, remediation procedures, and report format details, see REFERENCE.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin blueprint-plugin35 skills in this plugin
/adr-relationshipsDomain analysis, conflict detection, and relationship validation for Architecture Decision Records. Use when creating or validating ADRs to ensure consistency./blueprint-adr-listList ADRs as a markdown table with title, status, date, domain. Use when generating an ADR index, auditing ADR status, or reviewing all architecture decisions./blueprint-autonomy-level3Install blueprint autonomy level 3 (ADR-0020): scheduled-autorun + approved-work-order-execution GitHub workflows. Use when enabling out-of-band blueprint automation in a repo.Other plugins' skills for the same job