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

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がスキルを読んで指示に従います。

貼り付け用メッセージ

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

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

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

0

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

コメント

  • …

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

似ているスキル