github-pr-comments
できること
このスキルは、プルリクエストのインラインのレビューコメントを、そのコードの文脈とともに取得します。その後、要求された変更を1つずつ適用します。レビューのフィードバックにすばやく対応する必要がある開発者向けです。
使う場面
- ✓レビューする人が、プルリクエストに複数のインラインコメントを残したとき。
- ✓コメントに、正確に適用したい提案された変更が含まれているとき。
- ✓レビューのコメントを1つも見落とさないようにしたいとき。
スキルのリンク
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/github-pr-comments/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のプルリクエストのレビューコメントを確認して、そこで求められている変更を行ってもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、すべてのインラインコメントとそのコードを一覧にするスクリプトを実行します。各コメントにタスクを作り、変更を適用してから、プロジェクトのチェックを実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Resolve Code Review Comments
1. Fetch all comments
Run the bundled script to get every inline comment with its diff hunk:
bash .forge/skills/resolve-code/scripts/pr-comments.sh [PR_NUMBER]
Omit PR_NUMBER to use the current branch's PR.
Each block in the output contains:
File :— file path and line number-- code context --— the diff hunk showing surrounding lines-- comment --— the reviewer's message
2. Create a todo item per comment
Add one todo for each comment before touching any code. This ensures nothing is missed even when comments span many files.
3. Apply each comment
Work through todos one at a time. There are two comment types:
Suggestion block
Body starts with ```suggestion. Apply the suggested text verbatim as a
replacement for the highlighted lines in the diff hunk.
Free-form feedback
Read the comment in the context of the diff hunk, infer the required change, and implement it. When the intent is ambiguous, make the change that best matches the project's conventions and state the assumption clearly.
4. Verify
After all comments are addressed, run:
cargo check && cargo nextest run
Fix any errors before marking the task complete.
よくある質問
コメントが分かりにくい場合はどうしますか?
エージェントは、プロジェクトに最も合う変更を行い、その前提を明記します。
特定のツールが必要ですか?
GitHubのコマンドラインツールと、プロジェクト自身の確認コマンドを使います。
多くのファイルにまたがるコメントも扱えますか?
はい。タスク一覧は、ファイルをまたぐものも含め、すべてのコメントから作られます。
詳細
作者による元の説明
Resolve inline code review comments on a GitHub PR. Use when asked to "resolve review comments", "address PR feedback", "fix PR comments", or "work through review comments". Fetches every inline comment with its surrounding code context, then applies each change systematically.
repo: tailcallhq/forgecode
人気
- GitHubのスター
- 7.6k
- ランキング
- #13112
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
create-agent
7.6kForgeのコーディングアプリ向けのカスタムエージェントを、先頭に設定があるMarkdownファイルとして作成または変更する方法をエージェントに教えます。
create-command
7.6kForgeのコーディングアプリ向けに、順番に実行される手順としてMarkdownで書く、再利用可能なコマンドを作る方法をエージェントに教えます。
create-github-issue
7.6kリポジトリ独自のIssueテンプレートに従い、適切な項目とラベルを付けたGitHubのIssueを作成するようエージェントを支援します。
create-plan
7.6kコードを変更する前に、手順、リスク、代替案を含む、複雑な作業の詳しい実装計画を書くようエージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。