collaborating-with-gemini-cli

Solid

Delegates code review, debugging, and alternative implementation comparisons to Google Gemini CLI (`gemini`) via a JSON bridge script (default model: `gemini-3-pro-preview`). Supports headless one-shot and multi-turn sessions via `SESSION_ID`, with conservative defaults for Gemini effective-context constraints (file-scoped, `--no-full-access` by default) while allowing user override.

Code & Development 31 stars 6 forks Updated 4 months ago MIT

Install

View on GitHub

Quality Score: 73/100

Stars 20%
50
Recency 20%
50
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Collaborating with Gemini CLI Use this skill when you want a second model (Gemini) to sanity-check a solution, spot edge cases, propose tests, or suggest an alternative implementation approach. This skill provides a small JSON bridge script that runs `gemini` (Gemini CLI) in non-interactive **headless** mode and returns structured output. Compared to `collaborating-with-claude-code`, this skill defaults to **read-only** and is optimized for **file-scoped, one-shot** requests to avoid practical effective-context degradation. ## Requirements - Gemini CLI installed (`gemini --version`). - Install via npm: `npm i -g @google/gemini-cli` - Gemini CLI authenticated (Google account login or API key auth, depending on your local setup). - Python 3 (to run the bridge script). ## Quick start ```bash python scripts/gemini_cli_bridge.py --cd "/path/to/repo" --PROMPT "Review src/auth/login.py for bypasses; propose fixes as a unified diff." ``` Recommended (explicit file scope, best for effective context): ```bash python scripts/gemini_cli_bridge.py --cd "/path/to/repo" --file "src/auth/login.py" --PROMPT "Review this file for bypasses; propose fixes as a unified diff." ``` ## Multi-turn sessions Always capture the returned `SESSION_ID` and pass it back on follow-ups: ```bash # Start a new session (one-shot by default) python scripts/gemini_cli_bridge.py --cd "/repo" --file "src/auth/login.py" --PROMPT "Summarize issues and propose a patch." # Continue the same session pyth...

Details

Author
ZhenHuangLab
Repository
ZhenHuangLab/collaborating-with-gemini-cli
Created
4 months ago
Last Updated
4 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category