
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.
- Installs
- 349
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/google-gemini/gemini-cli --skill async-pr-review- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads async-pr-review automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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":
- Native Background Shells vs Headless Inference: While Gemini CLI can natively spawn and detach background shell commands (using the
run_shell_commandtool withis_background: 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 thegeminiexecutable headlessly using-p. This offloads the AI tasks to independent worker agents. - Dynamic Git Scoping: The review scripts avoid hardcoded paths. They use
git rev-parse --show-toplevelto automatically resolve the root of the user's current project. - 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. - 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
- 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:
- Ask the user for the PR number if they haven't provided it.
- Execute the
async-review.shscript, passing the PR number as the first argument. Be sure to run it with theis_backgroundflag set to true to ensure it immediately detaches..gemini/skills/async-pr-review/scripts/async-review.sh <PR_NUMBER> - Inform the user that the tasks have started successfully and they can check the status later.
Check Status
If the user wants to check the status or view the final assessment of a previously started async review:
- Ask the user for the PR number if they haven't provided it.
- Execute the
check-async-review.shscript, passing the PR number as the first argument:.gemini/skills/async-pr-review/scripts/check-async-review.sh <PR_NUMBER> - Evaluate Output: Read the output from the script.
- If the output contains
STATUS: IN_PROGRESS, tell the user which tasks are still running. - If the output contains
STATUS: COMPLETE, use your file reading tools (read_file) to retrieve the contents offinal-assessment.md,review.md,pr-diff.diff,npm-test.log, andtest-execution.logfiles from theLOG_DIRspecified in the output. - Final Assessment: Read those files, synthesize their results, and give the user a concise recommendation on whether the PR builds successfully, passes tests, and if you recommend they approve it based on the review.
- If the output contains
FAQ
What does the async-pr-review skill do?
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.
How do I install async-pr-review?
Run npx skills add https://github.com/google-gemini/gemini-cli --skill async-pr-review in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/async-pr-review/ (personal) or .claude/skills/async-pr-review/ (project).
Which AI agents can use async-pr-review?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is async-pr-review safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains async-pr-review?
It is published by google-gemini in google-gemini/gemini-cli, and it is an official skill from the maker of the technology it covers. It has 349 recorded installs.
More from google-gemini/gemini-cli
code-reviewer
google-gemini/gemini-cli
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
docs-writer
google-gemini/gemini-cli
Always use this skill when the task involves writing, reviewing, or editing files in the /docs directory or any .md files in the repository.
pr-creator
google-gemini/gemini-cli
Use this skill when asked to create a pull request (PR). It ensures all PRs follow the repository's established templates and standards.
docs-changelog
google-gemini/gemini-cli
Generates and formats changelog files for a new release based on provided version and raw changelog data.
pr-address-comments
google-gemini/gemini-cli
Use this skill if the user asks you to help them address GitHub PR comments for their current branch of the Gemini CLI. Requires gh CLI tool.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.