From gemini-plugin
Orchestrates Claude-Gemini engineering loop: Claude plans/implements code, Gemini validates/reviews. Use for complex features needing validation, security/performance code, large refactors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gemini-plugin:gemini-claude-loopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
Plan (Claude) → Validate (Gemini) → Implement (Claude) → Review (Gemini) → Fix → Re-validate → Done
| Role | Responsibility |
|---|---|
| Claude | Architecture, planning, code implementation (Edit/Write/Read) |
| Gemini | Validation, code review, quality assurance |
Non-TTY environment: See gemini-cli SKILL for CLI fundamentals. Key rule: Always use
gemini -p "prompt"(headless mode required)
mkdir -p .gemini-loop
Add .gemini-loop/ to your project's .gitignore to avoid committing session artifacts.
AskUserQuestion:
.gemini-loop/plan.mdAsk user for role mode, then execute with timeout: 600000:
gemini -m gemini-3-flash-preview -p "Review this plan: $(cat .gemini-loop/plan.md) ..."
Full prompts by role mode: See commands.md
Save result: > .gemini-loop/phase2_validation.md
If issues found:
AskUserQuestion: "Revise and re-validate, or proceed?".gemini-loop/implementation.mdExecute with timeout: 600000:
gemini -m gemini-3-flash-preview --include-directories ./src -p "Review: $(cat .gemini-loop/plan.md) $(cat .gemini-loop/implementation.md) ..."
Full prompts by role mode: See commands.md
Save result: > .gemini-loop/phase5_review.md
Claude response by severity:
.gemini-loop/phase5_review.md.gemini-loop/ directory for all context files.gemini-loop/iterations.md for traceability.gemini-loop/
├── plan.md # Implementation plan
├── phase2_validation.md # Plan validation result
├── implementation.md # Implementation summary
├── phase5_review.md # Code review result
└── iterations.md # Iteration history
Full error reference: See gemini-cli SKILL for Gemini CLI error details.
Error Recovery Flow:
AskUserQuestion-p flag is used (headless mode)gemini auth statusgemini-3-flash-previewAlways use timeout: 600000 (10 min) for all Gemini commands.
gemini -p in Claude Code environment (non-TTY, headless mode).gemini-loop/ directory at starttimeout: 600000)npx claudepluginhub creator-hian/claude-code-plugins --plugin gemini-pluginDelegates coding tasks to Gemini CLI while Claude acts as architect: plans, issues bash commands, reviews files with Read/Grep/Glob, iterates fixes. Use for 'manage gemini', 'architect mode', or delegating implementation.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.