ワンクリックで
triage-pr
// Fetch, analyze, and triage PR review comments — present report for user approval before any action
// Fetch, analyze, and triage PR review comments — present report for user approval before any action
| name | triage-pr |
| description | Fetch, analyze, and triage PR review comments — present report for user approval before any action |
| disable-model-invocation | true |
| argument-hint | [pr-number] |
Triage all review comments on PR #$ARGUMENTS in the current repository.
CRITICAL: Do NOT reply to any comments, modify any code, or take any action until the user explicitly approves. This workflow is report-first, act-later.
Use gh api to fetch:
gh api repos/{owner}/{repo}/pulls/{pr}/commentsgh api repos/{owner}/{repo}/issues/{pr}/commentsgh pr view {pr} --json reviewsExtract the owner/repo from the current git remote.
For every review comment, read the actual source code referenced by the comment before judging. Do not rely solely on the diff hunk. Classify each comment as:
if/continue is idiomaticPresent a full report to the user with these sections. Skip bot comments (Cloudflare deploy notifications, CI status, etc.).
| # | File:Line | Issue | Recommended Fix |
|---|
| # | File:Line | Issue | Recommendation |
|---|
| # | File:Line | Reviewer Says | Why It's Wrong |
|---|
After presenting the report, ask the user what they want to do. Offer these options:
For replying to false positives, use:
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies -X POST -f body="..."
Group similar false positives — reply to the first in a cluster and note it covers the others.
For code fixes:
dotnet build to verifyDo NOT merge or close the PR.