Agent skill · software engineering · google-gemini
async-pr-review
Trigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR review.
Why this skill is useful
Adds executable scripts for asynchronous PR review and background checks that enhance the AI's capabilities in code review workflows.
What it needs
Requires gemini installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 106,400 stars on the source repository.
What this skill does
Async PR Review This skill provides a set of tools to asynchronously review a Pull Request. It will create a background job to run the project's preflight checks, execute Gemini-powered test plans, and perform a comprehensive code review using custom prompts. This skill is designed to showcase an advanced "Agentic Asynchronous Pattern": 1. Native Background Shells vs Headless Inference: While Gemini CLI can natively spawn and detach background shell commands (using the runshellcommand tool with isbackground: true), a standard bash background job cannot perform LLM inference. To conduct AI-driven code reviews and test generation in the background, the shell script must invoke the gemini executable headlessly using -p. This offloads the AI tasks to independent worker agents. 2. Dynamic Git Scoping: The review scripts avoid hardcoded paths. They use git rev-parse --show-toplevel to automatically resolve the root of the user's current project. 3. Ephemeral Worktrees: Instead of checking out branches in the user's main workspace, the skill provisions temporary git worktrees in .gemini/tmp/async-reviews/pr-<number>. This prevents git lock conflicts and namespace pollution. 4. Agentic Evaluation (check-async-review.sh): The check script outputs clean JSON/text statuses for the main agent to parse. The interactive agent itself synthesizes the final assessment dynamically from the generated log files. Workflow 1. Determine Action: Establish whether the user wants to start a new async review or check the status of an existing one. If the user says "start an async review for PR #123" or similar, proceed to Start Review. If the user says "check the status of my async review for PR #123" or similar, proceed to Check Status. Start Review If the user wants to start a new async PR review: 1. Ask the user for the PR number if they haven't provided it. 2. Execute the async-review.sh script, passing the PR number as the first argument. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills google-gemini/async-pr-review