pr-patrol

Reviews remote pull requests and posts approved review comments via host tooling.

10|Updated May 12, 2026
One-click install
npx skills add https://github.com/sandsower/beislid --skill pr-patrol-sandsower
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pr-patrol
Source: https://github.com/sandsower/beislid/tree/main/skills/pr-patrol
Command: npx skills add https://github.com/sandsower/beislid --skill pr-patrol-sandsower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing someone else's pull request requires fetching the diff, running a structured review, and turning findings into posted comments without accidentally publishing unapproved feedback. This Skill manages that entire inbound review workflow with explicit approval gates. ## Core Features & Use Cases - PR Fetching and Preflight: Resolves the PR from a URL or the current branch using host tooling like gh or glab, and reports available capabilities before touching external systems. - Structured Review Execution: Runs the side-effect-free review contract against the diff with requirements context, supporting scoped passes for large PRs and multi-reviewer mode for security-sensitive changes. - Approval-Gated Comment Posting: Drafts concise inline or general review comments, presents them for explicit user approval, and posts only after confirmation using safe temp-file body handling. - Use Case: A teammate shares a GitHub PR URL and asks you to review it. The Skill fetches the diff, produces severity-grouped findings, drafts comments for the critical issues, and posts them only after you approve the drafts. ## Quick Start Review the pull request at this URL and draft review comments for my approval before posting anything.

Frequently Asked Questions about pr-patrol

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

FAQPage Schema
How do I review someone else's pull request with an AI agent?▼

Provide the PR URL or let the tool detect the PR for the current branch using gh pr view. It fetches the diff, runs a structured review contract, groups findings by severity, and drafts comments for your approval before posting anything.

How to post inline PR review comments on GitHub from the command line?▼

The workflow uses gh or host review APIs to map findings to file and line positions, writing comment bodies to temp files to avoid shell quoting bugs. If inline positions cannot be resolved safely, it falls back to a general PR review comment.

Does this work with GitLab or only GitHub?▼

It is host-agnostic and supports GitLab through glab, MCP tools, API clients, or paste-only mode. GitHub gh commands are given as examples, but the preflight step detects whichever tooling is available in the session.

Can PR comments be posted automatically without my approval?▼

No. Every comment requires explicit user approval before posting. The workflow presents all drafts, asks a single yes/no/edit question, and on 'no' it prints drafts for manual use without posting anything.

When should I not use this for pull request review?▼

Do not use it for reviewing your own local diff before handoff, responding to feedback on your own PR, or interactive walkthroughs of your own changes. Those cases belong to the review, review-response, or walk-the-diff workflows instead.