Dual-AI engineering loop orchestrating Claude Code (planning/implementation) and Gemini (validation/review). Use when (1) complex feature development requiring validation, (2) high-quality code with security/performance concerns, (3) large-scale refactoring, (4) user requests gemini-claude loop or dual-AI review. Do NOT use for simple one-off fixes or prototypes.
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 skills add creator-hian/gemini-claude-loop下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer