gemini-cli

gemini-cli is a skill for Claude Code from georgekhananaev/claude-skills-vault. It costs 35 tokens per session (620 once invoked), scanned A, original, MIT.

Instructions for running Google's Gemini command-line tool, which lets an agent send prompts to Gemini from a terminal. They cover one-shot queries, model choices, JSON output, approval settings, and file analysis.

In plain words
What is it for?
They help run Gemini non-interactively, select fast or advanced models, request structured output, approve tool use, and analyse piped files.
Why use it?
They prevent common command-line mistakes, such as opening an interactive session that hangs during automation.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Gemini CLI.

Good fit They help run Gemini non-interactively, select fast or advanced models, request structured output, approve tool use, and analyse piped files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/georgekhananaev/claude-skills-vault/gemini-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add georgekhananaev/claude-skills-vault --skill gemini-cli
Clone the repo
git clone --depth 1 https://github.com/georgekhananaev/claude-skills-vault

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/gemini-cli/github.svg)](https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/gemini-cli)
Your own site
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/gemini-cli"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/gemini-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/gemini-cli"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/gemini-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 34
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Excessive Agency · line 39
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 65
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00620
Opus 5 $0.00017 $0.00310
Sonnet 5 $0.00007 $0.00124
Haiku 4.5 $0.00003 $0.00062

Measured 11d ago against content hash a7bf14000419, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gemini-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/gemini-cli/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

# 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

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 83 lines · 35 tokens per session scan A a7bf14000419

Subscribe to this mod's changes

gemini-cli is a skill published in the GitHub repository georgekhananaev/claude-skills-vault (28 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 620 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

woocommerce-health-check

Use when the user says 'why is my checkout broken', 'audit my woocommerce store', 'cart problems woocommerce', or 'losing sales woocommerce'. Diagnoses checkout and cart failures, AJAX mismatches, caching conflicts, payment gateway setup, and SSL enforcement.

respira-press/agent-skills-wordpress · 59 tokens

mobile-experience-report

Use when the user says 'my site looks bad on mobile', 'check mobile layout', 'responsive audit', or 'site broken on phones'. Diagnoses breakpoint problems, text sizing, column stacking failures, hidden elements, and navigation menu behavior, device by device.

respira-press/agent-skills-wordpress · 58 tokens

content-portability

Use when the user says 'export my site', 'backup my pages before editing', 'download my content locally', or 'migrate content to my other site'. Exports pages, posts, and custom posts to portable local packages with builder data, media, and markdown, then imports elsewhere with ID remapping.

respira-press/agent-skills-wordpress · 67 tokens

migrate-divi-to-breakdance

Use when the user says 'migrate divi to breakdance', 'convert divi to breakdance', or 'rebuild divi pages in breakdance'. Parses Divi shortcodes, maps modules to Breakdance elements, and creates draft duplicates for review.

respira-press/agent-skills-wordpress · 61 tokens

migrate-divi-to-bricks

Use when the user says 'migrate divi to bricks', 'convert divi to bricks', or 'rebuild divi pages in bricks'. Parses Divi shortcode content, maps modules to Bricks elements, and generates draft duplicates for review.

respira-press/agent-skills-wordpress · 58 tokens

migrate-divi-to-gutenberg

Use when the user says 'migrate divi to gutenberg', 'convert divi to blocks', 'get off divi', or 'decommission divi'. Parses Divi shortcodes, maps modules to core blocks, and creates draft duplicates for review.

respira-press/agent-skills-wordpress · 62 tokens