Command Palette

Search for a command to run...

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

decision-variance

БесплатноБез исполняемых скриптовНе проверен

Reconcile the project's architectural artifacts against the scaffold and prior decisions, then present each variance as a SMARTS analysis for the user to…

lza6от lza6★ 19 звёзд на GitHub

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

decision-variance

Reconcile the architectural artifacts against the scaffold; present variances; the user decides. This skill never arbitrates on its own — every recorded decision carries user attribution.

The SMARTS lenses, cell rules, and strength labels are in ${CLAUDE_PLUGIN_ROOT}/includes/smarts/core.md — read it before Phase 3. The append-only decision-log entry format is in ${CLAUDE_PLUGIN_ROOT}/includes/smarts/decision-log-format.md — read it before writing a log line.

Pre-flight

Read these, or STOP and surface the gap — never guess a path or a position:

  • ${CLAUDE_PROJECT_DIR}/.codearbiter/CONTEXT.md — project context and the stage: maturity value.
  • ${CLAUDE_PROJECT_DIR}/.codearbiter/security-controls.md — only when a variance touches a security boundary (auth, crypto, secrets). Feeds the Securable lens.

Locate the three architectural artifacts by exact filename — 01-architecture-breakdown.md, 02-phased-build-plan.md, 03-task-backlog.md — first under ${CLAUDE_PROJECT_DIR}/.codearbiter/plans/, then the project root, then docs/. MUST NOT pattern-match similar names (architecture-draft.md, task-list.md); loose matching arbitrates against the wrong document. If any of the three cannot be located, ask the user for the path. Do not infer.

Phase 1 — Locate inputs and detect stale decisions · gate: STOP

Index, in addition to the three artifacts:

  • Existing ADRs — ${CLAUDE_PROJECT_DIR}/.codearbiter/decisions/. Record each by number, title, status, summary.
  • The decision log — ${CLAUDE_PROJECT_DIR}/.codearbiter/decisions/decision-log.md. The persistent, append-only arbitration record. Read it before generating new variances.
  • The scaffold — manifests, dependency files, source dirs, config, CI.

If the decision log exists, run the stale check: extract each prior entry's recorded artifact-section hash, recompute the current SHA-256 of the cited section (heading inclusive, HTML comments stripped), and flag every decision whose hash changed. Surface the flagged set: "These prior decisions reference artifact sections that have changed. Re-evaluate, keep as-is, or mark superseded?" Per the user's choice — re-evaluate (treat as a new variance), keep (update the recorded hash to current), or supersede (prompt for a new decision, append per the supersession protocol in ${CLAUDE_PLUGIN_ROOT}/includes/smarts/decision-log-format.md).

Gate: the three artifacts are located, ADRs and the decision log are indexed, and any stale prior decisions are surfaced and dispositioned by the user. A first session with no decision log skips the stale check and clears.

Phase 2 — Build the evidence index · gate: BLOCK

For each architectural decision in the three artifacts, record: a decision ID, the artifact source (document, section anchor), the stated position, the scaffold evidence (file paths), and exactly one variance status:

  • concur — both have evidence and agree
  • divergent — both have evidence and disagree
  • scaffold-silent — artifact states a position, scaffold shows nothing
  • artifact-silent — scaffold implements it, artifact is silent
  • both-silent — neither has evidence (informational only)

A decision that fits none of the project's established categories is recorded category: UNKNOWN with a note on why it does not fit, then surfaced to the user to map or name. MUST NOT invent a category.

Gate: every artifact decision classified to exactly one status, each divergent / scaffold-silent / artifact-silent case backed by a concrete citation on both sides where evidence exists.

Phase 3 — Generate the variance report · gate: BLOCK

For every divergent, scaffold-silent, or artifact-silent case, write one entry: the artifact position (cited with anchor), the scaffold position (cited with file paths), why it matters (1–3 sentences), the resolution options (adopt artifact / adopt scaffold / hybrid only if a real synthesis exists / defer with reason), a SMARTS analysis of each option, and a recommendation with a strength label. concur and both-silent cases produce no entry — they live in the evidence index only.

The SMARTS table follows ${CLAUDE_PLUGIN_ROOT}/includes/smarts/core.md exactly: six lenses, verdict-first cells (Strong / Adequate / Weak / Indifferent), the length cap, no hedging adverbs, evidence specificity. The recommendation carries one strength label — strong / moderate / tied.

Precedent row. Before writing the tables, scan the existing decision log once: tally which lenses prior resolutions turned on (which lens was decisive, which way ties broke) and note decisions whose subject overlaps this variance. Under each SMARTS table, append one Precedent: line citing the 1–3 most similar prior decisions by ID and the observed pattern — e.g. Precedent: D-014 (bundled over external, Available decisive), D-009; this log has broken 3 of 4 ties toward Maintainable. No prior decisions, or none relevant → `Precedent:

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Reconcile the project's architectural artifacts against the scaffold and prior decisions, then present each variance as a SMARTS analysis for the user to decide. Routed to when the user asks to arbitrate, reconcile, or consolidate architectural context, requests a variance report, mentions ADR conflicts, or asks which downstream artifacts the current state supports. Never decides alone — every arbitration is user-attributed and logged.

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

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

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

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

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

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