本文へスキップ
Skillpedia
一般的なプログラミング91k · #1319

handle-pr-comments

できること

このスキルは、GitHubのプルリクエストにあるレビューコメントを、1つずつ処理するようAIを導きます。レビュアーのフィードバックに効率よく応じる必要がある開発者向けです。

使う場面

  • ✓レビュアーがプルリクエストに複数のコメントを残したとき。
  • ✓コードが変更される前に、各コメントへの対応を決めたいとき。
  • ✓修正が行われた後に、レビューのスレッドを解決済みにしたいとき。

スキルのリンク

https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のプルリクエストの未解決のレビューコメントを確認し、それぞれどう対応するかを私に尋ねてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIは未解決のコメントを一覧にし、各コメントの周りのコードを読んで、修正案を提示します。あなたが選んだ対応を適用し、コミットを提案して、スレッドを解決済みにします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Handle PR Comments

Evaluate review comments on the PR (from the current branch, or a PR number/URL if given). For each unresolved comment: summarize the feedback, suggest a resolution, ask the user how to resolve it, apply their choice, commit if needed, and resolve the thread.

  1. Find the PR. Use the given number/URL, else derive it from the current branch (gh pr view). Stop if no PR exists.

  2. Fetch unresolved review threads via the GraphQL reviewThreads field on the pull request — request each thread's id, isResolved, isOutdated, path, line, and comments. Filter to isResolved == false. (Use GraphQL, not REST: only it exposes thread ids and resolution state.)

  3. Loop one comment at a time. For each: (a) summarize the feedback + file/line, reading surrounding code; (b) suggest a concrete fix; (c) ask via AskQuestion with options — apply suggested fix / apply a different fix / reply only / skip; (d) apply the choice; (e) if applicable, summarize what was changed and ask whether to commit; (f) resolve the thread via the GraphQL resolveReviewThread mutation.

  4. Report an overview of what was changed, committed, replied to, skipped, and resolved. Include links.

Notes

  • Handle real-user comments before addressing AI agents' (Copilot, CodeRabbit).
  • Group duplicate comments; when the same/similar issue is mentioned multiple times, handle them all at once.
  • Make a separate commit for each change.
よくある質問

すべてのコメントを確認せず修正しますか?

いいえ。スキルは、各コメントについて、修正を適用するか、変更するか、スキップするかをあなたに選ばせます。

AIレビュアーのコメントはどう扱われますか?

スキルは、AIレビュアーのコメントより前に、人間のレビュアーの実際のコメントに対応するよう述べています。

プルリクエストは存在している必要がありますか?

はい。現在のブランチから、またはあなたが指定した番号からプルリクエストを探します。

詳細

作者による元の説明

Triage and resolve GitHub PR review comments one by one, interactively. Use when the user asks to handle, address, respond to, or resolve PR review comments, or mentions reviewer feedback on a pull request.

repo: storybookjs/storybook

人気

GitHubのスター
91k
ランキング
#1319
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル