handoff-gemini
npx machina-cli add skill claude-world/director-mode-lite/handoff-gemini --openclawHandoff 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
npm install -g @anthropic/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
# Analyze large file
gemini "Summarize components in codebase" -f src/**/*.ts
# Research task
gemini "Research best practices for [topic]"
# Document analysis
gemini "Extract key points" -f docs/spec.md
3. Provide Instructions
- Why Gemini is suitable
- Expected output
- How to continue workflow
Example
## Task: Research API Best Practices
**Command:**
gemini "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
Source
git clone https://github.com/claude-world/director-mode-lite/blob/main/skills/handoff-gemini/SKILL.mdView on GitHub Overview
This skill lets you delegate heavy tasks to the Google Gemini CLI from Claude to preserve Claude's context for long-running work. By offloading large analyses, multimodal tasks, and research to Gemini, Claude stays focused on workflow while Gemini processes the heavy lifting.
How This Skill Works
Prerequisites: npm install -g @anthropic/gemini-cli. Then follow the Handoff Process: 1) Prepare Context with Task for Gemini, Files to analyze, and Output format. 2) Generate Command by selecting appropriate Gemini CLI invocations (e.g., gemini "Summarize components in codebase" -f src/**/*.ts or gemini "Research best practices for [topic]"). 3) Provide Instructions detailing why Gemini is suitable, the expected output, and how to continue the workflow.
When to Use It
- Long document analysis
- Multimodal tasks
- Research and summarization
- Large file comprehension
- Offload token-heavy research to preserve Claude context
Quick Start
- Step 1: Prepare Context: Task for Gemini, Files to analyze, and Output format
- Step 2: Generate Command: Use a Gemini CLI invocation like gemini "Summarize components in codebase" -f src/**/*.ts or gemini "Research best practices for [topic]"
- Step 3: Provide Instructions: Explain why Gemini is suitable, specify the expected output, and define how to continue the workflow
Best Practices
- Define a precise Task Goal with the desired outcome
- List relevant Files and the required Output format
- Choose a Gemini command that matches the task (file-focused or research-oriented)
- Specify the expected output and acceptance criteria
- Review Gemini results in Claude and plan the next workflow steps
Example Use Cases
- Task: Research API Best Practices. Command: gemini "Research REST API versioning strategies. Summarize pros/cons." After: Review research, share relevant findings, and implement chosen strategy.
- Task: Analyze large codebase. Command: gemini "Summarize components in codebase" -f src/**/*.ts. After: Review summary and extract architecture implications.
- Task: Document analysis. Command: gemini "Extract key points" -f docs/spec.md. After: Compile a concise key-points summary for stakeholders.
- Task: Research best practices for a topic. Command: gemini "Research best practices for [topic]". After: Review findings and synthesize recommendations.
- Task: Large-scale architecture review. Command: gemini "Summarize architecture decisions for [project]". After: Share findings and outline recommended next steps.