/SKILL.md
Wield Google's Gemini CLI as a powerful auxiliary tool for code generation, review, analysis, and web research. Use when tasks benefit from a second AI perspective, current web information via Google Search, codebase architecture analysis, or parallel code generation. Also use when user explicitly requests Gemini operations.
npx skillsauth add forayconsulting/gemini_cli_skill gemini-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill enables Claude Code to effectively orchestrate Gemini CLI (v0.16.0+) with Gemini 3 Pro for code generation, review, analysis, and specialized tasks.
Second Opinion / Cross-Validation
Google Search Grounding
Codebase Architecture Analysis
codebase_investigator toolParallel Processing
Specialized Generation
command -v gemini || which gemini
gemini "[prompt]" --yolo -o text 2>&1
Key flags:
--yolo or -y: Auto-approve all tool calls-o text: Human-readable output-o json: Structured output with stats-m gemini-2.5-flash: Use faster model for simple tasksYOLO Mode Behavior: Auto-approves tool calls but does NOT prevent planning prompts. Gemini may still present plans and ask "Does this plan look good?" Use forceful language:
Rate Limits: Free tier has 60 requests/min, 1000/day. CLI auto-retries with backoff. Expect messages like "quota will reset after Xs".
For JSON output (-o json), parse:
{
"response": "actual content",
"stats": {
"models": { "tokens": {...} },
"tools": { "byName": {...} }
}
}
gemini "Create [description] with [features]. Output complete file content." --yolo -o text
gemini "Review [file] for: 1) features, 2) bugs/security issues, 3) improvements" -o text
gemini "Fix these bugs in [file]: [list]. Apply fixes now." --yolo -o text
gemini "Generate [Jest/pytest] tests for [file]. Focus on [areas]." --yolo -o text
gemini "Generate JSDoc for all functions in [file]. Output as markdown." --yolo -o text
gemini "Use codebase_investigator to analyze this project" -o text
gemini "What are the latest [topic]? Use Google Search." -o text
gemini "[prompt]" -m gemini-2.5-flash -o text
-m gemini-2.5-flash for lower priority tasksgemini --version~/.gemini/settings.json for config issuesAlways verify Gemini's output:
# 1. Generate
gemini "Create [code]" --yolo -o text
# 2. Review (Gemini reviews its own work)
gemini "Review [file] for bugs and security issues" -o text
# 3. Fix identified issues
gemini "Fix [issues] in [file]. Apply now." --yolo -o text
For long tasks, run in background and monitor:
gemini "[long task]" --yolo -o text 2>&1 &
# Monitor with BashOutput tool
These tools are available only through Gemini:
Create .gemini/GEMINI.md in project root for persistent context that Gemini will automatically read.
List sessions: gemini --list-sessions
Resume session: echo "follow-up" | gemini -r [index] -o text
reference.md - Complete command and flag referencetemplates.md - Prompt templates for common operationspatterns.md - Advanced integration patternstools.md - Gemini's built-in tools documentationtools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.