AI SummaryIntegrates Google Gemini CLI as a code review and debugging partner, allowing developers to get second-opinion analysis on implementations, edge cases, and alternative approaches without leaving their coding environment.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "collaborating-with-gemini-cli" skill in my project. Please run this command in my terminal: # Install skill into the correct directory (2 files) mkdir -p .claude/skills/collaborating-with-gemini-cli && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/collaborating-with-gemini-cli/SKILL.md "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/tools/collaborating-with-gemini-cli/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/collaborating-with-gemini-cli/metadata.json "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/tools/collaborating-with-gemini-cli/metadata.json" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
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.
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).
Allow edits (auto-approve edit tools)
python scripts/gemini_cli_bridge.py --full-access --cd "/repo" --file "src/foo.py" --PROMPT "Refactor for clarity; keep behavior; apply edits." ` `bash
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.
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." `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster