gemini-cli
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: gemini-cli
description: Use when the user asks to run Gemini CLI, Google Gemini for code tasks, or references Gemini for…
category: other
runtime: no special runtime
---
# gemini-cli output preview
## PART A: Task fit
- Use case: Use when the user asks to run Gemini CLI, Google Gemini for code tasks, or references Gemini for analysis, code generation, or automated editing | Model | When to Use | |-------|-------------| | gemini-3-flash-preview | DEFAULT - Use for most tasks. Fast + smart. | makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “ALWAYS USE GEMINI 3 / Legacy Models (only if specifically requested) / Gemini 3 Features” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use when the user asks to run Gemini CLI, Google Gemini for code tasks, or references Gemini for analysis, code generation, or automated editing | Model | When to Use | |-------|-------------| | gemini-3-flash-preview | DEFAULT - Use for most tasks. Fast + smart. | makes outbound network calls. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “ALWAYS USE GEMINI 3 / Legacy Models (only if specifically requested) / Gemini 3 Features” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; may access external network resources; usually needs no extra API key.
## Running Rules
- read files, write/modify files, run shell commands; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/path`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “ALWAYS USE GEMINI 3 / Legacy Models (only if specifically requested) / Gemini 3 Features”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: gemini-cli
description: Use when the user asks to run Gemini CLI, Google Gemini for code tasks, or references Gemini for…
category: other
source: tomevault-io/skills-registry
---
# gemini-cli
## When to use
- Use when the user asks to run Gemini CLI, Google Gemini for code tasks, or references Gemini for analysis, code genera…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “ALWAYS USE GEMINI 3 / Legacy Models (only if specifically requested) / Gemini 3 Features” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; may access external network resources; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "gemini-cli" {
input -> user goal + target files + boundaries + acceptance criteria
context -> ALWAYS USE GEMINI 3 / Legacy Models (only if specifically requested) / Gemini 3 Features
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files, run shell commands | may access external network resources
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Gemini CLI Skill Guide (v0.23.0+)
ALWAYS USE GEMINI 3
Default to Gemini 3 models for all tasks. These are the current generation with superior reasoning.
| Model | When to Use |
|---|---|
gemini-3-flash-preview |
DEFAULT - Use for most tasks. Fast + smart. |
gemini-3-pro-preview |
Complex reasoning, architecture, 1M context tasks |
Legacy Models (only if specifically requested)
| Model | Notes |
|---|---|
gemini-2.5-pro |
Previous flagship |
gemini-2.5-flash |
High throughput |
Gemini 3 Features
thinking_level- Control reasoning depth (low,medium,high)media_resolution- Vision processing quality (low,medium,high,ultra_high)- Thought Signatures - Maintains chain of reasoning across calls
Running a Task
- Ask the user which model to run (default:
gemini-3-flash-preview) AND which approval mode (default,auto_edit,yolo) in a single prompt. - Select approval mode based on task:
default- Prompt for approval on each actionauto_edit- Auto-approve file edits onlyyolo- Auto-approve all actions (use with caution)
- Assemble command with options:
-m, --model <MODEL>(e.g.,-m gemini-2.5-pro)--approval-mode <default|auto_edit|yolo>-y, --yolo(shortcut for--approval-mode yolo)-s, --sandbox(run in sandbox mode)--include-directories <PATH>(add additional directories)-r, --resume <latest|INDEX>(resume previous session)-o, --output-format <text|json|stream-json>(output format)
- Non-interactive one-shot:
gemini "your prompt here"(positional argument) - Interactive after prompt:
gemini -i "initial prompt" - Resume syntax:
gemini -r latestorgemini -r 5 - After completion: Inform user they can resume with
gemini -r latest.
Note: The
-p/--promptflag is deprecated. Use positional arguments instead.
Quick Reference
| Use case | Approval mode | Command |
|---|---|---|
| Read-only review | default |
gemini -m gemini-3-flash-preview "prompt" |
| Complex reasoning | default |
gemini -m gemini-3-pro-preview "prompt" |
| Auto file edits | auto_edit |
gemini -m gemini-3-flash-preview --approval-mode auto_edit "prompt" |
| Full auto (YOLO) | yolo |
gemini -m gemini-3-flash-preview -y "prompt" |
| Sandboxed | default |
gemini -m gemini-3-flash-preview -s "prompt" |
| With extra dirs | Match task | gemini -m gemini-3-flash-preview --include-directories /path/to/other "prompt" |
| Resume latest | Inherited | gemini -r latest |
| Resume specific | Inherited | gemini -r 5 |
| Interactive mode | Match task | gemini -i "start with this prompt" |
| JSON output | Match task | gemini -m gemini-3-flash-preview -o json "prompt" |
| Stream JSON | Match task | gemini -m gemini-3-flash-preview -o stream-json "prompt" |
Session Management
| Command | Description |
|---|---|
gemini --list-sessions |
List available sessions |
gemini -r latest |
Resume most recent session |
gemini -r <INDEX> |
Resume session by index |
gemini --delete-session <INDEX> |
Delete a session |
MCP & Extensions
| Command | Description |
|---|---|
gemini mcp |
Manage MCP servers |
gemini -l / --list-extensions |
List available extensions |
gemini -e ext1 ext2 |
Use specific extensions only |
--allowed-mcp-server-names |
Specify allowed MCP servers |
--allowed-tools |
Tools that run without confirmation |
Built-in Tools
Gemini CLI has these tools enabled by default:
- File operations: Read/write files in working directory
- Shell commands: Execute terminal commands
- Web fetch: Retrieve web content
- Google Search: Grounded search for current information
Project Context
Create GEMINI.md in project root for project-specific instructions (similar to CLAUDE.md).
Following Up
- After every
geminicommand, confirm next steps or offer to resume. - Resume preserves original model and approval mode.
- Restate configuration when proposing follow-up actions.
Error Handling
- Stop and report failures on non-zero exit; request direction before retry.
- Ask permission before using
-y/--yolomode. - Summarize warnings/partial results and ask how to proceed.
- Check authentication if getting 401/403 errors.
- For quota issues, suggest switching auth methods or waiting.
Key Differences from Codex
| Feature | Gemini CLI | Codex CLI |
|---|---|---|
| One-shot syntax | gemini "prompt" |
codex exec "prompt" |
| Auto mode | -y or --approval-mode yolo |
--full-auto |
| Sandbox | -s |
--sandbox <mode> |
| Resume | -r latest |
resume --last |
| Interactive | -i "prompt" |
Default interactive |
| Output format | -o json/stream-json |
N/A |
Source: brunoqgalvao/navi — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review