Command Palette

Search for a command to run...

Назад к скиллам
скилл № 77493

decision-audit

Find and adjudicate stale or incorrect architectural decisions before they blow up in an implementation PR. Builds a risk-ranked inventory of both ADRs and…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

Установить decision-audit в Claude Code и Claude Desktop

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

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

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

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

Skill: Decision Audit

Surface architectural decisions that read as settled fact to coding agents but actually encode a stale or incorrect premise — the class of problem that stalls PRs when an implementer builds on a bad assumption and a maintainer has to interject to unwind it.

This skill is modeled on plan-issue, not build: the goal is shared understanding through a grill-me interview before anything is written. The agent surfaces candidates and evidence and argues the counter-case; the human adjudicates what is actually wrong and what the correction is. No spec, note, or ADR is edited until the interview reaches a verdict.

The scoring rubric, all the shell/git commands, and the adversarial re-derivation prompt template live in REFERENCE.md — load it in Phase 1.

Constants

See .agents/skills/shared/README.md for project IDs and issue type IDs.


Workflow

Phase 0 — Sync & Orient

Move the worktree HEAD to origin/main so the audit reflects current specs, notes, and ADRs. Do not git checkout main — that branch may be checked out in another worktree.

git fetch origin main && git checkout --detach origin/main

Detach rather than git reset --hard: a reset moves whatever branch is checked out, which may be another session's, and discards uncommitted work. A detached checkout moves no branch and refuses to overwrite local changes.

If this fails, stop and investigate. Then invoke the orient-agent skill to load baseline context (glossary, specs, AGENTS.md, completeness doctrine, ADR index).

Phase 1 — Build the Risk-Ranked Candidate Inventory (read-only)

Landmines live in two artifact types: ADRs (decisions) and spec groups (requirements). Both are treated as ground truth by implementers; both can encode a stale or wrong premise. Score both. Run:

uv run python -m vultron.metadata.adr.decision_audit_inventory

This emits the risk-ranked inventory (ADRs and spec groups together) computed from the signals below. REFERENCE.md documents the rubric and the manual fallback commands if the helper is unavailable.

Every candidate is scored as blast radius × confidence deficit — a shaky decision many things build on is the real danger; a shaky isolated one is cheap to fix later.

ADR signals:

  • Blast radius — dependent count from the adr: spec edges + prose citations (grep -rioE 'ADR-[0-9]{4}' specs/ notes/).
  • Confidence deficit: non-accepted status; status: accepted while prose carries provisional markers (formed in sand, not concrete, provisional, forward-looking, will converge, SHOULD refine, status will advance); index-vs-frontmatter drift; amended-after-acceptance (git log --follow); layer-boundary friction (prose describing a construct without pinning its layer, e.g. "shape base class" against BT-16-001); named as wrong/stale in plan/history/*/learning/ or plan/incoming/learnings/.

Spec-group signals (validated to discriminate — see REFERENCE.md for the ones deliberately rejected as non-discriminating, e.g. pytest-coverage):

  • Blast radius — inbound relationships edges (how many other specs depend on the group) + implementing-code references.
  • Confidence deficit:
    • Derives from a non-accepted ADR — a requirement in the group has an adr: edge to an ADR whose status is not plain accepted (proposed / accepted-provisional / superseded). Highest-value signal: it independently rediscovers CM-15, the ISSUE-1272 landmine.
    • Cites a superseded/archived ADR or note in its rationale.
    • testable: false cluster — two or more non-testable requirements with no behavioral steps (an untested assertion agents take on faith).
    • Purely prototype-scoped group that production code now depends on.
    • Named near a problem word (wrong, stale, contradict, supersede, ambiguous, mislead, rework, …) in learnings/history.

Present the ranked list to the user via ask_user: highest-risk first, interleaving ADRs and spec groups, each row tagged with its type and the signals that fired. Let the user pick which candidate(s) to work, with a "triage the whole list in order" option. Nothing is written in this phase.

Phase 2 — Deepen Context (per selected candidate)

Invoke deepen-context with domain hints derived from the candidate's title.

  • ADR candidate: read the full ADR, every spec whose rationale or adr: edge cites it, the dependent notes files, and representative implementing code. deepen-context gives you the edges but not the body, because it routes by title and adr: edge only. Read the body yourself and weigh it by .agents/skills/shared/weighing-decision-records.md.
  • Spec-group candidate: read the whole group, its relationships targets and inbound references, the ADR(s) it derives from, and the code + tests that implement it. Pay specia
Полный SKILL.md на GitHub

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

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

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

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

  • REFERENCE.md

FAQ

Что делает скилл decision-audit?

Find and adjudicate stale or incorrect architectural decisions before they blow up in an implementation PR. Builds a risk-ranked inventory of both ADRs and spec groups that agents treat as solid fact but may encode a wrong or outdated premise, re-derives each suspect adversarially from current understanding, then runs a grill-me interview so the human decides the verdict and correction. Fixes confirmed landmines in a docs-only PR by default, or files a type:Concern when real uncertainty remains. Use when the user wants to audit decisions, hunt for bad assumptions in ADRs/specs, find stale-premise landmines, or says "audit our decisions" / "what decisions are we wrong about".

Как установить скилл decision-audit?

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

Скилл decision-audit запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить decision-audit с