hex-review
Tiered adversarial review orchestrator for a working tree, branch diff, pull request, or plan/markdown artifact before it lands on main — a staged reviewer…
от ocx-sh★ 20 звёзд на GitHub
Установить hex-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
hex-review — Adversarial Reviewer
Thin dispatcher. It resolves the review target and baseline, classifies the
diff's tier, resolves overlays, runs the single meta-plan approval gate,
announces the resolved config, and hands off to the matching tier file.
hex-review never edits its own output or loops on it — the reviewer panel
runs once per invocation and reports; applying the findings is
/hex-execute's job.
The phase plans live in the five tier-<tier>.md files; the shared vocabulary (tiers, worker roles, model classes,
the memory file) lives in the hex-core reference library and is linked
here, never copied.
Loop mode — the caller is /hex-execute or /hex-loop, not a human.
It runs autonomously: no gate prompt, no question, ever (step 5). The report
and the findings go back to the caller.
Shared contracts:
protocol.md ·
workers.md ·
models.md ·
memory.md.
If hex-core is not installed: grim add ghcr.io/michael-herwig/arcana/hex-core:latest.
Argument syntax
/hex-review [tier] <target> [flags]
- tier (optional):
low | medium | high | xhigh | max | auto. Defaultauto— the classifier pickslow…xhighfrom diff metrics.maxis explicit only —--tier=max, or a plan whose Status block saysTier: max; the classifier never emits it (protocol.md). - target (one of):
- empty — in loop mode,
anchor..HEAD(the plan'sReviewed:anchor when valid, else the resolved baseline; step 2). Otherwise the working tree: uncommitted changes (staged + unstaged) againstHEAD. If the working tree is clean, fall back to the current branch's diff against the resolved baseline and say so in the announce block. - a branch name — diffed against the resolved baseline.
<N>/#<N>/PR <N>/pull/<N>/ a full GitHub PR URL — an explicit pull request.- a path to a markdown plan, ADR, or spec artifact — review the file
directly, not a code diff. Diff metrics do not apply; see
classify.md.
- empty — in loop mode,
- flags (before the target, by convention):
--base=<git-ref>— the diff baseline. Pipeline input, not an overlay axis: everything downstream (metrics, tier, review scope, adversary scope) reads from it. Default resolution in step 2.--breadth=minimal|full|adversarial— override the Stage 2 panel breadth (seeoverlays.md).--rca=on|off— override root-cause (Five Whys) analysis.--adversary/--no-adversary— force the cross-model pass on or off.--dry-run— make the meta-plan gate block for explicit approval and stop there (preview only, no workers launched).
Dispatch
The outer loop every hex orchestrator shares
(protocol.md):
1. Parse arguments and resolve memory
Parse the tier, target, and flags. Locate .agents/memory/hex.md by
searching upward from the working directory; a missing file is normal
(memory.md) —
fall back to shipped defaults and note that /hex-init can create one. When
present, read the whole file: hex.md › Pointers for where verification and
review conventions are documented, and for the constitution pointer when
present (activates the
constitution gate);
hex.md › Preferences for the instantiated model matrix, the adversary skill
name, limits, and always-on perspectives or path-triggered escalations; the
project's product knowledge (located via hex.md › Pointers) when present (it
grounds the user-feedback perspective); and hex.md › Memory for any active
plan this review might trace back to.
If the resolved hex.md carries a Federation lead: bullet, halt per
memory.md § Location and resolution
— this repo is a federation satellite and its memory is not the plan's.
2. Resolve the target and baseline
Detect the target (order above). For a GitHub reference, fetch title, body, labels, base ref, and file list in this order of preference:
- the client's GitHub MCP tools (PR read) when it exposes them;
- the
ghCLI (gh pr view --json baseRefName,title,body,labels,files) as fallback; - neither available — treat the input as a branch name or free text and continue.
Resolve the baseline: user --base=<ref> wins; else, where the traced plan
carries a valid Reviewed: anchor and the invocation is a review round
continuing that plan's loop, the anchor is the baseline — validity per
loop.md, which
re
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- classify.md
- overlays.md
- tier-high.md
- tier-low.md
- tier-max.md
- tier-medium.md
- tier-xhigh.md
FAQ
Что делает скилл hex-review?
Tiered adversarial review orchestrator for a working tree, branch diff, pull request, or plan/markdown artifact before it lands on main — a staged reviewer panel (spec, quality, security, performance, docs), root-cause analysis, and a cross-model adversarial pass (codex, medium and up) scale with diff size via tier (low|medium|high|xhigh|max, auto by default). Use for pre-merge checks, code review, branch or PR review, diff review, plan or ADR review, adversarial review, root-cause analysis, or any "review this before I merge" request. Never edits the code or diff under review, and never commits — its writes are the plan's Status block, an append-only convergence check, and — on an approved, converged fold — the resolved spec file and a fold receipt; the fix loop is /hex-execute's job.
Как установить скилл hex-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hex-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…