Gh Pr Commit Reviewのロゴ

Gh Pr Commit Review

コミュニティ
jpoehnelt
gh-pr-commit-review

Review new commits on open GitHub PRs against their actual base without stale or duplicate findings. Use for cutoff-based or scheduled review sweeps, stacked or rebased PRs, cleaning up review threads, or posting actionable inline findings. Read-only except comments and thread resolution.

概要

公開者jpoehnelt
リポジトリskills
スキル名gh-pr-commit-review
スター
23
フォーク
1
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

PR commit review

High-confidence, read-only review of net-new PR commits.

Repo facts (from AGENTS.md or CLAUDE.md): engineering rules and invariants to review against, cross-package or wire contracts, generated paths that must not be hand-edited, and required PR metadata (changesets, linked issues).

Select candidates

  1. Run scripts/review-candidates.sh <cutoff> [owner/repo] with a UTC cutoff (YYYY-MM-DDTHH:MM:SSZ). It lists open PRs updated after the cutoff in the origin repo.
  2. Review only PRs updated after the cutoff. If none changed, check open threads you own for fixes that landed.
  3. If no PR or thread needs action, stop without writing to GitHub.

Build the diff

  1. Fetch the live head and the PR's actual base ref. A stacked PR's base is its parent branch, not the default branch. Refresh the base ref explicitly before diffing.
  2. Review what is new since your last review, not commits dated after the cutoff: commit dates do not show when a branch was pushed. Take the commit_id of your latest review on the PR (gh api --paginate repos/<owner>/<repo>/pulls/<n>/reviews --jq '.[] | select(.user.login == "<you>") | .commit_id' | tail -n 1; pages run oldest first, so take the last line) and diff it to the live head. If the base moved since then (a rebase, or the base merged in), compare patch ranges instead so base-only changes stay out: git range-diff $(git merge-base <base> <reviewed>)..<reviewed> $(git merge-base <base> <head>)..<head>. With no earlier review, review the full base-to-head diff.

What to flag

Correctness, authorization and tenant scoping, concurrency and races, data loss, retry safety, and contract drift (API and wire schemas, shared types, database schema). Also flag violations of the repo's own rules from AGENTS.md, such as hand-edited generated files or missing required metadata. Skip nits and speculation.

For an intent-based finding, cite the requirement source and classify it as this PR's deliverable, a preservation constraint, or a broader objective. Establish that it applies, give a concrete counterexample, and show that this PR introduces the violation or omits an explicitly promised fix. Keep unclear scope as a question, not a defect.

Threads and findings

  1. Re-read live threads and comments before posting. If the point is already raised, add nothing. Do not re-raise a resolved point.
  2. Verify each finding against the current head, not an earlier commit.
  3. Post one concise inline comment per finding on the exact changed line. No top-level approval or summary comment unless the API requires a review envelope.
  4. Resolve a thread you own only when the latest head demonstrably fixes it, not merely because it is outdated. Batch resolutions.

Boundary

Posting comments and resolving threads are external actions; without the user's authorization, return findings in chat. Never commit, push, rebase, or merge here. Deliver fixes through gh-pr-feedback-loop.

Verify

  • Each finding cites a line on the current head and a concrete failure mode.
  • Only changes since your last reviewed head (or the full diff, if none) were reviewed, against the actual base.
  • No duplicate of an existing thread.
  • Resolved threads were verified fixed.
  • No write to the repository, only comments and resolutions.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Gh Pr Commit Review」では何ができますか?

Review new commits on open GitHub PRs against their actual base without stale or duplicate findings. Use for cutoff-based or scheduled review sweeps, stacked or rebased PRs, cleaning up review threads, or posting actionable inline findings. Read-only except comments and thread resolution.

TypingMindでGh Pr Commit Reviewを使うメリットは何ですか?

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

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

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

Gh Pr Commit Reviewを使えるAIモデルはどれですか?

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

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

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

AIスキル「Gh Pr Commit Review」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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