Dual code review: gets independent reviews from both Claude and Gemini API, then synthesizes agreements, unique findings, and a verdict. Use when users say "gemini review", "dual review", or want a second-perspective code review. Requires GEMINI_API_KEY environment variable to be set.
From kw-pluginnpx claudepluginhub kwiggen/claude-code-plugin --plugin kw-pluginThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
test -n "$GEMINI_API_KEY" via Bash to verify
the API key is configured. If it fails, inform the user and fall back to a
Claude-only review using the code-reviewer skill.1 → Uncommitted changes (git diff + git diff --cached)2 → Last local commit (git show HEAD)3 → Unpushed local commits (git diff @{upstream}..HEAD)PR# → GitHub PR diff (gh pr diff <number>)Pipe the diff to Gemini via Bash:
echo "<diff content>" | node {pluginDir}/dist/gemini/cli.js --prompt "Review this diff for:
1. Logic bugs, incorrect assumptions, unhandled edge cases
2. Security vulnerabilities (injection, auth, data exposure)
3. Performance issues (N+1 queries, unnecessary allocations)
4. Maintainability concerns (naming, complexity, duplication)
5. Missing test coverage
Format your response as:
## Summary
Brief overview of change quality.
## Findings
- **Critical** — Must fix (security, data loss, crashes)
- **Major** — Should fix (quality/maintainability impact)
- **Minor** — Nice to fix (lower priority improvements)
Include file:line references where possible.
Be specific and actionable. Do NOT flag pre-existing issues." --system "You are a senior code reviewer. Be thorough, specific, and actionable."
Capture Gemini's full response from the JSON output's output field.
Independently review the same diff using the code-reviewer skill evaluation criteria. Do NOT look at Gemini's output first — form your own assessment.
Compare both reviews and present a unified report:
Scope: [description of what was reviewed]
[Claude's independent findings using code-reviewer format]
[Gemini's response, formatted cleanly]
Findings both reviewers identified (highest confidence).
Findings only Claude caught.
Findings only Gemini caught.
Overall assessment combining both perspectives. Note where reviewers disagree and which assessment seems more accurate based on the code.
If Gemini API key is not configured or the call fails:
Use gemini-reviewer for structured dual code reviews with synthesis (agreements, unique findings, verdict). Use gemini-advisor (/ask-gemini) for general second opinions on any topic, file, or question — not limited to code review.
Before presenting a dual review, verify:
If unsure about Gemini CLI flags, run:
node {pluginDir}/dist/gemini/cli.js --help