async-pr-review

Runs background PR reviews combining build checks, tests, and Gemini code analysis.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/rameshkumarchouhanr/gemni-cli --skill async-pr-review-rameshkumarchouhanr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: async-pr-review
Source: https://github.com/rameshkumarchouhanr/gemni-cli/tree/main/.gemini/skills/async-pr-review
Command: npx skills add https://github.com/rameshkumarchouhanr/gemni-cli --skill async-pr-review-rameshkumarchouhanr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Reviewing pull requests manually requires running builds, tests, and code analysis sequentially, blocking your terminal and attention. This Skill offloads the entire review pipeline to background jobs so you can keep working while checks run. ## Core Features & Use Cases - Background Review Pipeline: Dispatches five parallel tasks (PR diff fetch, build and lint, Gemini code review, automated tests, and manual test execution) in an isolated git worktree. - Status Checking: Reports per-task success, failure, or running states and synthesizes a final recommendation on whether to approve the PR. - Use Case: You are asked to review PR #123 but are mid-task. Start the async review, continue working, then check the status later to get a synthesized verdict covering build results, test outcomes, and code review findings. ## Quick Start Start an async review for PR number 123 and check its status when it finishes.

Frequently Asked Questions about async-pr-review

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

FAQPage Schema
How do I run a PR review in the background?

Run the async-review.sh script with the PR number as its argument, using a background shell flag so it detaches immediately. It fetches the PR into a temporary git worktree and launches build, test, and review tasks in parallel.

How do I check the status of a background PR review?

Run check-async-review.sh with the PR number. It prints STATUS: IN_PROGRESS with running tasks, or STATUS: COMPLETE with the log directory path so you can read the final assessment, review, and test logs.

Does this work with GitHub pull requests and CI checks?

Yes, it uses the GitHub CLI to fetch PR diffs and query CI check status. If CI checks pass or are pending, local npm tests are skipped; if they fail, it extracts failing test files from CI logs and reruns only those locally.

Why does the review use git worktrees instead of checkout?

Git worktrees let the review build and test the PR branch in an isolated directory under .gemini/tmp without touching your main workspace. This avoids git lock conflicts, branch switching, and uncommitted-change interference.

What happens if the build fails during an async review?

The test and test-execution tasks wait for the build-and-lint exit code and skip with a logged message if it failed. The final assessment still synthesizes available results and reports the build failure in its recommendation.