derailed-dash/dazbo-agent-skills/install-gemini-code-review-action
Claude Code and agent skill by derailed-dash/dazbo-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Installs, configures, or upgrades Dazbo's PR code review & issue triage GitHub Action (gemini-review-action) in a target repository. Use when the user wants to set up, configure, or update automated AI code reviews, issue triaging, or Gemini model workflows for their GitHub repository.
Install
npx vskill@latest install derailed-dash/dazbo-agent-skills/install-gemini-code-review-actionSKILL.md
The same SKILL.md was published earlier as derailed-dash/dazbo-agent-skills/install-gemini-code-review-action.
Installing & Upgrading Gemini PR Review & Issue Triage Action
This skill provides a structured workflow for installing, configuring, and upgrading derailed-dash/gemini-review-action in a target GitHub repository.
Table of Contents
- Triggers
- Installation & Upgrade Workflow
- Reviewer Personas
- Action Input Reference
- Workflow Templates
- Dynamic Template Fetching
Triggers
This skill MUST trigger whenever:
- The user requests to install, configure, or upgrade
gemini-review-actionor a Gemini-based PR code review workflow. - The user asks for automated code reviews or issue triaging on GitHub.
- The user asks to upgrade model versions in existing review workflows (e.g. from
gemini-3.8-flashorgemini-3.6-flashtogemini-4-hydrogen). - The user asks to add custom reviewer personalities (such as Dazbo, Emperor Palpatine, or Rick Sanchez) or custom review guardrails (
.github/review-instruction-additions.md) to their automated PR reviews.
Installation & Upgrade Workflow
Copy this checklist and track your progress:
Step 1: Pre-implementation environment check & legacy workflow detection
Before writing or modifying any GitHub workflow files, inspect the .github/workflows/ directory for existing workflow files:
- Check for existing `gemini-review-action` workflows:
- Inspect
.github/workflows/gemini-review.ymlor.github/workflows/gemini-triage.yml. - Check the configured
gemini_modelparameter. If it uses an older model (e.g.gemini-3.8-flash,gemini-3.6-flash, orgemini-3.5-flash), inform the user and offer to upgrade the model to `gemini-4-hydrogen`. - Check if a
personainput is specified. If missing or set tostraight, offer to add one of the custom reviewer personalities (dazbo,palpatine, orrick). - Check if job-level
concurrencyis configured on thereviewjob (prevents redundant billed calls on rapid bursts of commits). - Check if the
pull_requesttrigger condition guards against external fork PRs (github.event.pull_request.head.repo.full_name == github.repository) so fork PRs don't fail due to missing repository secrets.
- Check for legacy/competing workflows:
- Search for references to deprecated actions like
google-gemini/run-gemini-cli,google-github-actions/run-gemini-cli, orgoogle-github-actions/gemini-code-assist. - If found, warn the user that legacy workflows will conflict with the new action and ask for permission to remove them.
Step 2: Prompt for customisation preferences & persona selection
Ask the user:
- Workflows to install or update:
- PR Code Review (creates/updates
.github/workflows/gemini-review.yml) - Issue Triage (creates/updates
.github/workflows/gemini-triage.yml) - Both (recommended)
- Gemini Model:
- `gemini-4-hydrogen` (Default & recommended — fast, cost-efficient Gemini 4 daily driver with 1M unified context, configurable
thinking_levelup toxhigh, native structured JSON output, and multimodal visual diffing). - Caching note: Reliable cross-run 95% Durable Implicit Caching on Gemini 4 (
0.05×cached input rate, up to 24h) works via Vertex AI WIF/ADC (`global` recommended to avoid `+10%` regional surcharges, or `'eu'`/`'us'` when data residency is required) using the action's 3-turnContentprefix boundary (User(base_sha repo + images) -> Model(ack) -> User(PR diff)). (Explicit Gemini 4 Cache Control with TTL launches 12 Jan 2027.) Google AI Studio (GEMINI_API_KEY) provides best-effort ephemeral caching only and relies on prompt-volume controls (context_mode,max_diff_full_file_bytes, or opt-inservice_tier: 'flex'). (Gemini 3 explicitCachedContentworks on both AI Studio and Vertex AI.) - Offer model upgrade if an older model was detected in Step 1.
- Authentication Mode:
- Path A — Google AI Studio (`GEMINI_API_KEY`, default): Zero GCP setup and a single repository secret (
GEMINI_API_KEY). If cost-sensitive, suggestcontext_mode: 'sparse'and/ormax_diff_full_file_bytessince AI Studio does not guarantee cross-run Gemini 4 caching. - Path B — Vertex AI via Workload Identity Federation (`global`, or `eu`/`us` for residency): Keyless OIDC auth (no long-lived API keys or JSON key files), automatic Cloud Billing
billing_labelsattribution, and 24-hour Gemini 4 Durable Implicit Caching (~95%hits across runs). Ask whether the user already has an existing GCP WIF pool/provider/service account to reuse: - If reusing an owner-wide (Option A) WIF pool (
attribute.repository_owner), zero `gcloud` commands are needed for this repository — only collectGCP_PROJECT_ID,GCP_PROJECT_NUMBER,GCP_SERVICE_ACCOUNT,WIF_POOL_ID,WIF_PROVIDER_ID, and preferred Vertex AI location ('global'recommended for standard pricing, or'eu'/'us'for regional residency). - If reusing a per-repo (Option B) WIF pool (
attribute.repository), add oneroles/iam.workloadIdentityUserIAM binding for this repo (ask for explicit approval before runninggcloud). - If no WIF pool exists yet, follow docs/vertex-ai-wif-setup.md (and always ask for explicit user approval before executing any `gcloud` commands).
- Note that all repositories reusing the same WIF pool roll their Vertex AI token charges into that single GCP project while automatic
repo=<owner>_<repo>Cloud Billing labels separate cost per repository.
- Reviewer Personality / Persona:
Provide a clear summary of the available character personas to the user so they can choose their preferred tone:
- `straight` (Default): Standard, professional, and direct technical code reviewer without character overlays.
- `dazbo`: Practical, warm, and mildly cheeky software engineer personality. Uses approachable humour, avoids dry corporate boilerplate, and displays escalating dry sarcasm/humour if prior review recommendations are ignored without explanation in follow-up commits.
- `palpatine`: Emperor Palpatine (Darth Sidious) from Star Wars. Ominous, imperial, dramatic, demanding absolute perfection ("Do it.", "Good, good...", "Unlimited power!", "Execute Order 66 on this bug"), with escalating imperial wrath for unaddressed flaws.
- `rick`: Rick Sanchez from Rick and Morty. Hyper-intelligent, cynical multiverse genius ("burp", "Wubba Lubba Dub-Dub!", "Jerry-level code"). Demands galaxy-brain engineering perfection and treats sloppy bugs as pathetic Jerry-tier amateur work, with escalating multiverse exasperation if ignored.
- Additional Customisation Options:
- Preferred Language: Default
English (UK). Options:English (US),French,Spanish, etc. - Path Inclusions / Exclusions: Restrict triggers to specific files (e.g.
src/**or excludingdocs/**). - Custom Review Guardrails (`.github/review-instruction-additions.md`): Offer to create
.github/review-instruction-additions.mdif the user wants to layer project-specific review rules or domain guardrails onto the default reviewer prompt without replacing the base TOML prompt. - Advanced Workflow Options:
include_comment_history: 'true'(Default) — tracks multi-turn comment resolution across commits.skip_inline_suggestions: 'true'(Default) — skips re-reviewing commits generated by clicking "Apply suggestion" in the GitHub UI.resolve_addressed_threads: 'false'(Default) — can be set to'true'(requires a PAT or GitHub App token ingithub_token) to auto-resolve review threads once Gemini confirms they are fixed.exclude_comment_authors: ''— comma-separated bot logins (e.g.claude[bot]) to keep out of the review prompt.
Step 3: Write or update workflow files and custom instructions
Create or update workflow files in .github/workflows/ incorporating all chosen preferences from Step 2.
Ensure the workflow specifies:
gemini_model: 'gemini-4-hydrogen'persona: '<chosen_persona>'(e.g.straight,dazbo,palpatine, orrick)language: '<chosen_language>'(e.g.English (UK))- Job-level
concurrencygroup keyed on the PR number (gemini-review-${{ github.event.pull_request.number || github.event.issue.number }}). - If using Vertex AI via WIF (Path B):
- Add
id-token: writeto the job'spermissions:block. - Pin both
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1andgoogle-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0to full commit SHAs in jobs holdingid-token: write. - Pass
GOOGLE_GENAI_USE_VERTEXAI: 'True',GOOGLE_CLOUD_PROJECT: ${{ secrets.GCP_PROJECT_ID }}, andGOOGLE_CLOUD_LOCATION: 'global'(or'eu'/'us'for regional data residency) underenv:, setthinking_level: 'low'ongemini-triage.yml, and omit `gemini_api_key`.
[!IMPORTANT]Action Input Parameters vs TOML Configuration:All operational parameters (persona,language,timeout,include_comment_history,skip_inline_suggestions,resolve_addressed_threads,thinking_level, etc.) MUST be configured aswith:inputs in the workflow.ymlfile.gemini-review.tomlandgemini-triage.tomlare strictly reserved for full system prompt overrides and context byte thresholds—only copy them into the repository if the user explicitly wants to replace the entire base system prompt from scratch.
Step 4: Secrets setup and repository recommendation
Check if the GitHub CLI (gh) is installed and authenticated by running gh auth status.
Option A: Google AI Studio (GEMINI_API_KEY)
If `gh` is available and authenticated:
- Ask the user for their Gemini API key (from Google AI Studio).
- Offer to set the GitHub repository secret automatically over stdin:
``bash printf '%s' "<API_KEY>" | gh secret set GEMINI_API_KEY ` > [!IMPORTANT] > Do NOT pass secrets directly in shell command flags (e.g. --body`) where they might be logged in terminal history. Always use stdin redirection.
If `gh` is NOT available:
- Go to Settings > Secrets and variables > Actions -> New repository secret.
- Name:
GEMINI_API_KEY, Value: the Gemini API key generated in Google AI Studio.
Option B: Vertex AI via WIF
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/install-gemini-code-review-action/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/derailed-dash/dazbo-agent-skills/install-gemini-code-review-action)