Run Google Gemini CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.
Runs Google Gemini CLI for second opinions, code reviews, and external AI perspectives.
/plugin marketplace add https://www.claudepluginhub.com/api/plugins/yuvasee-samocode/marketplace.json/plugin install yuvasee-samocode@cpd-yuvasee-samocodeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Run Google Gemini CLI for second opinions and external reviews.
Before using Gemini, verify it's installed:
which gemini >/dev/null 2>&1 || echo "GEMINI_NOT_INSTALLED"
If not installed, inform the user: "Gemini CLI is not installed. Skipping Gemini review."
Gemini requires GEMINI_API_KEY in the environment. Load it from the .env file in the current working directory (the folder your current agent session is running from):
GEMINI_API_KEY=$(grep '^GEMINI_API_KEY=' .env 2>/dev/null | cut -d= -f2-)
export GEMINI_API_KEY
If .env doesn't exist or doesn't contain GEMINI_API_KEY, inform the user: "GEMINI_API_KEY not found in .env file."
GEMINI_API_KEY=$(grep '^GEMINI_API_KEY=' .env 2>/dev/null | cut -d= -f2-) gemini -p "$PROMPT" --yolo 2>&1
| Flag | Purpose |
|---|---|
-p / --prompt | Non-interactive mode with direct prompt |
--yolo | Auto-approve all tool calls without prompts |
2>&1 | Capture both stdout and stderr |
Gemini can take several minutes for complex prompts. Use 15 minute timeout:
timeout 900 gemini -p "$PROMPT" --yolo 2>&1
timeout 900 gemini -p "What are the tradeoffs between Redis and Memcached for session storage?" --yolo 2>&1
DIFF=$(git diff main...HEAD)
timeout 900 gemini -p "Review this diff for issues:
$DIFF
List concerns with severity (blocking/important/nice-to-have)." --yolo 2>&1
Gemini runs in current directory by default. Change directory before running:
cd /path/to/repo && timeout 900 gemini -p "Analyze the architecture of this codebase" --yolo 2>&1
Gemini has access to gh CLI when tools are enabled. Pass the PR URL and let it fetch the diff:
timeout 900 gemini -p "Review this PR: https://github.com/owner/repo/pull/123
Use gh CLI to get the diff and review for issues." --yolo 2>&1
--yolo mode auto-approves tool use (shell commands, file reads, etc.)Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.