Delegate QAQC and review tasks to Google Gemini CLI using markdown file handoff pattern. Write review request to REVIEW.md, Gemini analyzes, outputs findings to FINDINGS.md. Use for code review, security audits, documentation review, large context analysis. Triggers: gemini, gemini cli, delegate to gemini, gemini subagent, code review, QAQC, quality check, security audit, documentation review, large context, second opinion, architecture review, gemini-3-pro-preview, gemini-3-flash-preview Prerequisites: Gemini CLI authenticated (gemini login or GEMINI_API_KEY) Models: gemini-3-pro-preview (default), gemini-3-flash-preview (large context)
Legacy Claude-only orchestration skill. This is not part of the standard production harness policy. It is excluded from the shared multi-harness corpus and should be used only when the user explicitly requests Gemini.
When the user explicitly requests Gemini, delegate the requested review or analysis task to Gemini CLI using markdown files for input and output. Write review criteria to REVIEW.md, invoke Gemini, then read FINDINGS.md for results.
Claude Code Gemini CLI
| |
+-- Write REVIEW.md ----------------+
| (code + review criteria) |
| |
+-- Execute: gemini -y "Read |
| REVIEW.md, analyze, write |
| findings to FINDINGS.md" |
| |
| +-- Reads REVIEW.md
| +-- Analyzes content
| +-- Writes FINDINGS.md
| |
+-- Read FINDINGS.md <--------------+
| (analysis + recommendations) |
v v
Benefits:
| Model | Use Case | Status |
|-------|----------|--------|
| gemini-3-pro-preview | Default. Strong reasoning | CLI default |
| gemini-3-flash-preview | Large context, fast analysis | For big codebases |
Recommendation: Use default gemini-3-pro-preview for most tasks. Switch to gemini-3-flash-preview for very large context (>100K tokens) via -m flag.
Note: If you encounter 429 capacity errors with gemini-3-pro-preview, retry or wait briefly.
cd /path/to/project && gemini -y "Read REVIEW.md in the current directory. Follow the review criteria. Write all findings to FINDINGS.md."
cd /path/to/project && gemini -y -m gemini-3-flash-preview "Read REVIEW.md, analyze per criteria, write findings to FINDINGS.md"
gemini -r <session_id> "Read REVIEW.md for updated criteria, append to FINDINGS.md"
| Flag | Purpose |
|------|---------|
| -y | YOLO mode - auto-approve all actions |
| -m <model> | Model: gemini-3-pro-preview, gemini-3-flash-preview |
| -r <id> | Resume session by ID |
| --output-format json | JSON output for parsing |
| --list-sessions | List available sessions |
# Review Request: [Brief Title]
## Objective
[What kind of review/analysis is needed]
## Review Criteria
Rate each finding: CRITICAL | HIGH | MEDIUM | LOW
### Security
- SQL injection vulnerabilities
- XSS risks
- Authentication/authorization issues
- Hardcoded secrets
### Reliability
- Error handling gaps
- Edge cases not covered
- Race conditions
- Resource leaks
### Performance
- N+1 query patterns
- Unnecessary allocations
- Missing caching opportunities
### Maintainability
- Code clarity
- Naming conventions
- Documentation gaps
## Code to Review
### File: src/api/users.ts
```typescript
// Paste code here or reference file
// Paste code here
[Any relevant background, constraints, or requirements]
Write to FINDINGS.md with:
## Findings Template (FINDINGS.md)
Instruct Gemini to produce:
```markdown
# Review Findings: [Title]
## Summary
[Brief overview of review results]
## Findings
| Severity | Location | Issue | Recommendation |
|----------|----------|-------|----------------|
| CRITICAL | users.ts:45 | SQL injection via unsanitized input | Use parameterized queries |
| HIGH | auth.ts:23 | Missing rate limiting on login | Add rate limiter middleware |
| MEDIUM | users.ts:78 | No input validation | Add schema validation |
| LOW | auth.ts:12 | Magic number | Extract to named constant |
## Detailed Analysis
### CRITICAL: SQL Injection (users.ts:45)
[Detailed explanation with code example]
### HIGH: Missing Rate Limiting (auth.ts:23)
[Detailed explanation with recommendation]
## Recommendations
1. [Priority action items]
2. [Secondary improvements]
## Overall Assessment
[Summary judgment: PASS | NEEDS WORK | FAIL]
## Session
Session ID: `<id>` (for follow-up questions)
# Review Request: Remote Execution Security
## Objective
Security review of the PsExec-based remote execution module.
## Review Criteria
Rate findings: CRITICAL | HIGH | MEDIUM | LOW
Focus on:
- Command injection vulnerabilities
- Credential exposure
- Path traversal risks
- Session hijacking
## Code to Review
### File: ras_commander/remote/PsexecWorker.py
```python
[paste relevant code]
[paste relevant code]
Write to FINDINGS.md with severity-rated findings and specific mitigations.
### 2. Execute Gemini
```bash
cd "C:/GH/ras-commander" && gemini -y "Read REVIEW.md, perform security review per criteria, write findings to FINDINGS.md"
Review the findings, address issues, and continue development.
GEMINI_API_KEY=xxx # Required (or use OAuth login)
GOOGLE_API_KEY=xxx # Alternative (takes precedence)
| Limit | Value | |-------|-------| | Requests/minute | 60 | | Requests/day | 1,000 |
gemini --list-sessions to see available sessionsgemini -r <id> "follow-up instruction"Codex is the production-supported second harness for this repository. Use this legacy Gemini path only when the user explicitly asks for Gemini.
Use Codex by default for:
Use this Gemini path only for:
Use specialized ras-commander agents for:
hdf-analystgeometry-parserusgs-integratorAgents (delegate when needed):
code-oracle-gemini -- Delegate for large context Gemini analysisSkills (related workflows):
dev_invoke_codex-cli -- Alternative: Codex CLI for deep reasoningdev_invoke_kimi-cli -- Alternative: Kimi CLI for test generationqa_review_triple-model -- Uses this skill as one of three reviewersnpx skills add gpt-cmdr/dev_invoke_gemini-cli下载完整 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