Get a second opinion from Gemini on code, architecture, debugging, or security. Uses direct Gemini API calls — no CLI dependencies. Trigger with 'ask gemini', 'gemini review', 'second opinion', 'peer review', or 'consult gemini'.
Consults Gemini for peer review on code, architecture, debugging, or security analysis.
npx claudepluginhub jezweb/claude-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/prompt-templates.mdConsult Gemini as a coding peer for a second opinion on code quality, architecture decisions, debugging, or security reviews.
API Key: Set GEMINI_API_KEY as an environment variable. Get a key from https://aistudio.google.com/apikey if you don't have one.
export GEMINI_API_KEY="your-key-here"
Determine mode from user request (review, architect, debug, security, quick)
Read target files into context
Build prompt using the AI-to-AI template from references/prompt-templates.md
Write prompt to file at .claude/artifacts/gemini-prompt.txt (avoids shell escaping issues)
Call the API — generate a Python script that:
GEMINI_API_KEY from environment.claude/artifacts/gemini-prompt.txthttps://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent{"contents": [{"parts": [{"text": prompt}]}], "generationConfig": {"temperature": 0.3, "maxOutputTokens": 8192}}candidates[0].content.parts[0].textWrite the script to .claude/scripts/gemini-review.py and run it.
Synthesize — present Gemini's findings, add your own perspective (agree/disagree), let the user decide what to implement
Review specific files for bugs, logic errors, security vulnerabilities, performance issues, and best practice violations.
Read the target files, build a prompt using the Code Review template, call with gemini-2.5-flash.
Get feedback on design decisions with trade-off analysis. Include project context (CLAUDE.md, relevant source files).
Read project context, build a prompt using the Architecture template, call with gemini-2.5-pro.
Analyse errors when stuck after 2+ failed fix attempts. Gemini sees the code fresh without your debugging context bias.
Read the problematic files, build a prompt using the Debug template (include error message and previous attempts), call with gemini-2.5-flash.
Scan code for security vulnerabilities (injection, auth bypass, data exposure).
Read the target directory's source files, build a prompt using the Security template, call with gemini-2.5-pro.
Fast question without file context. Build prompt inline, write to file, call with gemini-2.5-flash.
| Mode | Model | Why |
|---|---|---|
| review, debug, quick | gemini-2.5-flash | Fast, good for straightforward analysis |
| architect, security-scan | gemini-2.5-pro | Better reasoning for complex trade-offs |
Check current model IDs if errors occur — they change frequently:
curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import sys,json; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'gemini' in m['name']]"
Good use cases:
Avoid using for:
Critical: Always use the AI-to-AI prompting format. Write the full prompt to a file — never pass code inline via bash arguments (shell escaping will break it).
When building the prompt:
--- filename --- separators.claude/artifacts/gemini-prompt.txt| When | Read |
|---|---|
| Building prompts for any mode | references/prompt-templates.md |
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.