← ClaudeAtlas

judgelisted

Interactive judge of a staged git diff against the project's Accepted ADRs. Runs bin/adr-judge with the LLM pass (Claude Sonnet by default, since v0.13.0) — same engine the pre-commit hook uses, so verdicts are consistent. On violation, walks the user through three resolution paths (write a new ADR, supersede an existing ADR, fix the code). Pairs with the pre-commit hook — invoke before committing on important changes, or after the hook blocks you to drive the resolution.
rvdbreemen/adr-kit · ★ 0 · AI & Automation · score 73
Install: claude install-skill rvdbreemen/adr-kit
# adr-kit judge You are running an interactive judge of the user's staged git diff against the project's Accepted ADRs. As of adr-kit v0.13.0, the LLM evaluation is done by `bin/adr-judge --llm` (Claude Sonnet by default) — same engine and same prompt as the pre-commit hook, so a verdict here matches the verdict the hook would emit. Your job is to drive the resolution loop the hook can't drive: walk the user through fixing each violation interactively. ## Step 1 — Capture context Run these (assume `pwd` is the repo root the user's session is in; if not, use `git rev-parse --show-toplevel`): ```bash git diff --cached --unified=0 > /tmp/adr-judge-diff.patch git diff --cached --stat ``` If the staged diff is empty, tell the user nothing is staged and stop. Suggest: `git add <files> first, then re-invoke /adr-kit:judge`. ## Step 2 — Run the full judge (declarative + LLM) Resolve the plugin path (same resolver as in `/adr-kit:init`): ```bash ADR_KIT=$(ls -d ~/.claude/plugins/cache/rvdbreemen-adr-kit/adr-kit/*/ | sort -V | tail -1) "$ADR_KIT/bin/adr-judge" \ --diff /tmp/adr-judge-diff.patch \ --adr-dir docs/adr/ \ --llm \ --json > /tmp/adr-judge-result.json EXIT=$? ``` The `--llm` flag enables the Sonnet pass — `bin/adr-judge` shells out to `claude -p --model claude-sonnet-4-6` (configurable via `judge.llm_model` in `docs/adr/.adr-kit.json`). The runner falls back to declarative-only with a WARN line if the `claude` CLI is missing. Read `/tmp/adr-judge-res