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
- IGTA-Tech/claude-skills-researchtheir own version, first seen Oct 3, 2026
- hankunpeng/skillstheir own version, first seen Sep 10, 2026
- leaf76/agent-skillstheir own version, first seen Aug 17, 2026
- czyt/tinyskillstheir own version, first seen Aug 12, 2026
- foxl-ai/skillstheir own version, first seen May 10, 2026
- Taffyreclaimed45/ppt-agenttheir own version, first seen Mar 23, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- hackermanishackerman/claude-skills-vault★ 261% same
Wrote their own version · 9
- forayconsulting/gemini_cli_skill★ 191same name
- hankunpeng/skills★ 24same name
- czyt/tinyskills★ 6same name
- Junayedahmedd/gemini_cli_skill★ 3same name
- IGTA-Tech/claude-skills-research★ 2same name
- Taffyreclaimed45/ppt-agent★ 2same name
- X-Zero-L/agent-skills★ 2same name
- foxl-ai/skills★ 0same name
- leaf76/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- .claude/skills/composition-patterns/AGENTS.mdAGENTS.md
- .claude/skills/react-best-practices/AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- agy-cliSkill
- aws-cliSkill
- better-authSkill
- brainstormSkill
- claude-seoSkill
- code-qualitySkill
- codex-cliSkill
- color-accessibility-auditSkill
- vercel-composition-patternsSkill
- data-wranglerSkill
- doc-navigatorSkill
- domain-checkerSkill
- fastapi-senior-devSkill
- file-converterSkill
- firebase-cliSkill
- firecrawlSkill
- frontend-designSkill
- github-cliSkill
- materialreacttable-masterySkill
- mcp-builderSkill
- mermaid-diagramSkill
- monday-comSkill
- mongodb-atlas-cliSkill
- multi-agent-patternsSkill
- n8n-cliSkill
- natural-languageSkill
- neon-postgres-agent-platformsSkill
- next-cache-componentsSkill
- nextjs-senior-devSkill
- next-upgradeSkill
- notebooklmSkill
- obsidian-skillsSkill
- owasp-securitySkill
- parallel-agentsSkill
- planning-with-filesSkill
- plan-to-tddSkill
- project-change-logSkill
- pydantic-modelSkill
- react-best-practicesSkill
- salesforce-cliSkill
- semantic-codingSkill
- senior-backendSkill
- skill-creatorSkill
- stripe-best-practicesSkill
- supabase-cliSkill
- swift-concurrency-6-2Skill
- swiftui-patternsSkill
- system-architectSkill
- terraformSkill
- testing-automation-expertSkill
- test-levelsSkill
- token-optimizerSkill
- trailofbits-securitySkill
- ui-ux-pro-maxSkill
- uiux-toolkitSkill
- upgrade-packages-jsSkill
- vercel-cliSkill
- The first 60 shown.
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
- Very specific: line 15
Auth: Run gemini & sign in w/ Google account
- Very specific: line 27
IMPORTANT: Use -p flag for non-interactive (headless) one-shot queries.
- Very specific: line 74
Run same query via gemini -p "prompt"
- Very specific: line 79
Always use -p for automation/one-shot queries
- Very specific: line 81
Use -o json for parsing
“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.
Files
Gemini CLI
Interact w/ Google's Gemini CLI locally. Run queries, get responses, compare outputs.
Prerequisites
Gemini CLI must be installed & configured:
- Install: https://github.com/google-gemini/gemini-cli
- Auth: Run
gemini& sign in w/ Google account - 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
- Provide Claude's response first
- Run same query via
gemini -p "prompt" - Present both for comparison
Best Practices
- Always use
-pfor automation/one-shot queries - Quote prompts w/ double quotes
- Use
-o jsonfor parsing - Pipe files for context
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
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.

