From external-review
Send code changes to Google Gemini for external review. Use when the user asks to "review code with gemini", "gemini code review", "have gemini review these changes", "gemini review my diff", or wants Gemini to review uncommitted changes or specific files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/external-review:gemini-review-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Send code changes to Gemini CLI for an independent code review. Gemini runs in plan (read-only) approval mode to ensure no file modifications.
Send code changes to Gemini CLI for an independent code review. Gemini runs in plan (read-only) approval mode to ensure no file modifications.
Parse the user's request to determine what to review:
git diff to capture all staged and unstaged changes.git diff --cached.git diff <branch>...HEAD.If git diff produces no output, fall back to git diff HEAD~1 to review the last commit.
Use a 5-minute Bash timeout (300000ms) for all commands.
For diff-based review (default):
git diff | gemini --approval-mode plan -o text \
-p "Review this code diff for:
- Bugs and logic errors
- Security vulnerabilities (injection, overflow, resource leaks)
- Design issues and code smells
- Missing error handling
- Performance concerns
Be specific. Reference file names, line numbers, and function names in your feedback." \
> /tmp/gemini-code-review.md 2>&1
For branch comparison:
git diff <branch>...HEAD | gemini --approval-mode plan -o text \
-p "Review this code diff for bugs, security issues, design problems, and improvements. Be specific and reference file names and line numbers." \
> /tmp/gemini-code-review.md 2>&1
For specific files:
cat <file1> <file2> ... | gemini --approval-mode plan -o text \
-p "Review this code for bugs, security issues, design problems, and improvements. Be specific and reference line numbers and function names." \
> /tmp/gemini-code-review.md 2>&1
Read /tmp/gemini-code-review.md and present the review to the user.
Filter out any Gemini CLI chrome or status lines — present only the model's review content.
Format the output with a clear header:
## Gemini Code Review
<review content>
Clean up the temp file:
rm -f /tmp/gemini-code-review.md
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub ecjx/ecjx-claude-plugin --plugin external-review