Help us improve
Share bugs, ideas, or general feedback.
From python-backend
This skill should be used when invoking the Gemini CLI for code review, plan review, or any prompt-based task. It provides correct invocation patterns emphasizing stdin piping and @ syntax over shell variable gymnastics.
npx claudepluginhub rbozydar/rbw-claude-code --plugin python-backendHow this skill is triggered — by the user, by Claude, or both
Slash command
/python-backend:gemini-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Ensure clean, readable Gemini CLI invocations without shell gymnastics.
Reviews git diffs using Gemini for bugs, security vulnerabilities, style inconsistencies, performance issues, and more. Ideal for second opinions on changes before committing.
Runs code reviews via external LLMs (OpenAI Codex CLI, Google Gemini CLI) on uncommitted changes, branch diffs, or commits using git and bash.
Use when the user asks to run Gemini CLI (gemini, gemini resume) or references Google Gemini for code analysis, refactoring, or automated editing
Share bugs, ideas, or general feedback.
Ensure clean, readable Gemini CLI invocations without shell gymnastics.
Always pipe content via stdin or use @ syntax. Never use heredocs or shell variable assignment.
# CORRECT - Clean stdin pipe
cat file.md | gemini --sandbox -o text "Review this for issues"
# CORRECT - @ syntax for file references
gemini --sandbox -o text "Review this code" @src/module.py
# WRONG - Shell gymnastics
CONTENT=$(cat file.md)
gemini --sandbox "Review: $CONTENT"
# Pipe content via stdin
<content-source> | gemini [options] "prompt"
# Reference files/folders directly
gemini [options] "prompt" @file.py @folder/
| Option | Purpose |
|---|---|
--sandbox or -s | Required -- prevents code modifications |
-o text | Plain text output (required for parsing) |
-m MODEL | Model selection |
| Model | Use Case |
|---|---|
gemini-3-pro-preview | Default, best quality |
gemini-3-flash-preview | Faster, cheaper |
# Single file
gemini --sandbox -o text "Review this code" @src/module.py
# Multiple files
gemini --sandbox -o text "Check consistency" @src/models.py @src/views.py
# Entire folder
gemini --sandbox -o text "Review this module" @src/auth/
# Mix files and folders
gemini --sandbox -o text "Review the API" @src/api/ @tests/test_api.py
# Unstaged changes
git diff | gemini --sandbox -o text "Review this diff for bugs and security issues"
# Staged changes
git diff --cached | gemini --sandbox -o text "Review these staged changes"
# Branch vs main
git diff main...HEAD | gemini --sandbox -o text "Review all changes on this branch"
git diff | gemini --sandbox -o text "Review this diff focusing on:
1. SQL injection vulnerabilities
2. Missing error handling
3. Performance issues"
-p Flag# WRONG - deprecated
gemini -p "prompt" --sandbox
# CORRECT - positional prompt
gemini --sandbox "prompt"
# WRONG
DIFF=$(git diff)
gemini --sandbox "$DIFF"
# CORRECT
git diff | gemini --sandbox -o text "Review"
# WRONG - no sandbox
gemini "Review this code"
# CORRECT
gemini --sandbox "Review this code"
When invoking gemini from Claude Code agents:
@ syntax--sandbox-o text for parseable outputgit diff --cached | gemini --sandbox -o text -m gemini-3-pro-preview \
"Review this diff for bugs, security vulnerabilities, and performance issues.
Provide specific file:line references."
The error "No input provided via stdin" indicates missing piped content. When using stdin mode, always pipe content before the gemini command. When referencing files directly, use @ syntax instead.
For large files, review specific sections or use the flash model:
head -500 large-file.py | gemini --sandbox -o text "Review this code section"
| Task | Command |
|---|---|
| Review plan | gemini --sandbox -o text "Review for issues" @plan.md |
| Review file | gemini --sandbox -o text "Check security" @file.py |
| Review folder | gemini --sandbox -o text "Review module" @src/auth/ |
| Review unstaged diff | git diff | gemini --sandbox -o text "Review for bugs" |
| Review staged diff | git diff --cached | gemini --sandbox -o text "Review" |
| Review branch | git diff main...HEAD | gemini --sandbox -o text "Review" |