Skip to content
Skillpedia
General coding7.6k · #13112

github-pr-comments

What it does

This skill fetches the inline review comments on a pull request, with their code context. It then applies each requested change, one at a time. It is for developers who need to address review feedback quickly.

When to use it

  • ✓When a reviewer has left several inline comments on your pull request.
  • ✓When a comment includes a suggested change you want to apply exactly.
  • ✓When you want to make sure no review comment is missed.

Skill link

https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/github-pr-comments/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/github-pr-comments/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you go through the review comments on my pull request and make the changes they ask for?”

5 new skills a week. 1 minute to read.

How it works

The agent runs a script that lists every inline comment with its code. It creates a task for each one, applies the change, and then runs the project's checks.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

What if a comment is unclear?

The agent makes the change that best fits the project and states its assumption.

Does it need a specific tool?

It uses the GitHub command line tool and the project's own check commands.

Can it handle comments in many files?

Yes. The task list is built from every comment, even when they span many files.

Details

Original description by the author

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

Popularity

GitHub stars
7.6k
Ranking position
#13112
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills