/AI-skill:gemini-clifrom AI-skill
Uses Google's Gemini CLI for code generation, review, analysis, and web research. Provides a second AI perspective and real-time Google Search.
Ships in AI-skill. 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.
| Use Case | Why Gemini |
|---|---|
| Current web information | google_web_search - real-time Google Search |
| Codebase architecture analysis | codebase_investigator - deep analysis tool |
| Second opinion / code review | Different AI perspective catches different bugs |
| Parallel code generation | Offload tasks while continuing other work |
When NOT to use: Simple quick tasks (overhead not worth it), interactive refinement, context already understood.
command -v gemini--yolo) unless edits are necessary.AskUserQuestion before using --yolo or -s flags. These modes allow file writes or sandboxed execution - get explicit user approval first.-m, --model <MODEL> - Model selection-y, --yolo - Auto-approve all tool calls (enables writes)-s, --sandbox - Run in Docker isolation-o, --output-format <text|json> - Output formatgemini "prompt" -o json 2>/dev/null | perl -0777 -pe 's/^[^{]*//s' | jq -r '.response'
The perl stage is required: gemini CLI (>= 0.37) prints status noise (e.g. MCP issues detected. Run /mcp list for status.) on stdout before the JSON object, so piping straight to jq fails with Invalid numeric literal. The perl filter strips everything before the first {.YOLO mode does NOT prevent planning prompts. Use forceful language: "Apply now", "Start immediately", "Do this without asking for confirmation".
EXTRACT below stands for perl -0777 -pe 's/^[^{]*//s' | jq -r '.response' (always write it out in full when running commands).
| Use case | Mode | Command pattern |
|---|---|---|
| Read-only analysis | read-only | gemini "..." -o json 2>/dev/null | EXTRACT |
| Apply local edits | write | gemini "..." --yolo -o json 2>/dev/null | EXTRACT |
| Sandboxed write | sandbox | gemini "..." --yolo --sandbox -o json 2>/dev/null | EXTRACT |
# Read-only
gemini "Review src/ for bugs" -o json 2>/dev/null | perl -0777 -pe 's/^[^{]*//s' | jq -r '.response'
# Write mode
gemini "Fix bug in file.py. Apply now." --yolo -o json 2>/dev/null | perl -0777 -pe 's/^[^{]*//s' | jq -r '.response'
# If redirection fails, wrap in bash -lc
bash -lc 'gemini "prompt" -o json 2>/dev/null | perl -0777 -pe "s/^[^{]*//s" | jq -r ".response"'
echo "follow-up" | gemini -r latest -o json 2>/dev/null | perl -0777 -pe 's/^[^{]*//s' | jq -r '.response'gemini --list-sessionsInvalid numeric literal): stdout noise before the JSON — make sure the perl -0777 -pe 's/^[^{]*//s' stage is in the pipe.-m gemini-2.5-flash for lower priority tasks.gemini --version, use --debug for details.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/codexUse when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, code review, or automated editing/collab-fixCollaborative multi-agent fix workflow using codex, gemini-cli, and an independent subagent. Use when the user asks to "collab fix", "multi-agent fix", or wants several AI tools to jointly analyze and fix a bug or task with cross-review./TDD-debugTest-Driven Development debug workflow combined with multi-agent collab-fix. Use when the user asks to "TDD debug", "reproduce and fix with a test", or wants a bug fixed with a failing test written first and verified after the fix.npx claudepluginhub caidish/cai-tools --plugin AI-skillOther plugins' skills for the same job