用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SorraTheOrc/SorraAgents --skill resolve-pr-comments命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
EXECUTE immediately when invoked via /skill:audit. Do NOT ask permission or offer alternatives. 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>'
Canonical dev-to-main release workflow. Provides the release process (dev → main merge) with automated gating for unmerged branches, audit readiness, critical items, worklog refs, and producer review. Trigger with: /skill:ship release
Discover related work for a Worklog work item and generate a concise, auditable "Related work" report that can be appended to the work item description.
正在显示 SKILL.md
| name | resolve-pr-comments |
| description | Fetch GitHub PR review comments, propose fixes with a plan, and resolve threads after approval |
| license | MIT |
| compatibility | pi |
| 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,urlgh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/comments — returns comments with id, body, path, line, diff_hunk, user.login.gh api repos/<OWNER>/<REPO>/issues/<PR_NUMBER>/commentsgit fetch origin <branch_name> && git checkout <branch_name>Categorize each code review comment as: (1) Actionable fix, (2) Suggestion to evaluate, (3) Question, or (4) Disagreement. General PR comments are not actioned automatically — propose a response in chat.
Present a structured plan:
## PR Review Resolution Plan
**PR:** #<number> - <title> | **Branch:** <branch_name> | **Comments:** <X> code, <Y> general
### Code Review Comments
#### [<file>:<line>] by @<reviewer>
> <quoted comment>
**Category:** Actionable fix | **Action:** <description> | **Files:** <list>
#### [<file>:<line>] by @<reviewer>
> <quoted comment>
**Category:** Disagreement | **Reasoning:** <explanation> | **Response:** <reply>
### General PR Comments
#### by @<reviewer>
> <quoted comment> | **Proposed response:** <suggested reply>
**Summary:** <N> fixes, <N> disagreements, <N> questions, <N> general responses
**Ready to proceed?** Reply "yes" to implement, or provide feedback.
Only proceed after user confirms the plan.
Implement fixes: Edit files for each approved actionable fix; track addressed comment IDs.
Build, test, commit: Follow build → test → commit order. Never commit without passing tests. Run the full suite via the test skill (/skill:test — run → triage → evaluate → loop until green) so PR-comment fixes are verified against the whole project, not just a single command:
npm run build && npm --silent test && git add <files> \
&& git commit -m "Address PR review feedback\n\n- <summary of fix 1>\n- <summary of fix 2>" \
&& git push origin <branch_name>
Capture the commit hash for replies.
Reply to threads:
gh api repos/<OWNER>/<REPO>/pulls/<PR_NUMBER>/comments \
-X POST -f body="<action or explanation>" -F in_reply_to=<COMMENT_ID>
Fixed in <hash>. <description>Current implementation is correct because <reasoning>.Resolve threads: Fetch thread IDs via GraphQL, then resolve each:
# Get thread IDs
gh api graphql -f query='query { repository(owner:"<OWNER>", name:"<REPO>") { pullRequest(number: <N>) { reviewThreads(first:100) { nodes { id isResolved comments(first:1) { nodes { databaseId } } } } } } }'
# Resolve each addressed thread
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<THREAD_ID>"}) { thread { isResolved } } }'
Report completion: Output a summary with commit hash, fixes applied, disagreements explained, threads resolved, and pending items.
This skill does not ship an orchestrator script. Use gh + local edit/build/test steps as documented above.
End.