gemini
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user wants to invoke Google Gemini CLI for complex reasoning tasks, research, and AI assistance. Trigger phrases include…
Об этом скилле
Gemini: Google AI Assistant for Claude Code
DEFAULT MODEL: Gemini 3.1 Pro
The default model for ALL Gemini invocations is gemini-3.1-pro-preview.
- Always use
gemini-3.1-pro-previewunless user explicitly requests another model - This is the highest reasoning model available (released Feb 19, 2026)
- CLI default (without
-m) isgemini-3-flash-preview(fast but less capable) - Fallback chain:
gemini-3.1-pro-preview→gemini-3-pro-preview→gemini-2.5-flash
# Default invocation - ALWAYS use gemini-3.1-pro-preview
gemini -m gemini-3.1-pro-preview "your prompt here"
CRITICAL: Headless Mode with -p Flag
REQUIRED: Use -p/--prompt flag for non-interactive (headless) execution in Claude Code.
As of Gemini CLI v0.29.0+, positional prompts default to interactive mode. The -p flag is the correct way to run in non-interactive (headless) mode.
Examples:
gemini -m gemini-3.1-pro-preview -p "prompt"(CORRECT - headless mode)gemini -m gemini-3.1-pro-preview "prompt"(also works when piped, but-pis more explicit)gemini -r latest(session resume)
Why? As of v0.29.0, the CLI description states: "Defaults to interactive mode. Use -p/--prompt for non-interactive (headless) mode." The -p flag is no longer deprecated.
IMPORTANT: Preview Features & OAuth Free Tier
For OAuth free tier users in headless mode:
When previewFeatures: true in ~/.gemini/settings.json, the CLI routes ALL requests to Gemini 3.1 Pro (even -m gemini-2.5-pro). Since free tier doesn't have Gemini 3 access, this causes 404 errors.
Solution: Disable preview features for reliable headless operation:
// ~/.gemini/settings.json
{
"general": {
"previewFeatures": false
}
}
Plugin Behavior: This skill automatically falls back to gemini-2.5-flash when encountering 404 errors. Flash always works with OAuth free tier.
Trigger Examples
This skill activates when users say phrases like:
- "Use gemini to research this topic"
- "Ask gemini about this design pattern"
- "Run gemini on this analysis"
- "Call gemini for help with this problem"
- "I need Google AI for this task"
- "Get Gemini's reasoning on this"
- "Continue with gemini" or "Resume the gemini session"
- "Gemini, help me with..." or simply "Gemini"
- "Use Gemini 3" or "Use Gemini 2.5"
When to Use This Skill
This skill should be invoked when:
- User explicitly mentions "Gemini" or requests Gemini assistance
- User needs Google's AI models for reasoning, research, or analysis
- User requests complex problem-solving or architectural design
- User needs research capabilities with web search integration
- User wants to continue a previous Gemini conversation
- User needs an alternative to Codex or Claude for specific tasks
How It Works
Detecting New Gemini Requests
When a user makes a request, default to read-only mode (default approval) unless they explicitly request file editing:
Use gemini-3.1-pro-preview for ALL tasks with default approval mode:
- Architecture, design, reviews, research
- Explanations, analysis, problem-solving
- Code analysis and understanding
- ANY task where user does NOT explicitly request file editing
Approval Mode Selection:
default(default): For all tasks - prompts for approval on edits (safe)auto_edit: ONLY when user explicitly requests file editingplan: Read-only mode - no file modifications allowedyolo: When user explicitly wants full auto-approval (use with caution)
⚠️ Explicit Edit Request: If the user explicitly asks to "edit files", "modify code", "write changes", or "make edits" - ONLY then use --approval-mode auto_edit to enable file modifications.
Fallback Chain (if primary unavailable):
gemini-3.1-pro-preview(primary - highest capability)gemini-2.5-pro(stable general reasoning)gemini-2.5-flash(fast, always available)
Example requests: "Design a distributed cache", "Explain CQRS pattern", "Analyze this code"
Bash CLI Command Structure
IMPORTANT: Gemini CLI works differently from Codex - no exec subcommand needed. Use positional prompts directly.
Default Command (Read-Only) - Use for ALL Tasks
gemini -m gemini-3.1-pro-preview \
"Design a microservices architecture for e-commerce"
Explicit Edit Request Only - When User Asks to Edit Files
gemini -m gemini-3.1-pro-preview \
--approval-mode auto_edit \
"Edit this file to refactor the function"
For Session Continuation
# Resume most recent session
gemini -r latest
# Resume specific session by index
gemini -r 3
# Resume and add new prompt
gemini -r latest "Continue our discussion about caching strategies"
Why positional prompts?
- Simpler, more direct syntax
- Future-proof (recommended by Gemini CLI)
- Works in non-TTY environments (like Claude Code's bash)
- No separate
execcommand need
Установить gemini в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gemini?
This skill should be used when the user wants to invoke Google Gemini CLI for complex reasoning tasks, research, and AI assistance. Trigger phrases include "use gemini", "ask gemini", "run gemini", "call gemini", "gemini cli", "Google AI", "Gemini reasoning", or when users request Google's AI models, need advanced reasoning capabilities, research with web search, or want to continue previous Gemini conversations. Automatically triggers on Gemini-related requests and supports session continuation for iterative development.
Как установить скилл gemini?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gemini запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub