/handoff-gemini
Delegate long-context analysis, research, and large-document summarization to Google Gemini CLI (1M-token context) via non-interactive `gemini -p`, preserving Claude context. Use when the user says 'use gemini'/'hand off to gemini' or a task needs 100K+ tokens of context.
$ npx -y skills add claude-world/director-mode-lite --skill handoff-gemini --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/handoff-gemini
Context preview
The summary Claude sees to decide when to auto-load this skill.
Delegate long-context analysis, research, and large-document summarization to Google Gemini CLI (1M-token context) via non-interactive `gemini -p`, preserving Claude context. Use when the user says 'use gemini'/'hand off to gemini' or a task needs 100K+ tokens of context.
SKILL.md
handoff-gemini.SKILL.mdname: handoff-gemini
description: Delegate long-context analysis, research, and large-document summarization to Google Gemini CLI (1M-token context) via non-interactive `gemini -p`, preserving Claude context. Use when the user says 'use gemini'/'hand off to gemini' or a task needs 100K+ tokens of context.
user-invocable: true
Handoff to Gemini CLI
Delegate tasks to Google Gemini CLI to save Claude context.
---
When to Use Gemini
| Use Gemini For | Keep in Claude | |----------------|----------------| | Long document analysis | Complex coding | | Multimodal tasks | Architecture decisions | | Research and summarization | Multi-step workflows | | Large file comprehension | Problem analysis |
---
Prerequisites
# Install Gemini CLI (Google)
npm install -g @google/gemini-cli
# Or via: https://github.com/google-gemini/gemini-cli
---
Handoff Process
1. Prepare Context
## Task for Gemini
**Goal**: [What needs to be done]
**Files**: [Which files to analyze]
**Output**: [What format to return]
2. Generate Command
Pass the prompt with `-p` (non-interactive). Reference files or directories inline with `@<path>`, or pipe content via stdin. There is no `-f` flag.
# Analyze a directory (@ reads it recursively)
gemini -p "Summarize the components in @src/"
# Research task (no file context)
gemini -p "Research best practices for [topic]"
# Document analysis (single file via @)
gemini -p "Extract key points from @docs/spec.md"
# Large or generated context via stdin
cat docs/spec.md | gemini -p "Extract key points"
> **Note**: A `src/**/*.ts`-style glob only expands if the shell has globstar enabled (`shopt -s globstar` in bash). Prefer a directory reference like `@src/`, which Gemini reads recursively without relying on shell globbing.
3. Provide Instructions
- Why Gemini is suitable
- Expected output
- How to continue workflow
---
Example
## Task: Research API Best Practices
**Command:**
gemini -p "Research REST API versioning strategies. Summarize pros/cons."
**After:**
- Review research
- Share relevant findings
- Implement chosen strategy
---
Benefits
- **Token Savings**: Research tasks don't consume Claude context
- **Long Context**: Handles very large documents
- **Specialization**: Use each AI's strengths
Read more
name: handoff-gemini description: Delegate long-context analysis, research, and large-document summarization to Google Gemini CLI (1M-token context) via non-interactive `gemini -p`, preserving Claude context. Use when the user says 'use gemini'/'hand off to gemini' or a task needs 100K+ tokens of context. user-invocable: true
Handoff to Gemini CLI
Delegate tasks to Google Gemini CLI to save Claude context.
---
When to Use Gemini
| Use Gemini For | Keep in Claude | |----------------|----------------| | Long document analysis | Complex coding | | Multimodal tasks | Architecture decisions | | Research and summarization | Multi-step workflows | | Large file comprehension | Problem analysis |
---
Prerequisites
# Install Gemini CLI (Google) npm install -g @google/gemini-cli # Or via: https://github.com/google-gemini/gemini-cli
---
Handoff Process
1. Prepare Context
## Task for Gemini **Goal**: [What needs to be done] **Files**: [Which files to analyze] **Output**: [What format to return]
2. Generate Command
Pass the prompt with `-p` (non-interactive). Reference files or directories inline with `@<path>`, or pipe content via stdin. There is no `-f` flag.
# Analyze a directory (@ reads it recursively) gemini -p "Summarize the components in @src/" # Research task (no file context) gemini -p "Research best practices for [topic]" # Document analysis (single file via @) gemini -p "Extract key points from @docs/spec.md" # Large or generated context via stdin cat docs/spec.md | gemini -p "Extract key points"
> **Note**: A `src/**/*.ts`-style glob only expands if the shell has globstar enabled (`shopt -s globstar` in bash). Prefer a directory reference like `@src/`, which Gemini reads recursively without relying on shell globbing.
3. Provide Instructions
- Why Gemini is suitable
- Expected output
- How to continue workflow
---
Example
## Task: Research API Best Practices **Command:** gemini -p "Research REST API versioning strategies. Summarize pros/cons." **After:** - Review research - Share relevant findings - Implement chosen strategy
---
Benefits
- **Token Savings**: Research tasks don't consume Claude context
- **Long Context**: Handles very large documents
- **Specialization**: Use each AI's strengths
Use Claude Code like a Director, not a Programmer. MIT toolkit with Auto-Loop, guided setup, 27 commands, 14 agents, and 32 skills.
Other skills on director-mode-lite.
- /changelog-observer
Track development session events in a daily markdown changelog, including file changes, test results, and key decisions.
Open skill - /agent-check
Validate custom agent file format and structure. Use after creating or editing an agent, before committing agent changes, or when an agent fails to load.
Open skill - /agent-template
Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
Open skill - /agents
List all available agents (core, expert, self-evolving). Use when the user asks what agents are available or runs /agents.
Open skill - /auto-loop
TDD-based autonomous development loop with checkpoint recovery and observability changelog
Open skill - /changelog
View and manage the runtime changelog for observability
Open skill

