Agent Skillstailcallhq/forgecode › github-pr-comments

github-pr-comments

GitHub

用于自动化处理 GitHub PR 中的内联代码审查意见。通过脚本获取评论及上下文,逐个创建待办事项并应用修改,最后运行检查确保无误。

.forge/skills/github-pr-comments/SKILL.md tailcallhq/forgecode

Trigger Scenarios

resolve review comments address PR feedback fix PR comments work through review comments

Install

npx skills add tailcallhq/forgecode --skill github-pr-comments -g -y
More Options

Non-standard path

npx skills add https://github.com/tailcallhq/forgecode/tree/main/.forge/skills/github-pr-comments -g -y

Use without installing

npx skills use tailcallhq/forgecode@github-pr-comments

指定 Agent (Claude Code)

npx skills add tailcallhq/forgecode --skill github-pr-comments -a claude-code -g -y

安装 repo 全部 skill

npx skills add tailcallhq/forgecode --all -g -y

预览 repo 内 skill

npx skills add tailcallhq/forgecode --list

SKILL.md

Frontmatter
{
    "name": "github-pr-comments",
    "description": "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."
}

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.

Version History

  • 538f729 Current 2026-07-25 10:13

Same Skill Collection

.forge/skills/create-agent/SKILL.md
.forge/skills/create-command/SKILL.md
.forge/skills/create-github-issue/SKILL.md
.forge/skills/debug-cli/SKILL.md
.forge/skills/post-forge-feature/SKILL.md
.forge/skills/resolve-conflicts/SKILL.md
.forge/skills/resolve-fixme/SKILL.md
.forge/skills/test-reasoning/SKILL.md
.forge/skills/write-release-notes/SKILL.md
crates/forge_repo/src/skills/create-skill/SKILL.md
crates/forge_repo/src/skills/execute-plan/SKILL.md
crates/forge_repo/src/skills/github-pr-description/SKILL.md
.forge/skills/create-plan/SKILL.md

Metadata

Files
0
Version
6ed5d37
Hash
65f51a4f
Indexed
2026-07-25 10:13

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:05
浙ICP备14020137号-1 $Гость$