gemini-peer-review
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'.
npx skills add majiayu000/claude-skill-registry --skill gemini-peer-review-jezweb-claude-skills-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gemini Peer Review Consult Gemini as a coding peer for a second opinion on code quality, architecture decisions, debugging, or security reviews. ## Setup **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. ```bash export GEMINI_API_KEY="your-key-here" ``` ## Workflow 1. **Determine mode** from user request (review, architect, debug, security, quick) 2. **Read target files** into context 3. **Build prompt** using the AI-to-AI template from [references/prompt-templates.md](references/prompt-templates.md) 4. **Write prompt to file** at `.claude/artifacts/gemini-prompt.txt` (avoids shell escaping issues) 5. **Call the API** — generate a Python script that: - Reads `GEMINI_API_KEY` from environment - Reads the prompt from `.claude/artifacts/gemini-prompt.txt` - POSTs to `https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent` - Payload: `{"contents": [{"parts": [{"text": prompt}]}], "generationConfig": {"temperature": 0.3, "maxOutputTokens": 8192}}` - Extracts text from `candidates[0].content.parts[0].text` - Prints result to stdout Write the script to `.claude/scripts/gemini-re
- Setup
- Workflow
- Modes
- Code Review
- Architecture Advice
- Debugging Help
- Security Scan
- Quick Question
- Model Selection
- When to Use
- Prompt Construction
- Reference Files
export GEMINI_API_KEY="your-key-here"
What does the gemini-peer-review skill do?
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'.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-peer-review-jezweb-claude-skills-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
