agentleFS
georgekhananaevgeorgekhananaev/claude-skills-vault/.claude/skills/gemini-cli/SKILL.md

gemini-cli

Skill28 starsChanged 6 months agoMITView on GitHub

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

10 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Auth: Run gemini & sign in w/ Google account

    line 15
  2. Very specific:

    IMPORTANT: Use -p flag for non-interactive (headless) one-shot queries.

    line 27
  3. Very specific:

    Run same query via gemini -p "prompt"

    line 74
  4. Very specific:

    Always use -p for automation/one-shot queries

    line 79
  5. Very specific:

    Use -o json for parsing

    line 81

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

AliasUse case
autoDEFAULT — routes per prompt (simple → Flash, complex → 3 Pro)
proForce Gemini 3 Pro (best all-round)
flash / flash-liteFast, 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

FlagDesc
-pRequired for headless. Non-interactive prompt
-mModel selection
-oOutput: text/json/stream-json
--approval-mode=yoloAuto-approve all actions (-y is deprecated)
-dDebug mode
-sSandbox mode
-rResume session
-iExecute 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.