Skip to content
cccskills
FreePublished on GitHub

pr-review-analysis

Check GitHub pull request review comments against the actual code. Classify findings as valid, invalid, or partially valid, identify similar issues elsewhere, and produce recommended actions, with optional replies after user approval.

OriginalShow the original description

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.

Works withGitHub
See how to install

Good for

  • Checking whether review comments are technically valid
  • Evaluating feedback from both bots and people
  • Finding similar issues in other files
  • Replying to review comments after fixes

Files included (1)

  • SKILL.md4.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

PR Review Analysis

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

Workflow

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

  1. ユーザーから PR の URL またはリポジトリ情報と PR 番号を受け取る
  2. gh api を使ってレビューコメントを取得する:
    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 で各コメントに返信する:
    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(重大度)はレビューコメントのラベルまたは内容から推定する
  • 日本語で出力する(コード・パス等の技術用語は原文のまま)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Create and edit visual AI agent workflows in CC Workflow Studio through conversation. Add or remove steps and connections, update individual nodes, and organize related steps into visual groups on the canvas.

  • Creating a new AI agent workflow
  • Adding or removing steps and connections
  • Updating node names, settings, or positions
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

ccwf-cli

FreeSummary

Use ccwf to validate workflow JSON files, preview their steps in a browser, and produce Mermaid flowcharts. Export workflows as skill files for supported agents, or generate the files and launch Claude Code to proceed with execution.

  • Previewing a workflow in a browser
  • Validating hand-edited or AI-generated workflow JSON
  • Sharing workflow steps as Markdown or Mermaid diagrams
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

Turn previously retrieved Jira requirements and Confluence documents into a structured implementation plan. Tasks are grouped into frontend, backend, and infrastructure work, with architectural reasoning, blocking dependencies, and risks paired with mitigation measures.

  • Creating an implementation plan from Jira requirements
  • Dividing work across frontend, backend, and infrastructure
  • Identifying blocking dependencies between tasks
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

next-idea

FreeSummary

Develop user-visible improvements for cc-wf-studio, verify their basis in the code, and assess their value. Record qualifying proposals as locked GitHub issues, creating a queue of concrete ideas for later implementation without changing code.

  • Proposing improvements users would notice
  • Checking ideas against code and existing proposals
  • Preparing an implementation queue
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

next-qa

FreeSummary

Advance one queued QA task by adding tests or test tooling, recording the work, and opening a pull request. The skill also manages its in-flight QA requests and merges into auto-qa after CI passes.

  • Implementing a queued unit or regression test
  • Setting up test infrastructure and CI checks
  • Checking and advancing an in-flight QA pull request
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

next-qa-idea

FreeSummary

Find a valuable gap in test coverage by checking code, existing tests, and QA priorities. The skill creates at most one locked GitHub issue with concrete test cases, ready for later implementation.

  • Finding past bugs that lack regression tests
  • Reviewing recent changes for untested behavior
  • Preparing a QA backlog without implementing tests
breaking-brake/cc-wf-studio5.4KUpdated Oct 7, 2026

See all skills by breaking-brake

Report a problem with this skill