Skip to content
Skills Library
AI & agents · Tool integration

gemini-cli

/gemini-cli

Run Gemini CLI for AI queries. Use when user asks to "run/ask/use gemini", compare Claude vs Gemini, or delegate tasks to Gemini.

Licence
MIT
Last repository change
12.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 12.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Run Gemini CLI for AI queries. Use when user asks to "run/ask/use gemini", compare Claude vs Gemini, or delegate tasks to Gemini.

Triggers from the description

run/ask/use gemini
Original author description

Run Gemini CLI for AI queries. Use when user asks to "run/ask/use gemini", compare Claude vs Gemini, or delegate tasks to Gemini.

How it works

  1. Prerequisites
  2. When to Use
  3. Usage
  4. Models
  5. CLI Options
  6. Comparison Workflow
  7. Best Practices
Original SKILL.md headings · 79 lines, 335 words
SKILL.md preview
---
name: gemini-cli
description: Run Gemini CLI for AI queries. Use when user asks to "run/ask/use gemini", compare Claude vs Gemini, or delegate tasks to Gemini.
---

# Gemini CLI

Interact w/ Google's Gemini CLI locally. Run queries, get responses, compare outputs.

## Prerequisites

Gemini CLI must be installed & configured:

1. **Install:** https://github.com/google-gemini/gemini-cli
2. **Auth:** Run `gemini` & sign in w/ Google account
3. **Verify:** `gemini --version`

## When to Use

- User asks to "run/ask/use gemini"
- Compare Claude vs Gemini responses
- Get second AI opinion
- Delegate task to Gemini

## Usage

**IMPORTANT:** Use `-p` flag for non-interactive (headless) one-shot queries. Without `-p`, gemini opens interactive mode which hangs in automation.

```bash
# One-shot query (MUST use -p for non-interactive)
gemini -p "Your prompt"

# Specific model
gemini -p "prompt" -m gemini-3-pro

# JSON output
gemini -p "prompt" -o json

# Auto-approve tool use (-y is deprecated)
gemini --approval-mode=yolo -p "prompt"

# File analysis
cat file.txt | gemini -p "Analyze this"
```

## Models

| Alias | Use case |
|-------|----------|
| `auto` | DEFAULT — routes per prompt (simple → Flash, complex → 3 Pro) |
| `pro` | Force Gemini 3 Pro (best all-round) |
| `flash` / `flash-lite` | Fast, lightweight tasks (3.5 Flash GA rolling out as auto default) |

Omit `-m` to use `auto` routing. Aliases beat pinned model ids — they track
upstream model swaps. Pin a full id (e.g. `gemini-3-pro`) only when the user
names one.

## CLI Options

| Flag | Desc |
|------|------|
| `-p` | **Required for headless.** Non-interactive prompt |
| `-m` | Model selection |
| `-o` | Output: text/json/stream-json |
| `--approval-mode=yolo` | Auto-approve all actions (`-y` is deprecated) |
| `-d` | Debug mode |
| `-s` | Sandbox mode |
| `-r` | Resume session |
| `-i` | Execute prompt then continue interactive |

## Comparison Workflow

1. Provide Claude's response first
2. Run same query via `gemini -p "prompt"`
3. Present both for comparison

## Best Practices

- Always use `-p` for automation/one-shot queries
- Quote prompts w/ double quotes
- Use `-o json` for parsing
- Pipe files for context

Versions

RepositoryScoreLicence
This page · georgekhananaev/claude-skills-vault100MIT
TerminalSkills/skills100Apache-2.0
fprochazka/claude-code-plugins100MIT

Database snapshot: 13.11.2026 · package version e73d155090f1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100gemini
    Use when the user asks to run Gemini CLI (gemini, gemini resume) or references Google Gemini for code analysis, refactoring, or automated editing
  • 100gemini-cli-helper
    Run Gemini CLI commands from Claude with correct Node version. Use when user asks to run Gemini CLI, test Gemini traces, or debug Gemini telemetry.
  • 100code-mate-gemini
    Run Gemini CLI non-interactively for coding tasks. Use when the user asks to delegate work to Gemini.
  • 100gemini-cli-helper
    Run Gemini CLI commands from Codex with correct Node version. Use when user asks to run Gemini CLI, test Gemini traces, or debug Gemini telemetry.
  • 100gemini-agent
    Delegate tasks to Gemini CLI as an agent. Use when the user wants to offload token-heavy work to Gemini, get a second opinion from a different model, or run Gemini with a custom system prompt. Triggers include "use Gemini to review X", "ask Gemini to Y", "run Gemini on Z",…
  • 100gemini
    Gemini CLI for one-shot Q&A, summaries, and generation. Use when user mentions 'gemini', 'ask gemini', 'gemini cli', or needs a quick answer from Google's model.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.