Pr Review Analysis logo

Pr Review Analysis

CommunityPopular
breaking-brake
pr-review-analysis

Analyze PR review comments from a GitHub PR URL. Fetch review comments, verify each finding against the actual codebase, assess validity (correct/incorrect/partial), present a structured summary with recommended actions, and optionally reply to each comment on GitHub. Use when given a PR review URL or when asked to check/analyze PR feedback.

Overview

Publisherbreaking-brake
Repositorycc-wf-studio
Skill namepr-review-analysis
Stars
5.4K
Forks
568
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by breaking-brake on GitHub. Read the source before you install it.

Installation

Install the Pr Review Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/breaking-brake/cc-wf-studio/tree/main/.claude/skills/pr-review-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/breaking-brake/cc-wf-studio.git /tmp/cc-wf-studio
mkdir -p .claude/skills
cp -r /tmp/cc-wf-studio/.claude/skills/pr-review-analysis .claude/skills/pr-review-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pr Review Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pr Review Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pr Review Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PR Review Analysis

GitHub PR のレビューコメントを取得・分析し、各指摘の妥当性を検証してレポートを出力する。

Workflow

Step 1: レビューコメントの取得

  1. ユーザーから PR の URL またはリポジトリ情報と PR 番号を受け取る
  2. gh api を使ってレビューコメントを取得する:
    bash
    gh api repos/{owner}/{repo}/pulls/{number}/reviews
    gh api repos/{owner}/{repo}/pulls/{number}/comments
  3. コメントの一覧をパースし、指摘内容・対象ファイル・行番号を整理する

Step 2: 各指摘の検証

各レビューコメントについて:

  1. 該当コードの確認: 指摘が参照するファイルと行を Read ツールで読む
  2. 指摘内容の分析: レビューアの主張が技術的に正しいか検証する
  3. 妥当性の判定:
    • ✅ 正当 (Valid): 指摘が正しく、修正が必要
    • ❌ 不当 (Invalid): 指摘が誤っている、または該当しない
    • ⚠️ 部分的に正当 (Partial): 指摘の一部は正しいが、完全には当てはまらない

Step 3: 影響範囲の確認

指摘が参照するパターン(バグ、アンチパターン等)が他のファイルにも存在するか Grep ツールで確認する。 同一パターンが複数箇所にある場合、それらも報告に含める。

Step 4: レポート出力

以下の形式でまとめを出力する:

## PR Review Analysis: #{PR番号}

### Summary
- Total comments: {件数}
- Valid: {件数} | Partial: {件数} | Invalid: {件数}

### Details

| # | File | Severity | Validity | Summary | Action |
|---|------|----------|----------|---------|--------|
| 1 | path/to/file.ts:L42 | Major | ✅ Valid | 説明 | 修正必要 |
| 2 | path/to/file.ts:L100 | Minor | ⚠️ Partial | 説明 | 検討 |

### Detailed Analysis

#### Comment 1: [タイトル]
- **File**: `path/to/file.ts:L42`
- **Reviewer's point**: 指摘内容の要約
- **Verification**: 検証結果の説明
- **Verdict**: ✅ Valid
- **Recommended action**: 具体的な修正方針
- **Same pattern found in**: (該当する場合) 他のファイルパス

...

Step 5: レビューコメントへの返信

レポート出力後、修正対応が完了している場合はレビューコメントへの返信を提案する。

  1. ユーザー確認: 「コメントに返信しますか?」と確認する。ユーザーが承認した場合のみ返信を実行する
  2. 返信内容の生成: 各コメントの Verdict に応じた返信を生成する:
    • ✅ Valid: 修正コミットハッシュを含めて「Fixed in {hash}」形式で返信
    • ⚠️ Partial: 対応した部分と対応しない理由を簡潔に説明
    • ❌ Invalid: 該当しない理由を技術的に説明(例: 自動生成ファイルのため直接編集不可)
  3. 返信の実行: gh api で各コメントに返信する:
    bash
    gh api repos/{owner}/{repo}/pulls/{number}/comments \
      -f body='{返信内容}' \
      -F in_reply_to={comment_id}
  4. Outside-diff コメントの対応: インラインコメントとして返信できない指摘(outside-diff)は、関連するインラインコメントのスレッドにまとめて返信する

Notes

  • Bot によるレビュー(CodeRabbit, GitHub Actions 等)と人間のレビューの両方に対応する
  • レビューコメントに対する返信スレッドも考慮する
  • 指摘の severity(重大度)はレビューコメントのラベルまたは内容から推定する
  • 日本語で出力する(コード・パス等の技術用語は原文のまま)

Frequently asked questions

What does the Pr Review Analysis AI skill do?

Analyze PR review comments from a GitHub PR URL. Fetch review comments, verify each finding against the actual codebase, assess validity (correct/incorrect/partial), present a structured summary with recommended actions, and optionally reply to each comment on GitHub. Use when given a PR review URL or when asked to check/analyze PR feedback.

Why use Pr Review Analysis on TypingMind?

Because you install it once and use it with any model. Pr Review Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pr Review Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/breaking-brake/cc-wf-studio/tree/main/.claude/skills/pr-review-analysis. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pr Review Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pr Review Analysis?

As many as you like. As long as a model supports skills, you can use Pr Review Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pr Review Analysis AI skill free?

It is published on GitHub by breaking-brake. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇