Review That Runsのロゴ

Review That Runs

組織
Codeminer42
review-that-runs

Review a pull request by running it, not just reading it. Detects the project's forge (GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit, plain git) and stack, checks out the change in an isolated worktree, runs the project's own CI gates, drives the app in Chrome for frontend changes, verifies every finding before writing it, and writes the review to a local notes file with one proof line per finding, then removes the worktree and every container it started. Posts nothing to the code host. Use when asked to review a PR, MR, change or branch, locally or before posting.

概要

公開者Codeminer42
リポジトリskills
スキル名review-that-runs
スター
33
フォーク
2
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Codeminer42がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Review That Runs」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Codeminer42/skills/tree/main/review-that-runs
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Codeminer42/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/review-that-runs .claude/skills/review-that-runs
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでReview That Runsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にReview That Runsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Review That Runsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Review that runs

Written for the post Six weeks of AI code review: what it caught and what it let through, which tells what these rules caught and missed over 79 real PRs.

A first-pass PR review for a human to read, cut and post. The agent checks; the human decides. Nothing here approves or blocks a PR.

Structure borrowed from Matteo Collina's reviewing-prs.md (skill nodejs-core, https://github.com/mcollina/skills). The difference: this one executes.

Hard rules

  1. Verify before you claim. Anything you cannot prove against the code on the branch does not become a comment. A killed false positive is the system working.
  2. Never touch the user's working tree. Fetch the PR and git worktree add --detach into <state>/<pr|mr|change>-<N>/worktree/ (see Output template), never inside the repo.
  3. Nothing reaches the code host. No gh pr review, glab mr note, az repos pr comment etc. The deliverable is the notes file. Posting it is the user's call.
  4. Detect, don't assume. Forge, language, package manager and gates come from the repository, never from habit. A guessed npm test that fails in a Ruby repo gets blamed on the PR.
  5. Frontend changes get run in Chrome. The real app, styled, built from the PR's own worktree. A passing test, a screenshot of unstyled markup and a careful read of the diff are not validation: layout and overflow are invisible to all three. If the app genuinely cannot run, say so and name the reason.
  6. Every finding ends with a proof line. *Verified:* when you tested it, *Inferred:* when you only read it. No proof line, no comment.
  7. Mark what you changed to make it run. Any edit to mocks, fixtures or env to boot the app carries a // REVIEW SCRATCH: not part of the PR comment, and the overview names it, so mock behaviour is never read as the PR's.
  8. Leave nothing running. The worktree, every container, volume, network, dev server and Chrome page the review started is torn down before the notes path is reported, also when the review is aborted or fails halfway (see Cleaning up). Only the notes file and the profile survive a review.

Flow

Track progress in a todo list with exactly these steps, in order:

  1. Detect: identify the forge, then fetch the head and build the project profile (below) before running anything.
  2. Target: read the PR's metadata and diff with the forge's own tool, and fetch its head. Note the head SHA and the base branch.
  3. Spec: find the ticket in the branch, title or description. Unreachable? The PR description is the spec. Say which one you used.
  4. Big picture: read CLAUDE.md / AGENTS.md, the project's docs and ADRs, and the modules around the change. A diff can be locally correct and still wrong for the system.
  5. What changed: one business-level paragraph. "Fixes the duplicate image on the product page", never "renamed a to b and added an if".
  6. Scope check: the spec against the diff. Matches, misses pieces, or does things nobody asked for.
  7. Find problems: correctness (edge cases, wrong data, unhandled errors, races) and design (consistency with sibling code, reinventing what already exists, silent breaking changes). Open every changed file at the PR's revision. When a function, route or event changes, find its other callers including the ones the diff does not touch.
  8. Verify: test each finding before writing it up. Prefer a failing test that reproduces it. Frontend goes through Chrome (below). Discard what does not hold.
  9. Write: fill the template.
  10. Tighten: cut filler, restated findings and praise adjectives.
  11. Check anchors: every anchor must land on a line the PR diff shows.
  12. Clean up: tear down everything the review started (below), then report the notes path.

Detecting the project

The forge comes from the remote and decides how to fetch. Everything else comes from the PR's head, since a PR can change the lockfile or CI config.

  • Forge: from git remote get-url origin. Decides how to fetch the head (pull/<N>/head, merge-requests/<N>/head, refs/changes/...), the name of the thing (PR, MR, change), anchor format and suggestion syntax. Self-hosted and unrecognised? Ask. CLI missing or logged out? Fall back to plain git fetch and ask for the description.
  • Stack: manifests and lockfiles name the language, package manager, toolchain pins and frozen-install command. Monorepo? Note which packages the diff touches.
  • Gates: read the CI config first (.github/workflows/, .gitlab-ci.yml, bitbucket-pipelines.yml, Jenkinsfile...). What CI runs is what will judge the PR. Makefile, bin/, script/ and package.json scripts usually wrap the same steps.
  • Runtime: how the app boots (compose, Procfile.dev, bin/dev), what services it needs, which mock layer exists, and whether the diff renders in a browser.
ForgeMetadata and diffFetch the head
GitHubgh pr view <N> --json title,body,headRefOid,baseRefName, gh pr diff <N>git fetch origin pull/<N>/head
GitLabglab mr view <N> --output json (sha, target_branch), glab mr diff <N>git fetch origin merge-requests/<N>/head
Gitea / ForgejoREST /api/v1/repos/<owner>/<repo>/pulls/<N> and .diffgit fetch origin pull/<N>/head
Bitbucket CloudREST /2.0/repositories/<ws>/<repo>/pullrequests/<N> and /diffThe source branch; for a fork, from the fork's URL
Azure DevOpsaz repos pr show --id <N> (lastMergeSourceCommit)sourceRefName; refs/pull/<N>/merge is a merge preview, not the head
Gerritssh -p 29418 <host> gerrit query --current-patch-set change:<N>git fetch origin refs/changes/<NN>/<N>/<patchset>, NN = last two digits
Plain gitThe user names the branch and its basegit fetch origin <branch>

Diff against the merge base (git diff <base>...<head>, three dots). Two dots against a moved base shows other people's commits as the PR's.

LockfileFrozen install
pnpm-lock.yaml / yarn.lock / package-lock.json / bun.lockpnpm i --frozen-lockfile / yarn install --immutable (v1: --frozen-lockfile) / npm ci / bun i --frozen-lockfile
Gemfile.lockBUNDLE_FROZEN=true bundle install
uv.lock / poetry.lock / Pipfile.lockuv sync --frozen / poetry sync / pipenv sync
go.sum / Cargo.lockgo mod download / cargo fetch --locked
composer.lock / mix.lockcomposer install / mix deps.get
mvnw / gradlew / packages.lock.jsonthe wrapper, never a global binary / dotnet restore --locked-mode

Toolchain pins to copy: .tool-versions, mise.toml, .nvmrc, .node-version, .ruby-version, .python-version, rust-toolchain.toml, global.json, the packageManager field. A CI step that needs secrets or deploy access does not run locally: list it under what could not be checked. Monorepo (pnpm-workspace.yaml, turbo.json, nx.json, Cargo or Go workspaces): run the gates for the changed packages and their dependents.

Save the profile to <state>/profile.md (see Output template) with the head SHA it was built from. Reuse it on the next review unless a lockfile, toolchain pin or CI file changed since that SHA. Copy it as the first line of the validation run, e.g. "GitLab MR, Rails 7 + Hotwire, Ruby 3.3, gates from .gitlab-ci.yml: rspec, rubocop, brakeman."

Running the PR

  • Copy the project's toolchain pins into the worktree and install with the lockfile frozen, using the command the profile names.

  • Run the project's own gates, the ones CI runs. Report what ran and what did not.

  • Serve the frontend on a port the user is not using. Their dev server is serving their branch, not the PR's.

  • No backend? Use the project's own mock layer (MSW handlers, fixtures, cassettes, factories) instead of starting services against the user's local database. Compose stacks run under their own project name (-p review-<N>) and ports, or not at all. Seed what the changed flow needs, and mark it (rule 7).

  • Name everything you start after the review, so the cleanup can find it without guessing: compose with -p review-<N>, docker run with --name review-<N>-<service> and --label review-that-runs=<N>, test databases and schemas as review_<N>. Never reuse a container, volume or database the user already has.

  • Anything not in Docker (dev server, test runner, watcher, tunnel) starts in its own process group and is written to <state>/<pr|mr|change>-<N>/pids the moment it is up: one line per process, <pgid> <port or -> <command>. Memory of what was started does not survive a crashed or interrupted session; the file does.

    sh
    setsid pnpm dev --port 4173 > "$STATE/pr-<N>/dev-server.log" 2>&1 &
    echo "$! 4173 pnpm dev --port 4173" >> "$STATE/pr-<N>/pids"

Cleaning up

Runs as the last step, and also when the review aborts, errors out or is interrupted by the user: do the teardown first, then explain what went wrong. Nothing waits for the user to ask.

StartedTeardown
Worktreegit -C <repo> worktree remove --force <state>/<pr|mr|change>-<N>/worktree, then git -C <repo> worktree prune
Compose stackdocker compose -p review-<N> down --volumes --remove-orphans
Standalone containersdocker rm -f $(docker ps -aq --filter label=review-that-runs=<N>), then the same docker volume ls / docker network ls filter
Dev server, test runner, watcherFor each line in <state>/<pr|mr|change>-<N>/pids: kill -TERM -- -<pgid>, kill -KILL after a few seconds if still alive; then lsof -i :<port> for every port listed, kill anything left, and delete the file
Chrome pagesclose_page on every page the review opened; leave the user's tabs alone
Test database or schemaDrop review_<N> on the service the review itself started; never on the user's
Installed toolchains, caches, node_modulesLive inside the worktree and go with it; nothing is installed globally for a review

Keep the notes file and <state>/profile.md. Then check: git -C <repo> worktree list shows only the user's worktrees, docker ps -a --filter label=review-that-runs=<N> and docker compose -p review-<N> ps are empty, the pids file is gone and every port it listed is free. A pids file found at the start of a review is a previous run that did not get this far: tear it down first. If a teardown step fails, the validation run names what was left and the exact command to remove it.

Frontend validation with Chrome DevTools MCP

Server-rendered templates (ERB, Jinja, Blade, HEEx...) count as frontend.

  • new_page on the served app, log in, navigate to the changed flow.
  • take_snapshot to find elements; screenshots are evidence, not discovery.
  • Measure layout with evaluate_script over the real DOM: innerWidth, the container's clientWidth, the table's scrollWidth. State the viewport you measured at, and resize_page when the finding is about a narrower screen.
  • Try the change as each affected role, including one that should not see it.
  • list_console_messages at the end. New errors are findings.

Severity

Open each comment with its severity as a plain sentence:

TierLead-in
Blocker"This breaks prod." / "This loses data." / "This is a security hole."
Should-fix"This is a real bug."
Suggestion"Worth considering."
Nitpick"Small thing."

Output template

Write the notes to <state>/<pr|mr|change>-<N>/review-notes.md, using the forge's term, where <state> is ${XDG_STATE_HOME:-$HOME/.local/state}/review-that-runs/<host>/<path>, the host and path of the origin URL without .git (a local remote has no host: use its path alone). Nothing the review writes goes inside the reviewed repo; tell the user the notes path at the end:

markdown
# <PR|MR|Change> #<N> review notes (<forge>)

## Overview

<Business-level description, 2-5 sentences. Name any REVIEW SCRATCH edits.>

*Verdict: <does what was asked / misses X / also does unrelated Y>*

## Validation run

<The project profile. Then one line per pass that actually ran, one line for what
could not be checked and why, and one line naming what was torn down, or what was left
behind and the command that removes it.>

## Comments

<!-- anchor path="path/to/file.ext" start_line=N line=M side=RIGHT -->

<Lead-in. One short paragraph: what breaks and what it costs. At most one evidence
block: a suggestion, a diff, or input -> expected vs got.>

*Verified: <how you confirmed it>*

---

<!-- anchor path="path/to/other.ext" line=N side=RIGHT -->

<next comment>

*Inferred: <what you read, and why you could not test it>*

Line numbers are head-branch numbers on lines the diff shows. side=RIGHT is GitHub's term; on other forges it is the new-file line. Use the forge's suggestion syntax (```suggestion on GitHub, ```suggestion:-0+0 on GitLab, a plain ```diff elsewhere) only when the fix is exactly the anchored lines rewritten: Apply replaces the whole anchored range. When posted, the review goes out as a plain comment, with no approval, vote or change request. Those are a human's call.

When the notes are posted, the review body ends with this line, verbatim:

First pass by review-that-runs. Approving is a human's call.

よくある質問

AIスキル「Review That Runs」では何ができますか?

Review a pull request by running it, not just reading it. Detects the project's forge (GitHub, GitLab, Bitbucket, Azure DevOps, Gerrit, plain git) and stack, checks out the change in an isolated worktree, runs the project's own CI gates, drives the app in Chrome for frontend changes, verifies every finding before writing it, and writes the review to a local notes file with one proof line per finding, then removes the worktree and every container it started. Posts nothing to the code host. Use when asked to review a PR, MR, change or branch, locally or before posting.

TypingMindでReview That Runsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Review That Runsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにReview That Runsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Codeminer42/skills/tree/main/review-that-runsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Review That Runsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Review That Runsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもReview That Runsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Review That Runs」は無料ですか?

はい。Codeminer42がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇