triage-pr-reviews
3
总安装量
3
周安装量
#60044
全站排名
安装命令
npx skills add https://github.com/k1low/gh-pr-reviews --skill triage-pr-reviews
Agent 安装分布
amp
3
gemini-cli
3
github-copilot
3
codex
3
kimi-cli
3
opencode
3
Skill 文档
Triage PR Review Comments
- Run
gh pr-reviews [arg] --jsonto get unresolved review comments as JSON. If no argument is given, use the current branch’s PR. Note: this command uses Copilot for classification and may take a while depending on the number of comments â use a longer timeout. Each JSON object contains:comment_id(int): REST API comment ID â usable for replying viagh apithread_id(string, only fortype: "thread"): inline review thread IDtype:"thread"(inline review) or"comment"(PR-level)author,body,url: comment metadatacommit_id,path,line,diff_hunk(only fortype: "thread"): file location and diff contextcategory: one ofsuggestion,nitpick,issue,question,approval,informationalresolved(bool),reason(string): resolution status and rationale
- Check if PR metadata (number, title, url) is already available from conversation context. If not (e.g., when a PR number/URL is explicitly passed as argument), run
gh pr view [arg] --json number,title,urlto get it. - For
type: "thread"comments, usepath,line, anddiff_hunkfrom the JSON response to identify the exact file location. Fortype: "comment"(PR-level), there is no file location. - Check code context for each comment. Leverage any existing conversation context first. Only fetch additional context via
gh pr diffor file reads when necessary. - Evaluate each comment against the code context. Classify as Agree, Partially Agree, or Disagree with a rationale and suggested action.
- Output results in this format:
## Unresolved Review Comments Analysis
**PR**: #<number> (<title>)
**Unresolved comments**: <count>
---
### Comment 1 â [<category>] by @<author>
> <comment body>
**File**: `<path>` (line <line>)
**Assessment**: Agree | Partially Agree | Disagree
**Rationale**: <1-3 sentences>
**Suggested action**: <recommended action>
---
## Summary
- Agree: n â should be addressed
- Partially Agree: n â worth discussing
- Disagree: n â can be explained or dismissed
Do NOT write to GitHub (no commenting, resolving, or any mutations). Do NOT commit or push. If code context is unclear, search the codebase to verify before making a judgment. Prefer gh commands for GitHub data.