gemini-cli
Delegate tasks to Gemini CLI for context engineering, large codebase analysis, research-heavy coding tasks, and documentation generation. Gemini has a 1M token context window and built-in Google Search grounding.
Best use case
gemini-cli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Delegate tasks to Gemini CLI for context engineering, large codebase analysis, research-heavy coding tasks, and documentation generation. Gemini has a 1M token context window and built-in Google Search grounding.
Teams using gemini-cli should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gemini-cli/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gemini-cli Compares
| Feature / Agent | gemini-cli | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Delegate tasks to Gemini CLI for context engineering, large codebase analysis, research-heavy coding tasks, and documentation generation. Gemini has a 1M token context window and built-in Google Search grounding.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
## What is Gemini CLI Gemini CLI is Google's agentic coding tool for the terminal. It leverages Gemini models with up to 1M tokens of context, built-in Google Search grounding, and can read/edit files, run shell commands, and fetch web content. ## When to delegate to Gemini CLI Use Gemini CLI when you need to: - Analyze very large codebases or files that exceed your context window - Research external APIs, libraries, or frameworks using Google Search grounding - Generate documentation from large amounts of source code - Perform context engineering tasks that benefit from massive context windows - Cross-reference multiple large files simultaneously - Understand complex dependency trees across an entire monorepo ## How to invoke Gemini CLI ### Non-interactive (recommended for delegation) Use the `-p` flag for non-interactive execution. The agent will run the prompt, produce output, and exit: ```bash gemini -p "YOUR PROMPT HERE" ``` ### With specific model ```bash gemini -p "YOUR PROMPT" -m gemini-2.5-pro ``` ### With all project files in context ```bash gemini -p "YOUR PROMPT" -a ``` ### Auto-approve all tool calls (use with caution) ```bash gemini -p "YOUR PROMPT" --yolo ``` ## Important notes - Gemini CLI requires authentication via Google account (free tier: 60 req/min, 1000/day) or `GOOGLE_API_KEY` env var - The `-p` flag is essential for non-interactive use - without it, Gemini enters interactive mode - Output from `-p` mode goes to stdout and can be captured - Gemini CLI creates a `GEMINI.md` project config file (similar to AGENTS.md) - For sandboxed execution, use `-s` flag (requires Docker) ## Delegation pattern When delegating to Gemini CLI, structure your bash command like this: ```bash RESULT=$(gemini -p "Analyze the following codebase concern: [SPECIFIC TASK]. Focus on [SPECIFIC ASPECTS]. Return your analysis as structured markdown.") ``` Then use the captured output to continue your work.
Related Skills
sdlc-orchestrator
Orchestrate multiple coding agent CLIs as sub-agents. Load this skill to understand which coding agent CLI to delegate tasks to based on task type (front-end, context engineering, GitHub workflows, refactoring, pair programming, rapid prototyping).
kimi-cli
Delegate tasks to Kimi CLI for front-end development, full-stack coding, and long-context code understanding. Powered by Moonshot AI's Kimi K2 model with extended context support.
cursor-cli
Delegate tasks to Cursor CLI (agent command) for IDE-grade coding in the terminal, cloud agent handoff for long-running tasks, and rapid prototyping with multi-model support.
copilot-cli
Delegate tasks to GitHub Copilot CLI for GitHub workflow automation, PR creation and review, issue management, and repository operations. Deeply integrated with GitHub's ecosystem.
claude-code
Delegate tasks to Claude Code for complex refactoring, architecture-level changes, multi-file edits, in-depth code review, and debugging. Excels at deep reasoning about code structure.
aider
Delegate tasks to Aider for AI pair programming with auto-git-commits, model-agnostic LLM support, and architect mode for complex changes. Works with any LLM provider.
nerdzao-elite-gemini-high
Modo Elite Coder + UX Pixel-Perfect otimizado especificamente para Gemini 3.1 Pro High. Workflow completo com foco em qualidade máxima e eficiência de tokens.
gemini-api-integration
Use when integrating Google Gemini API into projects. Covers model selection, multimodal inputs, streaming, function calling, and production best practices.
gemini-api-dev
The Gemini API provides access to Google's most advanced AI models. Key capabilities include:
gemini
Use when the user asks to run Gemini CLI for code review, plan review, or big context (>200k) processing. Ideal for comprehensive analysis requiring large context windows. Uses Gemini 3 Pro by default for state-of-the-art reasoning and coding.
ask-gemini
Ask Gemini via local CLI and capture a reusable artifact
gemini-imagegen
This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.