pr-review-local

Review feature branch diffs locally with three parallel subagents.

2|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/wilsonfaustino/ai-tools --skill pr-review-local
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-review-local
Source: https://github.com/wilsonfaustino/ai-tools/tree/main/skills/pr-review-local
Command: npx skills add https://github.com/wilsonfaustino/ai-tools --skill pr-review-local

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of pushing unvetted, buggy, or insecure code to remote repositories by running a full 3-subagent PR review locally before you push, catching critical issues before they reach your team's codebase and trigger messy PR review cycles.

Core Features & Use Cases

  • 3-Subagent Comprehensive Review: Runs parallel Security, Regression, and Performance subagents to scan your branch diff for vulnerabilities, broken functionality, and performance anti-patterns.
  • Local-Only Execution: All analysis runs on your local machine with no GitHub API calls, no PR creation, and no comment posting, keeping your work private until you're ready to share.
  • Smart Diff Filtering: Automatically excludes lockfiles, generated assets, and minified code from review, and aborts if the diff is too large to review reliably.
  • Use Case: You just finished implementing a new user authentication flow on a feature branch. Run this Skill to catch a missing auth guard on a new API endpoint, a deleted error-handling utility that's still referenced in tests, and an N+1 query pattern in the user service before pushing, avoiding delayed feedback and rework.

Quick Start

Ask the AI to run a local PR review of your current feature branch before you push it to remote.

Frequently Asked Questions about pr-review-local

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

FAQPage Schema
How do I run a local code review before pushing my git branch to remote?

To run a local code review before pushing, you analyze your feature branch diff against its base branch to catch security vulnerabilities, regression risks, and performance anti-patterns without making external API calls. This generates a structured markdown report with line-referenced findings and severity labels.

What is a pre-push code review and how does it prevent regression risks?

A pre-push code review prevents regression risks by analyzing changed files locally for broken functionality and vulnerabilities before they reach the remote repository. It uses specialized subagents to scan the diff, catching issues early to avoid delayed feedback and messy PR review cycles.

Can I do a security audit on my git diff without creating a remote PR?

Yes, you can perform a security audit on your git diff without creating a remote PR by running local-only analysis. This approach scans changed files for vulnerabilities and anti-patterns without GitHub API calls or comment posting, keeping your work private until you are ready to share.

Does local pre-push code review work with large diffs and lockfiles?

Local pre-push code review handles large diffs and lockfiles by automatically excluding lockfiles, generated assets, and minified code from analysis. If the diff is too large to review reliably, the process aborts to ensure accurate regression detection and gap detection for unreviewed files.

What's the best way to detect performance anti-patterns in a feature branch before pushing?

The best way to detect performance anti-patterns in a feature branch before pushing is using parallel specialized subagents that analyze your diff for N+1 query patterns and similar issues. This local execution identifies problems early, producing a structured markdown report with severity labels.

Why does my pre-push review abort when analyzing a very large feature branch diff?

A pre-push review aborts on very large feature branch diffs to prevent unreliable analysis and ensure accurate regression detection. By filtering out lockfiles and generated assets, the review focuses on meaningful code changes, providing gap detection for unreviewed files instead of failing silently.