AGENT SKILL

pr-comments

Reply in thread to every unresolved PR review comment, once the fixes are pushed.

License 许可
Apache-2.0
最近更新
2026-11-13
Stars
★ 0
Forks
1

01 前言 Front Matter

name
pr-comments
description
Reply in thread to every unresolved PR review comment, once the fixes are pushed.
allowed-tools
Bash(gh api *), Bash(gh pr *), Bash(git *), Bash(<shared-scripts-dir>/pr-threads.sh*), Read

02 资源文件 2

03 SKILL.md 正文

PR Comments

Answer every unresolved review comment on a PR, in its own thread. This is the reply pass: the fixes are already made and pushed. To fix and reply in one go, use /review-pr instead.

Reply only after the push has landed, since each reply tells the reviewer the fix is live. Reply only through pr-threads.sh … reply: it checks the comment belongs to this PR and uses the right endpoint. gh pr comment posts outside the thread and loses its context, and the gh api .../pulls/comments/{id}/replies endpoint does not exist (404).

1. Fetch the unresolved comments

<shared-scripts-dir>/pr-threads.sh <PR#> context

The script returns comments with their resolved status. Done when you have the unresolved ones listed.

2. Triage each comment

Give each one an answer:

  • Fixed: "Fixed — [what changed]"
  • Already fixed in an earlier commit: "Addressed in [commit] — [brief explanation]"
  • Acknowledged but deferred: "Noted — [reasoning]. Tracked in #NNN", with the issue link

Several small, related comments from one reviewer can share one numbered reply; several comments in one thread get one reply. Agree conflicting feedback before replying. reply-patterns.md has worked examples, batching rules, and how to handle disagreement, multiple reviewers, and declined suggestions.

Done when every unresolved comment has a drafted answer.

3. Reply in thread

<shared-scripts-dir>/pr-threads.sh <PR#> reply <comment_id> 'Fixed — [explanation]'

Reply to every comment in the same push cycle. Done when every unresolved comment from step 1 has a reply.

4. Summary

Report the counts fixed, already fixed, and acknowledged, plus anything left unaddressed. Done when the report is printed.

Related

04 同仓库更多 Skills