Command Palette

Search for a command to run...

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

code-review

БесплатноЗапускает вложенные скриптыНе проверен

Review the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding…

svyatovот svyatov★ 42 звезды на GitHub

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

Three-axis review of the diff between HEAD and a fixed point the user supplies:

  • Standards: does the code conform to this repo's documented coding standards?
  • Spec: does the code faithfully implement the originating issue / spec?
  • Adversarial: how does the change fail in production?

Every axis has an independent host reader and, when repository settings select one, an external reader. They run in parallel so they do not pollute each other's context. Agreement is cross-family evidence only when authoritative provider metadata establishes distinct host and external families. This skill aggregates what survives validation.

The issue tracker should have been provided to you. If docs/agents/issue-tracker.md is missing, tell the user to run /setup-supermatt-skills in Claude linked installs or Cursor, /supermatt:setup-supermatt-skills from the Claude plugin, $setup-supermatt-skills in Codex, or /skill:setup-supermatt-skills in OMP.

Process

1. Pin the fixed point

Whatever the user said is the fixed point (a commit SHA, branch name, tag, main, HEAD~5, etc.). If they didn't specify one and HEAD is on a branch other than the default branch, the fixed point is the default branch (git symbolic-ref --short refs/remotes/origin/HEAD, minus its origin/): name it in one line and carry on. On the default branch with uncommitted changes, the fixed point is HEAD: name it in one line and carry on. On a clean default branch, ask.

Resolve the merge-base once with git merge-base <fixed-point> HEAD, create a fresh mktemp -d directory ($DIR below), and write the diff into it: git diff <merge-base-sha> > "$DIR/diff.patch" (against the merge-base, and including uncommitted changes to tracked files). Require that command to succeed, then append every untracked file:

git ls-files -z --others --exclude-standard > "$DIR/untracked" &&
xargs -0 -I{} sh -c '
  git diff --no-index -- /dev/null "$1"
  status=$?
  [ "$status" -le 1 ] || exit 255
' sh {} < "$DIR/untracked" >> "$DIR/diff.patch"

Only Git diff statuses 0 (equal) and 1 (different) are accepted. Any other status stops collection; require the entire command to succeed before using the diff. That file is the diff every reader reads: a shell hook can shorten a diff printed to the terminal, and a redirected one lands on disk whole. Also note the list of commits via git log <fixed-point>..HEAD --oneline.

Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. A bad ref or empty diff should fail here, not inside six parallel readers.

For a follow-up, use the last reviewed commit as the fixed point and include the prior aggregate report. All axes review the fix diff and the behavior it can affect; unchanged findings keep their recorded disposition. A new defect made reachable by the fix remains in scope. Reuse test results and built artifacts only when their relevant source, dependencies, configuration, and environment are unchanged. For a test-only fix, verify that the revised assertion fails for the reported break and passes on the corrected behavior; browser QA of unchanged runtime code remains valid, and no fresh application build is needed solely to review the assertion.

2. Identify the spec source

Look for the originating spec, in this order:

  1. Issue references in the commit messages (#123, Closes #45, a local issue file path, etc.), fetched via the workflow in docs/agents/issue-tracker.md.
  2. A path the user passed as an argument. When it lies outside the repository, copy it to $DIR/spec.md for the prepared evidence.
  3. A spec file under docs/, specs/, or .scratch/ matching the branch name or feature.
  4. The request, plan, or approved findings in this conversation that the change carries out: write them to $DIR/spec.md and name that as the spec.
  5. If nothing is found, ask the user where the spec is. If they say there isn't one, the Spec axis will skip and report "no spec available".

3. Identify the standards sources

Anything in the repo that documents how code should be written, such as CODING_STANDARDS.md or CONTRIBUTING.md.

On top of whatever the repo documents, the Standards axis always carries STANDARDS.md: a Fowler smell baseline, a refactor check, and a test check. A documented repo standard overrides the baseline.

4. Resolve the external peer

Read and resolve docs/agents/cross-model.json exactly once through the harness contract. Record the resolved CLI, model (default when null), effort (default when null, unsupported for Cursor), family status, and isolation level.

In host-only mode, do not prepare peer bundles, emit a peer-send notice, launch a peer, or use a CLI as a capacity fallback. Queue host readers and validators within native capacity. If native capacity never becomes available, keep the existing incomplete-axis result. Preser

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

Установить code-review в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

ADVERSARIAL.mdCREDITS.mdNOTICESTANDARDS.mdVALIDATOR.mdagents/openai.yamlscripts/snapshot-tree.mjs

FAQ

Что делает скилл code-review?

Review the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Adversarial (how does the change fail in production?). Runs each axis in an independent host reader and applies the repository external-peer policy. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".

Как установить скилл code-review?

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

Скилл code-review запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить code-review с