Lean Pr Reviewのロゴ

Lean Pr Review

コミュニティ
ahmadrosid
lean-pr-review

GitHubのPRをレビューし、まず重大な問題を確認してから、不要な複雑さをチェックします。レビューしたPRを承認し、確認済みの問題を修正する別のPRを作成します。レビューコメントを投稿したり、作成者による修正を待ったりしないでください。簡潔なPRレビュー、/lean-pr-review、/lean-review、またはPRの過剰な設計に関するフィードバックを求められた場合に使います。

Add to TypingMind

概要

公開者ahmadrosid
リポジトリnakama
スキル名lean-pr-review
スター
492
フォーク
91
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Lean PR review

Review a GitHub PR for major issues, then over-engineering. Never mention internal frameworks, scoring tags, or this skill by name in comments or commit messages.

Input

PR URL or number (e.g. https://github.com/OWNER/REPO/pull/N).

Default: approve and open a fix PR

“Accept” means approve, not merge. For any author, fix verified findings in a separate PR instead of posting comments or waiting for the author. Explicit user instructions override this default.

Steps

  1. Fetch the PR with gh (REST preferred):

    • Metadata: title, body, base/head, author login, additions/deletions, changed files
    • Full diff for every changed file
    • Head SHA (needed to approve the reviewed version and prepare fixes)
    • Authenticated login: gh api user --jq .login
  2. First trace the changed behavior and its callers. Find concrete major issues: broken behavior, security or data exposure, data loss, or serious performance regressions. Report only issues supported by a clear failure scenario. Do not invent risks or flag style nits and minor test gaps. Fix these findings before any complexity findings.

  3. Then review for unnecessary complexity. A single smoke / assert-based self-check is fine — never ask to delete it.

    Ask: what can get shorter or go away without losing behavior?

    Look for:

    • Dead code, unused flexibility, speculative features → cut
    • Hand-rolled stdlib / platform features → use the built-in
    • Abstraction with one implementation, config nobody sets, layer with one caller
    • Same logic in fewer lines
    • Tests that re-prove the same property twice (e.g. two phases inside one try/finally when one hang + one failure already covers the lock)

    If neither pass finds anything, proceed to approval without inventing nits.

  4. Draft findings privately as file:Lline: problem, impact, and concrete fix for major issues, or file:Lline: what to cut. what replaces it. for lean cuts.

  5. If findings exist, prepare and open the separate fix PR below. Then re-fetch the original PR head SHA. If it changed, review the new changes and update the fixes before approving.

  6. Approve the reviewed SHA for an open PR by someone else using REST:

    bash
    gh api repos/OWNER/REPO/pulls/N/reviews --method POST --input review.json

    Write review.json with commit_id set to the reviewed head SHA and event set to APPROVE. Omit body and comments. GitHub does not allow approving your own PR; skip approval in that case. Skip approval for closed or merged PRs. Report API or permission failures in chat; do not substitute a comment or claim approval succeeded.

  7. Return the approval URL and fix PR URL with a short summary of the fixes. With no findings, return “LGTM” and the approval URL. Briefly state if approval was skipped or failed.

Separate fix PR

  1. Check out the reviewed head SHA in an isolated worktree when practical. Create a new branch, such as fix/pr-N-review, so the user's checkout stays untouched. Do not push fixes to the original PR branch.
  2. Fix verified major issues first, then apply lean cuts as minimal edits. No drive-by refactors beyond the findings.
  3. Run the smallest relevant tests and required checks for the touched files.
  4. Commit with a clear message focused on the fixes. Follow the user's git commit rules. Push to the original PR's base repository, or to your own fork if you cannot write there. Never push to the original author's fork.
  5. Open one ready-for-review PR containing the fixes:
    • Always open the fix PR in the original PR's base repository, targeting its base branch. Never open a PR in the original author's fork or target the author's branch.
    • Original PR open: base the fix branch on its reviewed head and state that the fix depends on the original PR. Its diff will narrow after the original PR merges. Do not merge the fix PR first.
    • Original PR merged: start from the updated base branch, apply only fixes still needed, test, and target that base branch.
    • Original PR closed without merging: report this in chat; do not reopen its changes through a fix PR.
  6. Link the original PR in the fix PR body. Explain the concrete failure, resulting behavior, and validation. Follow the repository's PR template and PR description skill. Do not rewrite the original PR description.
  7. If permissions or GitHub branch rules prevent opening the fix PR, preserve the prepared changes and report the blocker in chat. Do not post findings on the original PR or wait for its author to implement them.

Boundaries

  • Apply only verified major fixes and lean cuts.
  • Do not post issue comments, inline review comments, or request changes under the default workflow.
  • Approval does not authorize merging either PR.
  • Do not rewrite the original PR description.
  • Do not mention internal review frameworks, skills, or scoring in reviews or commit messages.
  • Do not flag production code that is already the minimal pattern (e.g. a boolean in-flight guard with try/finally).
  • Verify approval, push, and PR creation before claiming success.

よくある質問

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

GitHubのPRをレビューし、まず重大な問題を確認してから、不要な複雑さをチェックします。レビューしたPRを承認し、確認済みの問題を修正する別のPRを作成します。レビューコメントを投稿したり、作成者による修正を待ったりしないでください。簡潔なPRレビュー、/lean-pr-review、/lean-review、またはPRの過剰な設計に関するフィードバックを求められた場合に使います。

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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