Back to Skills

gemini

verified

This skill should be used when the user asks to "run gemini", "use gemini CLI", "delegate to gemini", "gemini resume", or "continue with gemini". Executes tasks via Gemini CLI with model selection, approval modes, and session management.

View on GitHub

Marketplace

cc-plugin

jongwony/cc-plugin

Plugin

google

Repository

jongwony/cc-plugin

google/skills/gemini/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/jongwony/cc-plugin/blob/main/google/skills/gemini/SKILL.md -a claude-code --skill gemini

Installation paths:

Claude
.claude/skills/gemini/
Powered by add-skill CLI

Instructions

# Gemini CLI Skill Guide

## Running a Task
1. **Model Selection**:
   - By default, use the latest Preview model (omit `-m` flag)
   - Only ask the user (via `AskUserQuestion`) which specific model to use if the task requires a particular model
2. Select the approval mode based on the task:
   - `default`: For read-only analysis (prompt for all tool approvals)
   - `auto_edit`: For editing tasks (auto-approve edit tools)
   - `yolo`: For full automation (auto-approve all tools)
3. Assemble the command with the appropriate options:
   - `-m, --model <MODEL>`
   - `--approval-mode <default|auto_edit|yolo>`
   - `-s, --sandbox` (if sandbox environment is needed)
   - `--allowed-tools <tool1,tool2>` (to allow specific tools without confirmation)
   - `--include-directories <dir1,dir2>` (to include additional directories)
4. For non-interactive prompts, use positional arguments or stdin:
   - `gemini "your prompt here"` (one-shot mode)
   - `echo "your prompt" | gemini` (stdin mode)
5. For interactive sessions, use `-i, --prompt-interactive`:
   - `gemini -i "initial prompt"` (starts interactive mode after executing prompt)
6. Run the command, capture stdout, and summarize the outcome for the user.
7. **After Gemini completes**, inform the user: "You can resume this Gemini session at any time by saying 'gemini resume' or asking me to continue with additional analysis or changes."

### Quick Reference
| Use case | Approval mode | Key flags |
| --- | --- | --- |
| Read-only review or analysis | `default` | `--approval-mode default` |
| Apply local edits | `auto_edit` | `--approval-mode auto_edit` |
| Full automation | `yolo` | `--approval-mode yolo` or `-y` |
| Resume most recent session | Inherited from original | `--resume latest` |
| Resume specific session | Inherited from original | `--resume <index>` |
| List available sessions | N/A | `--list-sessions` |
| Interactive mode | As needed | `-i "prompt"` |
| Sandbox environment | As needed | `-s` or `--sandbox` |

## S

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5057 chars