Gemini
Chapter 2 of 24
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.
2 minutes · 449 words · 3 sections
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”:
run_shell_command tool with is_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 the gemini executable headlessly using -p. This offloads the AI tasks to independent worker agents.git rev-parse --show-toplevel to automatically resolve the root of the user’s current project..gemini/tmp/async-reviews/pr-<number>. This prevents git lock conflicts and namespace pollution.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.If the user wants to start a new async PR review:
async-review.sh script, passing the PR number as the first argument. Be sure to run it with the is_background flag set to true to ensure it immediately detaches.
.gemini/skills/async-pr-review/scripts/async-review.sh <PR_NUMBER>If the user wants to check the status or view the final assessment of a previously started async review:
check-async-review.sh script, passing the PR number as the first argument:
.gemini/skills/async-pr-review/scripts/check-async-review.sh <PR_NUMBER>STATUS: IN_PROGRESS, tell the user which tasks are still running.STATUS: COMPLETE, use your file reading tools (read_file) to retrieve the contents of final-assessment.md, review.md, pr-diff.diff, npm-test.log, and test-execution.log files from the LOG_DIR specified in the output.Install this repository
npx skills add google-gemini/gemini-cliSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
main, last pushed 10 August 2026.SKILL.md, not by matching a directory convention. 5 distinct layouts observed: .gemini/skills/*/SKILL.md, packages/core/src/skills/builtin/*/SKILL.md, packages/sdk/test-data/skills/*/SKILL.md, tools/caretaker-agent/cloudrun/triage-worker/.gemini/skills/*/SKILL.md, tools/gemini-cli-bot/.gemini/skills/*/SKILL.md.h1 and no skipped levels:/google-gemini/gemini-cli.md, and each chapter at its own .md URL.3 files · 14 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of chapter 2.
Executable code the skill can run.
Everything else published alongside the skill.