Skip to main content
skill CX Codex

collaborating-with-gemini — Claude Code skill: setup guide

collaborating-with-gemini connects Gemini CLI as a second opinion for diff inspection, bug analysis, and prototyping via a Python bridge.

no license ★ 475 updated 2026-10-13

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-gemini -a claude-code
Open on GitHub

What collaborating-with-gemini does

This skill connects your workspace agent to Gemini CLI using scripts/gemini_bridge.py. The bridge wrapper emits structured JSON and maintains multi-turn dialogs by tracking SESSION_ID across subsequent calls. That lets you ask follow-up questions without restarting conversation context from scratch.

Prompts reference file paths and line ranges instead of dumping raw code blocks into terminal arguments. The bridge takes --cd pointing to the repository root. For suggested edits, the instructions demand output strictly as a Unified Diff Patch and prohibit touching source files directly. Optional arguments include --model, --sandbox, and --return-all-messages.

Execution relies on Python 3 and a functional Gemini CLI installation. When sharing UI snapshots, store PNG files in .codex_uploads/ rather than the system temp directory, because Gemini refuses to inspect files outside the active workspace root.

What it helps with

  • gather a second perspective on tricky edge cases and logic bugs
  • review proposed patch risks before committing code changes
  • continue multi-turn troubleshooting conversations via SESSION_ID
  • evaluate UI readability and design alternatives safely

Example prompts for the agent

  • Run gemini_bridge.py to ask Gemini CLI for edge cases in src/auth.py around login()
  • Continue the Gemini session with SESSION_ID and request a fix strictly as a Unified Diff Patch
  • Pass the image inside .codex_uploads/ to Gemini CLI to review the updated layout

How to install collaborating-with-gemini

1Skills CLI (Vercel)

npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-gemini -a claude-code

2Manually: put the files in place

~/.claude/skills/collaborating-with-gemini/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/collaborating-with-gemini/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about collaborating-with-gemini

How to install collaborating-with-gemini in Claude Code?

Run npx skills add cnfjlhj/ai-collab-playbook --skill collaborating-with-gemini -a claude-code in your terminal.

What does collaborating-with-gemini do?

It routes debugging, code review, and prototyping prompts to Gemini CLI through a bridge script that outputs JSON with session support.

Can Gemini modify files in the project directly?

No, the prompt constraints require Gemini to return only unified diff patches so you can inspect and apply edits locally.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set18

The whole set →
paperreview Uploads a paper PDF to paperreview.ai over HTTP and fetches the finished review by token. No browser in the loop. CX Codex +1 ★ 475repo stars 论文精读 论文精读 is a Claude Code prompt for reading English academic papers paragraph by paragraph, preserving the original text and providing a scholarly Chinese translation and analytical commentary. GP ChatGPT ★ 475repo stars research-lead-sidecar The research-lead-sidecar skill keeps the lead agent on the critical path while bounded side tasks go to subagents. Use it for research-led work where the lead still needs to own the final decisions. CX Codex +1 ★ 475repo stars spec-first-mvp The spec-first-mvp skill stops development before implementation and requires a short spec, a list of throwaway probes, and a go/no-go decision point. CX Codex +1 ★ 475repo stars collaborating-with-codex collaborating-with-codex is a Claude Code skill that sends bounded coding tasks to a separate local or SSH-based Codex CLI session. Claude Code retains final edits and verification. CX Codex +1 ★ 475repo stars question-refiner question-refiner transforms a vague research question into a structured deep-research brief. Asks clarifying questions, collects requirements for format, sources and scope, then generates a ready-to-use prompt. CX Codex +1 ★ 475repo stars collaborating-with-claude collaborating-with-claude consults Claude Code CLI as an advisor for diff reviews and tradeoffs while your primary agent builds. CX Codex +1 ★ 475repo stars paper-review-pipeline paper-review-pipeline is a Claude Code skill that reviews near-final ML conference papers section by section, prioritizes issues from P0 to P2, and drafts rebuttal responses. CX Codex +1 ★ 475repo stars

Project sponsors

Companies that keep this analytics open