.gemini/skills/async-pr-review/SKILL.md
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.