smithery.ai

Fetching PR Reviews

現在のブランチに関連するPRのレビューコメントを取得する。このスキルは、ユーザーが「PRレビュー」「レビューコメント」「PR feedback」「review comments」と言ったとき、または現在のPRに対するレビューを確認したいときに使用する。

Installation

$ npx skills add https://smithery.ai

Summary

現在のブランチに関連するPRのレビューコメントを取得する。このスキルは、ユーザーが「PRレビュー」「レビューコメント」「PR feedback」「review comments」と言ったとき、または現在のPRに対するレビューを確認したいときに使用する。

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(gh pr view:*), Bash(gh api:*)

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,868 B
  • docs SUMMARY.md 341 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

PR レビューコメント取得スキル

現在のブランチに関連するPull Requestのレビューコメントを取得して表示する。

ワークフロー

1. 現在のブランチに関連するPRを特定

gh pr view --json number,title,url

PRが見つからない場合は、ユーザーにPRがまだ作成されていないことを伝える。

2. レビューの取得

PRのレビュー(Approve/Request Changes/Comment)を取得する:

gh pr view --json reviews --jq '.reviews[] | "[\(.state)] \(.author.login): \(.body)"'

3. インラインコメント(レビューコメント)の取得

コード行に対するインラインコメントを取得する:

gh pr view --json reviewDecision,comments --jq '.comments[] | "\(.author.login) (\(.path):\(.line // "general")): \(.body)"'

より詳細な情報が必要な場合はAPIを直接使用:

gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --jq '.[] | "\(.user.login) - \(.path):\(.line)\n\(.body)\n---"'

4. 結果の整理と表示

取得したレビューコメントを以下の形式で整理して表示する:

  • レビューの状態(Approved, Changes Requested, Commented)
  • レビュアー名
  • コメント内容
  • 対象ファイルと行番号(インラインコメントの場合)

未解決のコメントがあれば、それを強調して表示する。