pr-feedback
PR Feedback Triage
Retrieve review feedback and status checks for a pull request, classify each item by priority, and propose an ordered action plan. Do not edit files, do not post replies, do not re-run CI.
1. Resolve the PR
- If the argument is a PR number or URL, use it.
- Otherwise, detect from the current branch:
gh pr view --json number,url,headRefName,baseRefName,state. - State the resolved PR (
#<n> — <url>) so the user can confirm.
2. Fetch feedback and checks
Run these in parallel (single message, multiple tool calls). Cap any log output aggressively.
- Inline review comments (threaded):
gh pr view <n> --json reviewThreads— keepisResolved,isOutdated, path, line, comments[].author/body. - Review summaries:
gh pr view <n> --json reviews— state (APPROVED / CHANGES_REQUESTED / COMMENTED), author, body. - Conversation comments:
gh api repos/{owner}/{repo}/issues/<n>/comments(owner/repo from step 1). - Status checks:
gh pr checks <n>. For each FAIL, fetch a short log tail:gh run view --log-failed --job <job-id> | tail -n 50.
Skip threads where isResolved or isOutdated is true, unless a later comment flags a regression.
3. Classify each item as P1 / P2 / Nit
- P1 — blocking: failing required checks; correctness / security bugs; reviewer submitted CHANGES_REQUESTED on this item; missing tests for new behavior.
- P2 — important, non-blocking: design concerns, maintainability, perf tradeoffs, ambiguous behavior, reviewer questions that need an answer before merge.
- Nit: naming, formatting, phrasing, optional refactors, style preferences. Clues: comment starts with
nit:,optional:,consider,suggestion:, or is purely taste.
When in doubt, prefer the higher priority and note the uncertainty.
4. Emit the report
Group by priority (P1 → P2 → Nit). One entry per item:
- Priority — P1 / P2 / Nit
- Source — review-comment | review-summary | conversation | check
- Where —
path/to/file.ts:42or check name - Author — reviewer / bot
- Quote — ≤2 lines from the comment or check failure
- Why — one sentence on the classification
- Proposed action — fix | reply | defer | dismiss
5. Action plan
After the report, emit an ordered plan:
- P1 items first, grouped by file when multiple items touch the same file (so edits batch cleanly).
- Then P2, then Nits.
- Close with 1–3 sentences summarizing overall health (e.g. "2 P1 CI failures + 1 P1 review comment, 3 P2s, 5 nits").
End with: "Tell me which items to apply, or say 'all P1' / 'all' to proceed."
More from benjaming/ai-skills
confluence-cli
Use confluence-cli (NPM package) to manage Confluence content, pages, and spaces from the command line. Ideal for documentation workflows, bulk content operations, page migration, and when users request CLI-based Confluence interactions. Trigger on requests like "use Confluence CLI", "create Confluence pages via CLI", "migrate Confluence content", "automate documentation workflows", or when users want to script Confluence operations.
43atlassian-cli-jira
Use Atlassian CLI (acli) to manage Jira work items, projects, and workflows from the command line. Ideal for bulk operations, automation, scripting, and when users request CLI-based Jira interactions. Trigger on requests like "use Jira CLI", "create Jira issues via CLI", "bulk update Jira tickets", "automate Jira workflows", or when users want to script Jira operations.
29ralph-loop
Create autonomous iterative loops (Ralph Wiggum pattern) for multi-step tasks. Use when setting up automated workflows that iterate over a backlog of tasks with clear acceptance criteria. Triggers on requests like "create a ralph loop", "set up an iterative agent", "automate this migration", or "create an autonomous loop".
21interview
Interview user to clarify any topic - exploring codebase, investigating issues, planning features, understanding requirements, or drilling into plans. Socratic questioning to uncover details.
20codex-cli
Use OpenAI Codex CLI in non-interactive mode for automated code analysis, review, and programmatic task execution. Trigger on requests like "use Codex to analyze", "run codex exec", "codex code review", or when users want AI-powered code analysis without interactive prompts. Ideal for automation workflows, code quality checks, and generating structured analysis reports.
19daily-standup
Daily standup assistant for Benjamin that compiles work priorities from Jira and Slack into a single prioritized task list. This skill should be used when Benjamin asks for morning standup, daily priorities, what to work on today, or needs to compile work items.
18