원클릭으로
resolve-pr-comments
Fetch GitHub PR review comments, propose fixes with a plan, and resolve threads after approval
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fetch GitHub PR review comments, propose fixes with a plan, and resolve threads after approval
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Canonical push-to-dev and branch-policy enforcement for agents. Provides the push-to-dev workflow, branch naming, conflict handling, and release process guidance. Trigger with: /skill:ship push-to-dev
Automated batch planning for intake_complete work items. Discovers all items in intake_complete status and invokes /plan for each sequentially, producing a summary report.
Provide concise project / work item status and run Worklog helpers to augment results. Trigger on user queries such as: 'What is the current status?', 'Status of the project?', 'What is the status of <work-item-id>?', 'status', 'status <work-item-id>', 'audit', 'audit <work-item-id>'
Run an iterative implement→audit loop for a target work item. Ralph is a launcher/orchestrator, not the normal Worklog implementation workflow.
Write tests, docs and code for a Worklog work item by following a deterministic workflow. Ensure implementation meets defined acceptance criteria. Trigger on user queries such as: 'Implement <work-item-id>', 'Complete <work-item-id>', 'Work on <work-item-id>'.
Triage workflows and helpers for test-failure detection and critical issue creation. Provides a skill to search for or create critical `test-failure` work items and related resources.
| name | resolve-pr-comments |
| description | Fetch GitHub PR review comments, propose fixes with a plan, and resolve threads after approval |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"github"} |
Use this skill when:
Provide one of:
https://github.com/owner/repo/pull/123PR #123 in owner/repogh pr view <PR_NUMBER> --repo <OWNER/REPO> --json headRefName,baseRefName,title,url
gh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/comments
This returns an array of review comments with:
id: Comment ID for repliesbody: The review comment textpath: File pathline / original_line: Line number(s)diff_hunk: Code contextuser.login: Reviewer usernamegh api repos/<OWNER>/<REPO>/issues/<PR_NUMBER>/comments
git fetch origin <branch_name>
git checkout <branch_name>
For each code review comment, read the file and surrounding context:
# Use Read tool to examine the file at the specified line
For each code review comment, categorize as one of:
For each general PR comment (non-code):
Output a structured plan in this format:
## PR Review Resolution Plan
**PR:** #<number> - <title>
**Branch:** <branch_name>
**Comments found:** <X> code review comments, <Y> general comments
---
### Code Review Comments
#### Comment 1: [<file>:<line>] by @<reviewer>
> <quoted comment body>
**Category:** Actionable fix
**Proposed action:** <description of the fix>
**Files to modify:** <list of files>
---
#### Comment 2: [<file>:<line>] by @<reviewer>
> <quoted comment body>
**Category:** Disagreement
**Reasoning:** <explanation of why the suggested change is incorrect>
**Proposed response:** <reply to post explaining the disagreement>
---
### General PR Comments (No automatic action)
#### Comment A: by @<reviewer>
> <quoted comment body>
**Proposed response:** <suggested reply for user to review>
---
## Summary
- **Fixes to implement:** <N>
- **Disagreements to explain:** <N>
- **Questions to answer:** <N>
- **General comments needing response:** <N>
**Ready to proceed?** Reply "yes" to implement fixes and post responses, or provide feedback on specific items.
Only proceed after user confirms the plan.
For each approved actionable fix:
Before committing, follow the mandatory build → test → commit order: build the project and verify no errors, then run all tests and verify they pass, and only then commit changes. Never commit before verifying that the build and tests pass.
# Build the project first
npm run build # or the project's build command
# Then run all tests
npm --silent test # or the project's quiet test command
# Only commit after build and tests pass
git add <modified_files>
git commit -m "Address PR review feedback
- <summary of fix 1>
- <summary of fix 2>
..."
git push origin <branch_name>
Capture the commit hash for reference in replies.
For each comment addressed (fix or disagreement):
gh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/comments \
-X POST \
-f body="<description of action taken or disagreement explanation>" \
-F in_reply_to=<COMMENT_ID>
Reply templates:
For fixes:
Fixed in <commit_hash>. <brief description of what was changed>
For disagreements:
After review, I believe the current implementation is correct because <reasoning>.
<optional: suggest alternative or offer to discuss further>
First, get thread IDs:
gh api graphql -f query='
query {
repository(owner: "<OWNER>", name: "<REPO>") {
pullRequest(number: <PR_NUMBER>) {
reviewThreads(first: 100) {
nodes {
id
isResolved
comments(first: 1) {
nodes {
databaseId
}
}
}
}
}
}
}'
Map comment IDs to thread IDs, then resolve each addressed thread:
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "<THREAD_ID>"}) {
thread {
isResolved
}
}
}'
Output a summary:
## PR Review Resolution Complete
**Commit:** <hash>
**Fixes applied:** <N>
**Disagreements explained:** <N>
**Threads resolved:** <N>
### Actions taken:
1. [<file>:<line>] - <action taken>
2. [<file>:<line>] - <action taken>
...
### Threads resolved:
- Comment by @<reviewer>: <brief description>
...
### Pending (requires manual action):
- General comment by @<reviewer>: <proposed response provided above>
gh + local edit/build/test steps as documented above.To fetch a work item that may be referenced in a PR description or branch name:
wl show SA-0MPYMFZXO0004ZU4 --json
End.