一键导入
pr-response
Use when the operator says "pr-response" or "/pr-response", asks to address PR review feedback, or asks to reply to review comments on an open PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the operator says "pr-response" or "/pr-response", asks to address PR review feedback, or asks to reply to review comments on an open PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the operator says "skill-author", asks to write a new agent skill, create a skill, author a skill, update an existing skill's SKILL.md, or requests help with skill structure and conventions.
Use when the operator requests a PR description, pull request summary, or commit message for a squash merge, says "pr-description" or "/pr-description", or when opening a pull request as part of task execution.
Use when user says "project plan", "plan the spec", "implementation plan", or wants to turn a spec into phased build steps.
Use when the operator provides an outcome-focused prompt, asks for a spec or specification, or says "project-spec" or "/project-spec".
Use when the operator says "code-review" or "/code-review", asks to review code, requests a code review, or asks for feedback on changes.
Use when user says "execute the plan", "implement the plan", "run the plan", "implement phase", "start implementation", "build phase", or wants to begin implementation from a plan file.
| name | pr-response |
| description | Use when the operator says "pr-response" or "/pr-response", asks to address PR review feedback, or asks to reply to review comments on an open PR. |
| metadata | {"author":"Tyler Benfield","version":"2026.5.30"} |
| compatibility | Requires the GitHub CLI (gh) installed and authenticated. |
Process unresolved review comments on an open PR. You are the PR author — you hold the domain context and decide what feedback is valid and in scope. You have authority to push back on feedback that doesn't serve the PR.
gh must be installed and authenticated. Verify with gh auth status. If unavailable, instruct the operator to install and authenticate before proceeding.If the operator provides a PR number or URL, use it directly. If the PR was created earlier in the current conversation, use that. Otherwise, detect from the current branch:
gh pr view --json number,url
scripts/fetch-threads.sh <owner> <repo> <number>
Output is a JSON array of unresolved threads. Each thread has:
id — GraphQL node ID (for resolution, step 6)path, line — file and line contextcomments.nodes — ordered comments, each with id, databaseId, author.login, body, createdAtUse databaseId for replying (step 5) and id for resolving (step 6).
Evaluate each unresolved thread:
You are the PR author and the subject matter expert for this change. You decide what is valid and in scope. Push back on feedback that doesn't serve the PR — don't adopt changes just because a reviewer suggested them. If a comment raises a concern you cannot assess (e.g., organizational policy, cross-team impact), flag it and ask the operator before proceeding.
For each in-scope comment, make the change and commit individually. Do not push until all in-scope changes are committed — batch into a single push to avoid wasteful CI runs.
fix: address review feedback on error handling).Write the reply body to a file, then call the script with the file path:
.agents/tmp/reply-<databaseId>.md.scripts/reply-comment.sh <owner> <repo> <number> <databaseId> .agents/tmp/reply-<databaseId>.md
On success the script deletes the body file. On failure the file remains for retry.
Do not use gh pr comment — it posts top-level comments, not in-thread replies.
Reply formats:
After replying, resolve the thread if:
Resolve using:
scripts/resolve-thread.sh <thread_id>
The thread_id is the GraphQL node ID from step 2.
Do not resolve a thread where the reviewer's last message indicates disagreement or a follow-up question you haven't answered.
If any valid-but-out-of-scope items were identified, present them to the operator:
## Out-of-scope items for follow-up
- **F1**: [Summary] — suggested by @reviewer in [comment link]
- **F2**: [Summary] — suggested by @reviewer in [comment link]
Suggest the operator capture these as tickets. The F-labels are ephemeral session labels for this reply — do not persist them into code.