review-steering
БесплатноБез исполняемых скриптовНе проверенCompiles REVIEW.md and keeps CLAUDE.md accurate as the two sanctioned surfaces for steering Anthropic's managed Code Review service, translating this repo's…
от dralgorhythm★ 136 звёзд на GitHubОб этом скилле
Review Steering
Two Surfaces, Not One
Anthropic's managed Code Review service and the local /code-review command are customized through exactly two files — nothing else steers them.
| File | Content | Read by |
|---|---|---|
CLAUDE.md |
Project context — stack, conventions, architecture | Local /code-review command AND the managed Code Review service |
REVIEW.md |
Review-only instructions, injected into every managed review agent run at highest priority | Managed Code Review service ONLY — never read by local /code-review |
Do not duplicate CLAUDE.md content into REVIEW.md. REVIEW.md carries only what a reviewer needs that project context doesn't already say — everything else is noise diluting a high-priority injection.
Generation Workflow
- Read
.claude/rules/code-quality.md— quality gates, SOLID/DRY musts, performance checklist. - Read
.claude/rules/security.md— security checklist, severity classification (block on Critical/High), CWE-reference convention. - Compile both into REVIEW.md as terse reviewer imperatives — "flag X", "block on Y", "ignore Z" — never prose restatements of the rules.
- Keep it short: reviewers get REVIEW.md injected on every run, and every extra line dilutes the priority of the lines that matter.
- Add repo-specific invariants a generic reviewer cannot infer from a diff alone — artifact-naming conventions, enforcement-ladder placement, framework-specific patterns.
- Confirm CLAUDE.md still states project context accurately; both surfaces depend on it being current.
- Scaffold from the bundled template and replace every placeholder before committing — see Resources below.
- Stamp the final line with
<!-- rules-hash: <hash> -->, where<hash>is the output ofcat .claude/rules/code-quality.md .claude/rules/security.md | shasum -a 256 | cut -d' ' -f1.scripts/check-invariants.sh'sreview-freshnesscheck recomputes this on every run and fails the build if a tracked REVIEW.md's footer is missing or doesn't match — see Refresh Discipline below.
Imperative Style, Not Prose
Compile rules into commands, not descriptions — every line should read like an instruction a reviewer executes, not a fact they learn.
- Rule (
code-quality.md): "SQL queries use parameterized statements" → REVIEW.md: "Block on unparameterized SQL — require parameterized queries (CWE-89)." - Rule (
security.md): "Critical/High severity MUST fix before merge" → REVIEW.md: "Block merge on any Critical or High finding. Flag Medium; Low is optional." - Rule (
security.md): "No hardcoded secrets or credentials" → REVIEW.md: "Flag any hardcoded secret, credential, or token in any format (CWE-798)."
Refresh Discipline
- Rules changed → regenerate REVIEW.md in the same PR. Do not defer it to a follow-up.
- REVIEW.md is a build artifact of
.claude/rules/, not an independently maintained document. Freshness is mechanically checked, not self-attested:scripts/check-invariants.sh'sreview-freshnesscheck recomputes the step-8 hash from the current.claude/rules/code-quality.md+security.mdcontent and fails the build if a tracked REVIEW.md's footer doesn't match. - Drift means reviewers enforce stale policy against current code. A
review-freshnessfailure is the check telling you to regenerate and re-stamp — not a style disagreement to negotiate.
What NOT to Put in REVIEW.md
- Style nits a formatter already enforces (Biome, Ruff, golangci-lint, etc.) — reviewer attention is not a substitute for pre-commit hooks.
- Anything a CI check already blocks. Check the Enforcement Ladder in
.claude/rules/security.mdfirst — a deterministic gate beats a reviewer instruction, so cite the check instead of duplicating it as a review imperative. - Secrets, credentials, or internal paths — REVIEW.md is a tracked, committed file, not a scratch note.
Resources
Установить review-steering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл review-steering?
Compiles REVIEW.md and keeps CLAUDE.md accurate as the two sanctioned surfaces for steering Anthropic's managed Code Review service, translating this repo's rules into terse reviewer imperatives. Use when creating or updating REVIEW.md, configuring or steering automated code review, or reconciling review instructions after rules change.
Как установить скилл review-steering?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-steering запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic