By madciapka
Use Gemini CLI from Claude Code to delegate tasks, run code reviews, and get adversarial design feedback.
Run a Gemini review that challenges the implementation approach and design choices
Cancel an active background Gemini job in this repository
Delegate investigation, fix, or research to the Gemini rescue subagent
Show the stored final output for a finished Gemini job in this repository
Run a Gemini code review against local git state
Internal helper contract for calling the gemini-companion runtime from Claude Code
Internal guidance for composing effective Gemini prompts for coding, review, diagnosis, and research tasks inside the Gemini Claude Code plugin
Internal guidance for presenting Gemini helper output back to the user
Uses power tools
Uses Bash, Write, or Edit tools
No model invocation
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Executes directly as bash, bypassing the AI model
Executes directly as bash, bypassing the AI model
Runs pre-commands
Contains inline bash commands via ! syntax
Runs pre-commands
Contains inline bash commands via ! syntax
The Codex plugin showed that giving Claude Code a second brain to delegate to is genuinely useful — code reviews, rescue debugging, adversarial design challenges. Gemini is just as capable in that role, and sometimes better depending on the task. So why not have both?
This plugin brings Google's Gemini CLI into Claude Code as a peer. Same architecture as the Codex plugin, same patterns — different model behind the curtain. Sharing is caring.
And I could not help myself and sent Gemini to do Codex for Gemini so we can close the circle ... https://github.com/madciapka/codex-gemini-skill :)
| Command | Description |
|---|---|
/gemini:setup | Check if Gemini CLI is installed and authenticated |
/gemini:rescue | Delegate investigation, debugging, or implementation to Gemini |
/gemini:review | Run a code review against local git changes |
/gemini:adversarial-review | Challenge your design choices and assumptions |
/gemini:status | Show active and recent Gemini jobs |
/gemini:result | Show output from a completed job |
/gemini:cancel | Cancel a running background job |
# Install Gemini CLI (pick one)
npm install -g @google/gemini-cli
brew install gemini-cli
# Authenticate (run interactively once)
gemini
Option A: Install via marketplace (recommended)
From inside a Claude Code session, run:
/plugin marketplace add madciapka/gemini-claude-plugin
/plugin install gemini@google-gemini
/reload-plugins
/gemini:setup
Option B: Load directly (for development/testing)
git clone https://github.com/madciapka/gemini-claude-plugin.git
claude --plugin-dir ./gemini-claude-plugin/plugins/gemini
Use /reload-plugins inside Claude Code to pick up changes without restarting.
/gemini:rescue fix the flaky test in src/auth.test.ts
Gemini gets full access to your working directory and can read files, run commands, and make edits.
/gemini:review
Reviews your current working tree changes (staged + unstaged). For branch reviews:
/gemini:review --base main
/gemini:adversarial-review
/gemini:adversarial-review --base main focus on auth and data handling
Challenges your implementation approach — looks for violated invariants, missing failure paths, race conditions, and assumptions that break under stress.
For long-running tasks, use --background:
/gemini:rescue --background refactor the payment module to use the new API
/gemini:status
/gemini:result
| Flag | Description |
|---|---|
--background | Run in the background |
--wait | Run in the foreground (default) |
--model <name> | Override the Gemini model |
--yolo | Auto-accept all Gemini actions |
--sandbox | Run Gemini in sandbox mode |
--base <ref> | Set the base branch for reviews |
--scope <mode> | Review scope: auto, working-tree, or branch |
.claude-plugin/marketplace.json Marketplace catalog
plugins/gemini/
.claude-plugin/plugin.json Plugin metadata
agents/gemini-rescue.md Thin forwarder subagent
commands/*.md User-invocable slash commands
skills/*/SKILL.md Internal skills (prompting, runtime, result handling)
scripts/gemini-companion.mjs Main Node.js runtime
scripts/lib/*.mjs Library modules (CLI wrapper, git, state, rendering)
prompts/*.md Review prompt templates
The plugin follows a companion script pattern:
/gemini:* commands to markdown-defined skillsgemini-rescue subagent forwards tasks to the companion scriptgemini-companion.mjs spawns the Gemini CLI in headless mode (gemini -p "..." -o text)Background jobs are tracked via state files in .gemini-companion/ within the workspace.
The plugin ships with two review prompt templates:
prompts/review.md) — finds bugs, security issues, and quality problemsprompts/adversarial-review.md) — actively tries to break confidence in the change, focusing on failure modes, trust boundaries, and rollback safetyBoth enforce grounding rules to prevent hallucinated findings.
npx claudepluginhub madciapka/gemini-claude-plugin --plugin geminiIntelligent draw.io diagramming plugin with AI-powered diagram generation, multi-platform embedding (GitHub, Confluence, Azure DevOps, Notion, Teams, Harness), conditional formatting, live data binding, and MCP server integration for programmatic diagram creation and management.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
TypeScript/JavaScript full-stack development with NestJS, React, and React Native
Complete AI coding workflow system. Self-correcting memory + persistent FTS5-indexed research wikis + auto-research loop + multi-LLM council on a single SQLite store. 33 skills, 8 agents, 22 commands, 37 hook scripts across 24 events. Cross-agent via SkillKit.
Open-source, local-first Claude Code plugin for token reduction, context compression, and cost optimization using hybrid RAG retrieval (BM25 + vector search), reranking, AST-aware chunking, and compact context packets.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.