/ai-pipeline:review-triagefrom ai-pipeline
Walks through PR review comments one at a time, showing code and assessment, then applies accepted fixes, verifies, commits, pushes, and replies on threads. Use when triaging or addressing PR review findings.
Ships in ai-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Not every review finding deserves a fix, and some are wrong. The user decides each one; this skill makes each decision informed and makes sure none is missed.
Read .claude/pipeline.md before you start. A name in double braces below, such as {{base}},
stands for that name's value in its table.
If a value this skill uses is missing there, stop and tell the user which; do not
guess it.
gh pr view --json numberglab mr view {branch} -F json --jq .iidThe host's way ({{hosting}}).
On GitHub:
gh api repos/{owner}/{repo}/pulls/{n}/comments --paginate \
--jq '.[] | {id, user: .user.login, path, line, created_at, in_reply_to_id, body}'
gh api repos/{owner}/{repo}/issues/{n}/comments --jq '.[] | {user: .user.login, body}'
Top-level comments (in_reply_to_id == null) are findings; replies are discussion.
On GitLab, comments live in discussions. glab api has no --jq, so pipe it to jq:
glab api projects/:id/merge_requests/{n}/discussions --paginate --output ndjson \
| jq -c 'select(.notes[0].system | not) | {discussion: .id, resolved: .notes[0].resolved,
path: .notes[0].position.new_path, line: .notes[0].position.new_line,
notes: [.notes[] | {id, user: .author.username, created_at, body}]}'
A discussion whose first note has a position is a finding on the diff; its later notes are the
replies. A discussion with no position is a general comment, like a review summary.
Tell the user how many findings there are and their severities.
Order them so a finding another depends on comes first (e.g. a state change before the preview that uses it); otherwise most severe first. For each:
path:line, and the relevant codeWait for the decision. Apply an accepted change before presenting the next finding; for a new test, confirm it fails when the behaviour it guards is broken.
After the last finding, run the CI mirror ({{pre-flight}}, read as .claude/pipeline.md says), then:
git add {files changed for the accepted findings}
git commit -m "{type}({feature-name}): address review feedback on PR #{n}"
git push
Only with the user's go-ahead: reply on each thread with what changed and the commit hash. For a rejected finding, reply with the reason. Leave resolving threads to the user.
gh api -X POST repos/{owner}/{repo}/pulls/{n}/comments/{id}/replies -f body=…glab api -X POST projects/:id/merge_requests/{n}/discussions/{discussion}/notes -f body=…A second review round can land after the fix commit, and it is easy to merge past. Before the user merges:
On GitHub:
gh api repos/{owner}/{repo}/pulls/{n}/comments \
--jq '.[] | select(.created_at > "{last commit time}") | {path, line, body}'
On GitLab:
glab api projects/:id/merge_requests/{n}/discussions --paginate --output ndjson \
| jq -c '.notes[] | select((.system | not) and .created_at > "{last commit time}")
| {path: .position.new_path, line: .position.new_line, body}'
Anything returned is unaddressed by definition — triage it the same way.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-review, code-review, pull-request-triage, review-comments
6 skills in this plugin
/architectDesigns a feature together with the user and turns the approved SPEC.md into a phased PLAN.md that another agent can execute without further context: briefs the user on the code the feature touches with a current-state diagram, has the user propose their own design first, reviews it honestly against best practice and the codebase, then writes buildable, dependency-ordered phases with files, signatures, tests and a verification command each. Use when the user wants an implementation plan, a technical design, a PLAN.md, or a feature broken into phases.
/developerImplements a PLAN.md one phase at a time on the feature branch, running each phase's verification, committing it, and stopping for the user's approval before the next; then offers the pre-PR gate, and pushes and opens the pull request. Use when the user wants to implement, build or execute a plan, start or resume a phase, or create the PR.
/pre-pr-checklistnpx claudepluginhub pantstamp/ai-dev-pipeline --plugin ai-pipelineOther plugins' skills for the same job