Agent skill
collaborating-with-gemini
Delegates coding tasks to Gemini CLI for prototyping, debugging, and code review. Use when needing algorithm implementation, bug analysis, or code quality feedback. Supports multi-turn sessions via SESSION_ID.
Install this agent skill to your Project
npx add-skill https://github.com/haoyu-haoyu/Multi-AI-Workflow/tree/main/.maw/skills/collaborating-with-gemini
SKILL.md
Quick Start
python scripts/gemini_bridge.py --cd "/path/to/project" --PROMPT "Your task"
Output: JSON with success, SESSION_ID, agent_messages, and optional error.
Parameters
usage: gemini_bridge.py [-h] --PROMPT PROMPT --cd CD [--sandbox] [--SESSION_ID SESSION_ID] [--return-all-messages] [--model MODEL]
Gemini Bridge
options:
-h, --help show this help message and exit
--PROMPT PROMPT Instruction for the task to send to gemini.
--cd CD Set the workspace root for gemini before executing the task.
--sandbox Run in sandbox mode. Defaults to `False`.
--SESSION_ID SESSION_ID
Resume the specified session of the gemini. Defaults to empty string, start a new session.
--return-all-messages
Return all messages (e.g. reasoning, tool calls, etc.) from the gemini session. Set to `False` by default, only the agent's final reply message is
returned.
--model MODEL The model to use for the gemini session. This parameter is strictly prohibited unless explicitly specified by the user.
Multi-turn Sessions
Always capture SESSION_ID from the first response for follow-up:
# Initial task
python scripts/gemini_bridge.py --cd "/project" --PROMPT "Analyze auth in login.py"
# Continue with SESSION_ID
python scripts/gemini_bridge.py --cd "/project" --SESSION_ID "uuid-from-response" --PROMPT "Write unit tests for that"
Common Patterns
Prototyping (request diffs):
python scripts/gemini_bridge.py --cd "/project" --PROMPT "Generate unified diff to add logging"
Debug with full trace:
python scripts/gemini_bridge.py --cd "/project" --PROMPT "Debug this error" --return-all-messages
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
report-generator
Multi-AI collaborative report generator. Uses Claude for planning/writing and Gemini for diagram generation. Creates professional reports with auto-generated figures from your research content.
collaborating-with-codex
Delegates coding tasks to Codex CLI for prototyping, debugging, and code review. Use when needing algorithm implementation, bug analysis, or code quality feedback. Supports multi-turn sessions via SESSION_ID.
verl-rl-training
Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.
openrlhf-training
High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.
gguf-quantization
GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.
Claude Code Guide
Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.
Didn't find tool you were looking for?