/gemini:diff-reviewfrom gemini
Sends git diffs to Gemini for a second-opinion code review. Supports staged, unstaged, and per-commit reviews with optional security or performance focus.
Ships in gemini. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Have Gemini review git changes for a second perspective on code quality.
Save diff to project root, have Gemini review, then clean up:
git diff --cached > gemini-review.diff
gemini "Review the code changes at gemini-review.diff for issues. Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
Staged changes:
git diff --cached > gemini-review.diff
gemini "Review gemini-review.diff for:
1. Bugs or logic errors
2. Security vulnerabilities
3. Style inconsistencies
4. Missing error handling
Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
All uncommitted changes:
git diff HEAD > gemini-review.diff
gemini "Review gemini-review.diff. Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
Specific commit:
git show abc123 > gemini-review.diff
gemini "Review the commit at gemini-review.diff. Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
Security focus:
git diff --cached > gemini-review.diff
gemini "Security review of gemini-review.diff. Check for:
- XSS vulnerabilities
- SQL/command injection
- Sensitive data exposure
- Authentication/authorization issues
Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
Performance focus:
git diff --cached > gemini-review.diff
gemini "Performance review of gemini-review.diff. Check for:
- Inefficient algorithms
- N+1 queries
- Memory leaks
- Blocking operations
Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
Ask Gemini to read full files for better context:
git diff --cached > gemini-review.diff
gemini "Review gemini-review.diff. Also read the full files:
- src/auth/login.ts
- src/utils/validate.ts
to understand the broader context. Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1
rm gemini-review.diff
.gitignore - it cannot read files matching gitignore patternsdangerouslyDisableSandbox: true for Bash callsreferences/setup.md for troubleshootingWhat SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/codebase-analysisDeep architectural analysis using Gemini's codebase_investigator tool. Trigger when user needs architecture overview ("analyze this codebase", "map dependencies"), onboarding to unfamiliar code, understanding legacy systems, or identifying technical debt./plan-reviewGet Gemini's review of Claude's implementation plans. Trigger when user wants a second opinion on a plan ("have Gemini review this plan", "get second opinion", "critique this plan"), or after Claude creates a plan file that needs validation before implementation./web-searchReal-time web research using Gemini's Google Search. Trigger when user needs current information ("search with Gemini", "find current info about X", "what's the latest on Y"), library/API research, security vulnerability lookups, or comparisons requiring recent data.npx claudepluginhub robbyt/claude-skills --plugin geminiOther plugins' skills for the same job