workflow-pr-review

Orchestrate GitHub pull request reviews with deduplicated inline comments and APPROVE or COMMENT decisions.

2|8|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/lugassawan/swe-workbench --skill workflow-pr-review
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: workflow-pr-review
Source: https://github.com/lugassawan/swe-workbench/tree/main/skills/workflow-pr-review
Command: npx skills add https://github.com/lugassawan/swe-workbench --skill workflow-pr-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of turning a PR review request into timely, consistent, and non-duplicative GitHub inline comments that culminate in the correct APPROVE or COMMENT decision.

Core Features & Use Cases

  • End-to-end remote PR review orchestration: fetches the PR into an ephemeral worktree, runs the reviewer agent, and submits the resulting GitHub review.
  • Deduplicated, threaded inline feedback: fuzzy-matches new findings against existing review threads (path + nearby line + token-overlap) to avoid re-posting the same critique, while adding a 👍 reaction when appropriate.
  • Decision and scope guardrails: enforces a strict review-decision footer contract (APPROVE or COMMENT) and supports a blocking-scope verdict (including out-of-diff informational deferral).
  • Ticket-aware reviewing: automatically enriches review context using the ticket key found in the PR title/body or recent commits via the ticket-context skill.

Quick Start

Use the workflow-pr-review skill to review PR #123 by invoking the command as /swe-workbench:review 123.

Frequently Asked Questions about workflow-pr-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request reviews with inline comments?▼

Automated GitHub pull request reviews fetch the PR into an isolated worktree, run a reviewer agent, and post deduplicated inline comments before submitting a final decision. This orchestration ensures consistent, non-duplicative feedback directly on the code.

How does deduplication work for GitHub PR review comments?▼

Deduplication for GitHub PR review comments matches new findings against existing review threads using fuzzy matching constraints, specifically line proximity and Jaccard token overlap. If a similar critique exists, it avoids re-posting and adds a reaction instead.

Can I enrich GitHub PR review context using ticket references?▼

Yes, you can enrich GitHub PR review context using ticket references. If the PR title, body, or recent commits contain a ticket key, Confluence URL, or #number, the review workflow automatically incorporates that external context.

How do I submit an approve or comment decision for a GitHub PR review?▼

To submit an approve or comment decision for a GitHub PR review, the workflow enforces a strict review-decision footer contract. The reviewer agent must output this footer, which dictates the final state submitted to GitHub.

What happens when a GitHub PR review agent posts comments outside the diff?▼

When a GitHub PR review agent posts comments outside the diff, it safely handles out-of-diff results through informational deferral, particularly during API 422 responses. It anchors inline comments using repo-relative paths to manage scope.

Do I need an isolated worktree to run a remote GitHub PR review?▼

Yes, an isolated worktree is required to run a remote GitHub PR review. The workflow fetches the PR into an ephemeral worktree to execute the reviewer agent safely without affecting the local repository state.