本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)33k · #8759

gh-address-comments

できること

このスキルにより、AIはGitHubのプルリクエストへのフィードバックを扱えます。レビュアーのコメントを素早く正確に処理したい開発者向けです。

使う場面

  • ✓未完了のプルリクエストのレビューコメントを確認したいとき。
  • ✓レビュアーが複数のコメントを残し、どれを直すかの判断を手伝ってほしいとき。
  • ✓選んだコメントに対する修正を、エージェントに適用させたいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/gh-address-comments/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“未完了のプルリクエストのレビューコメントを見せて、直すものを私が選べるようにしてください。”

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

仕組み

エージェントはGitHub CLIを使って、現在のブランチのプルリクエストを見つけ、コメントとレビューのスレッドを番号つきで一覧にします。そのうえで、あなたが選んだコメントに対してのみ修正を適用します。

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

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

PR Comment Handler

Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.

Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.

1) Inspect comments needing attention

  • Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR

2) Ask the user for clarification

  • Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
  • Ask the user which numbered comments should be addressed

3) If user chooses comments

  • Apply fixes for the selected comments

Notes:

  • If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with gh auth login, then retry.
よくある質問

まず何が必要ですか?

GitHub CLIをインストールし、gh auth loginを使ってサインインしておく必要があります。

すべてのコメントを自動で直しますか?

いいえ。エージェントは、何かを変更する前に、番号つきのどのコメントに対応するかを尋ねます。

実行中にログインが切れたらどうなりますか?

エージェントは、gh auth loginでもう一度サインインするよう求めてから、再試行します。

詳細

作者による元の説明

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

repo: davila7/claude-code-templates

人気

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

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

0

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

コメント

  • …

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

似ているスキル