From dev-plugin
Collaborate with Google Gemini for research, code review, feedback, validation, or second opinions
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-plugin:ask-geminiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Collaborate with Google Gemini for research, code review, feedback, validation, or second opinions.
Collaborate with Google Gemini for research, code review, feedback, validation, or second opinions.
This skill enables model collaboration where Claude can delegate work to Gemini to get:
Use this skill when:
The user will invoke this with:
/ask-gemini "prompt" "context"
Or from a subagent:
Skill: ask-gemini
Args: prompt="Review this code" context="src/file.js"
Required:
prompt - The question or task for Gemini (what you want Gemini to do)Optional:
context - Files, code, or additional information for Gemini to consider
src/parser.js)specs/)Extract the prompt and context from user input:
If context includes file paths:
Read tool to read the filesGlob to find relevant filesCreate a rich prompt that includes:
Example Enhanced Prompt:
[User's Question]
Review this specification for completeness and edge cases.
[Context]
File: specs/001-code-wiki/spec.md
```markdown
[file contents here]
[Additional Context]
[Specific Focus] Please identify:
### Step 4: Call Gemini via CLI
Use the Gemini CLI directly via Bash tool:
```bash
# Create a temporary file with the enhanced prompt
echo "[enhanced prompt with context]" > /tmp/gemini-prompt.txt
# Call Gemini CLI
gemini --model gemini-3-pro-preview < /tmp/gemini-prompt.txt
# Or with streaming:
gemini --model gemini-3-pro-preview --stream < /tmp/gemini-prompt.txt
Alternative: Direct pipe
echo "[enhanced prompt]" | gemini --model gemini-3-pro-preview
Model Selection:
gemini-3-pro-preview (most capable, deep reasoning)gemini-2.5-flash (ultra-fast)gemini-3-pro-previewgemini-2.0-flash (audio/video support)CLI Flags:
--model - Specify Gemini model--stream - Stream response (optional)--temperature - Control randomness (0-1)--json - Output JSON format (if needed)Format output as:
## Gemini's Analysis
[Gemini's response, formatted nicely]
---
## Summary (if response is long)
**Key Points:**
- [bullet point 1]
- [bullet point 2]
- [bullet point 3]
**Recommendations:**
- [action item 1]
- [action item 2]
---
## Next Steps
Would you like me to:
1. [Specific action based on Gemini's feedback]
2. [Another specific action]
3. Ask Gemini a follow-up question
Based on Gemini's response, offer to:
Input:
/ask-gemini "Review for bugs and security issues" src/parser.js
What Claude Does:
src/parser.jsInput:
/ask-gemini "Identify missing requirements and edge cases" specs/spec.md
What Claude Does:
specs/spec.mdInput:
/ask-gemini "Compare REST vs GraphQL for our documentation API"
What Claude Does:
Input:
/ask-gemini "Validate this research and suggest additional sources" research-notes.md
What Claude Does:
For follow-up questions, Claude can maintain context by:
User: /ask-gemini "What about performance?"
Claude: [Includes previous Q&A context in new prompt to Gemini]
/ask-gemini "Compare these implementations" src/v1.js src/v2.js
/ask-gemini "Review architecture patterns" src/
If Gemini CLI fails:
which gemini or gemini --version)GOOGLE_API_KEY or GEMINI_API_KEY)gemini-3-pro-previewSkill toolAlways return structured output:
Remember: This skill enables model collaboration for better outcomes. Use it when a second perspective adds value!
npx claudepluginhub rsolipuram/claude-code-plugins --plugin dev-pluginConsults Google's Gemini model for second opinions on coding tasks like debugging tricky issues, evaluating architecture trade-offs, reviewing code, and brainstorming alternatives.
Use when the user asks to run Gemini CLI (gemini, gemini resume) or references Google Gemini for code analysis, refactoring, or automated editing
Invokes OpenAI Codex and Google Gemini CLIs via Bash for second opinions, code reviews, and alternative analysis. Useful when users request external AI verification or explicitly say 'ask codex' or 'ask gemini'.