hoc-code-review
Run a READ-ONLY, code-level review of a change and produce a findings report. Never fixes anything. Use this skill whenever the user asks to review a change…
от openreachtech★ 17 звёзд на GitHub
Установить hoc-code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Review
A read-only, code-level review of an implementation. The goal is to report where the code does not match what was specified, where it is likely to be wrong, and where it departs from the project's conventions — not to fix any of it.
The review is written to be run against a change that has a requirement definition document behind it. Without that document the first pass cannot be run; see Reviewing without a requirement document.
Rules (read first)
- Read-only. Never edit, never fix. Inspect, run non-mutating commands, report. State the fix per finding as text; do not apply it.
- Every requirement id appears in the report with a verdict, and every check category
appears as findings,
PASSorN/Awith a one-line reason. A gap must never look like "nothing to report". - Leave to the linter what the linter enforces. Run the project's lint command; report its result as one line. Do not turn lint-enforced formatting into findings — that noise buries the findings that matter. Where the project has no lint command, say so on that line; the formatting rules then fall to the convention pass, judged there the way every other point is — against what the conventions state, and against the surrounding code only where they state nothing.
- Detect, don't assume. Read the surrounding code before judging a line. A call that looks wrong is often correct against a convention you have not read yet.
- Report the defect, not the taste. A finding states what breaks, or which stated convention is violated. "I would have written this differently" is not a finding.
- Never claim a requirement is implemented because a file with a matching name exists. Read the code path end to end, from the entry point to the effect the acceptance criterion describes.
How to run
- Determine the target, and confirm it is not empty. Derive the diff under review: the
branch against its base (
git diff <base>...HEAD, three-dot so the base's own commits are excluded), the staged change, or a named commit range. Resolve the base to a commit before using it, and check the diff is non-empty before going further — a mistyped base produces an empty diff, and every check then passes for the wrong reason. Report the target, the resolved base commit and the changed-file count at the top of the report. - Locate the requirement document for the feature. Search in this order and say which one
supplied it: (a) an issue or ticket referenced by the commit messages in the range, (b) a
path the user gave, (c)
docs/features/<feature-slug>/requirements.mdor the project's own specification location, (d) ask the user. Read every requirement and its acceptance criteria before reading any code. - Profile the project. Read
package.json(scripts, dependencies), find the entry point, the configuration, the test layout and the convention set the project follows. The convention pass is a check against this project's conventions, not against generic advice. - Run the three passes, each against its detail file.
- Run the project's lint command and record the result as one line — or record that the project has none.
- Print the report in the order given under Output.
The three passes
| Pass | Question it answers | Detail file |
|---|---|---|
| A. Specification compliance | Does the code do what was specified, and only that? | specification-compliance.md |
| B. Correctness | Where is this code likely to be wrong? | correctness-checks.md |
| C. Convention conformance | Where does it depart from the project's conventions — and, where the project has written none, from the baseline? | convention-checks.md |
Run them in that order. Pass A decides what the change is for; passes B and C are read against that purpose. A correctness finding in code that pass A already reported as unrequested is worth less than the unrequested-code finding itself.
Verdicts (pass A)
One verdict per requirement id, chosen against the acceptance criteria — never against the requirement's title alone.
| Verdict | Meaning |
|---|---|
IMPLEMENTED |
Every acceptance criterion is satisfied by a code path that was read end to end |
PARTIAL |
Some criteria are satisfied and others are not; name which |
MISSING |
No code in the change satisfies the requirement |
WITHDRAWN |
The requirement document withdrew it; no code expected |
UNVERIFIABLE |
The criterion cannot be judged from the code (an environment or measurement is required); say what would be needed |
Code in the change that satisfies no requirement is not a verdict — it is reported as an
UNREQUESTED finding in pass A, because unrequested behavior is the failure mo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/convention-checks.md
- references/correctness-checks.md
- references/specification-compliance.md
FAQ
Что делает скилл hoc-code-review?
Run a READ-ONLY, code-level review of a change and produce a findings report. Never fixes anything. Use this skill whenever the user asks to review a change or pull request before it is merged, or to verify that what was built matches what was specified. Writing the requirement document it checks against belongs to the requirement definition convention.
Как установить скилл hoc-code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hoc-code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…