pr-feedback

GitHub

获取并分类PR审查反馈与内联评论,按优先级展示待修复项,经用户确认后执行修改。

.agents/skills/pr-feedback/SKILL.md strands-agents/harness-sdk

Trigger Scenarios

用户请求查看或读取Pull Request的审查意见 用户请求根据审查反馈修复代码问题

Install

npx skills add strands-agents/harness-sdk --skill pr-feedback -g -y
More Options

Non-standard path

npx skills add https://github.com/strands-agents/harness-sdk/tree/main/.agents/skills/pr-feedback -g -y

Use without installing

npx skills use strands-agents/harness-sdk@pr-feedback

指定 Agent (Claude Code)

npx skills add strands-agents/harness-sdk --skill pr-feedback -a claude-code -g -y

安装 repo 全部 skill

npx skills add strands-agents/harness-sdk --all -g -y

预览 repo 内 skill

npx skills add strands-agents/harness-sdk --list

SKILL.md

Frontmatter
{
    "name": "pr-feedback",
    "description": "Fetches PR review feedback and inline comments, categorizes them, and presents options to the user. Use when the user asks to get, read, address, or fix review comments on a pull request."
}

PR Review Feedback

Fetch PR review feedback and inline comments, categorize them, and present options to fix.

Process

1. Determine the PR Number

Auto-detect from the current branch:

gh pr view --json number -q .number

If that fails (detached HEAD, no tracking branch), ask the user for the PR number or URL.

2. Fetch All Feedback

Use the bundled script to fetch reviews, inline comments, and issue-level comments in one shot:

bash .agents/skills/pr-feedback/fetch-pr-feedback.sh <number> [--repo owner/repo]
  • Omit <number> to auto-detect from the current branch.
  • Use --repo when the PR is in a different repo than the current directory.

The script returns JSON with three arrays:

  • reviews — top-level review summaries (non-empty bodies only)
  • inline_comments — unresolved thread comments with upvotes/downvotes arrays (usernames who reacted), outdated flag, and diffHunk on the first comment in each thread
  • comments — issue-level comments

3. Summarize and Present to the User

Read all the feedback, use your judgment to group related items, and present a numbered list of things to address. Keep each item to one line. Put the most impactful items first.

Use upvotes, downvotes, and the PR author's own replies to determine priority:

  • Upvoted by the PR author: This signals agreement — recommend fixing it.
  • Author replied agreeing (e.g. "good point", "I'll fix", "makes sense"): Same as an upvote — recommend fixing it.
  • Upvoted by other reviewers (not the author): Signals community agreement the issue matters — lean toward recommending.
  • No signal from the author: Present as a suggestion but don't assume it should be fixed.
  • Author replied disagreeing or explaining: Present for context but mark as "discussed — likely skip".
  • Outdated comments: Group separately at the end — these may have been addressed by subsequent pushes.

When presenting the list, annotate items you recommend fixing (based on the signals above) so the user can quickly confirm "all recommended" or cherry-pick.

4. Fix What the User Selects

Address only the confirmed items. After fixing, briefly note what changed — one line per item.

Rules

  • Always auto-detect the PR number before asking the user.
  • Never fix anything before presenting the list and getting user confirmation.
  • If the output is too large to parse in one shot, focus on non-outdated comments first.

Version History

  • 2b6af5a Current 2026-08-20 16:58

Same Skill Collection

.agents/skills/docs-audit/SKILL.md
.agents/skills/docs-diagrams/SKILL.md
.agents/skills/docs-planner/SKILL.md
.agents/skills/docs-reviewer/SKILL.md
.agents/skills/docs-writer/SKILL.md
.agents/skills/pr-create/SKILL.md
.agents/skills/pr-writer/SKILL.md
.agents/skills/pre-push/SKILL.md
.agents/skills/strands/SKILL.md
.agents/skills/strands/skills/add-mcp-server/SKILL.md
.agents/skills/strands/skills/add-tool/SKILL.md
.agents/skills/strands/skills/build-with-strands/SKILL.md
.agents/skills/strands/skills/port-from-langgraph/SKILL.md
.agents/skills/strands/skills/scaffold-agent/SKILL.md
.agents/skills/strands-review/SKILL.md

Metadata

Files
0
Version
1adcaf9
Hash
ca1bef61
Indexed
2026-08-20 16:58

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 01:37
浙ICP备14020137号-1