collaborating-with-gemini

Run non-interactive Gemini CLI sessions with context and agent role injection.

4|1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/rongarede/skill-snapshots --skill collaborating-with-gemini
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: collaborating-with-gemini
Source: https://github.com/rongarede/skill-snapshots/tree/main/ai-collaboration/collaborating-with-gemini
Command: npx skills add https://github.com/rongarede/skill-snapshots --skill collaborating-with-gemini

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, expect, and includes scripts (resource) components.

What problem does it solve?

This skill solves the challenge of integrating Gemini CLI into Claude Code for non-interactive tasks, enabling automation and scripted interactions.

Core Features & Use Cases

  • Non-interactive Gemini CLI integration: Run Gemini commands without manual prompts.
  • Session persistence: Save and resume Gemini sessions across tasks.
  • Context injection: Automatically load project context from CLAUDE.md, AGENTS.md, or custom context files.
  • Agent role injection: Inject role prompts (e.g., planner, security-reviewer) to steer Gemini responses.
  • Multi-turn collaboration: Manage sessions for long-running tasks and planning.

Quick Start

Execute a Gemini task non-interactively: ~/.claude/skills/collaborating-with-gemini/scripts/gemini-agent.sh "Analyze the authentication logic in login.py" --cd "/path/to/project"

Frequently Asked Questions about collaborating-with-gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Gemini CLI non-interactively inside Claude Code?▼

You can run Gemini CLI non-interactively inside Claude Code by executing the gemini-agent.sh script, which automates command execution without manual prompts and handles session management for scripted interactions.

Can I load project context from CLAUDE.md into a Gemini CLI session?▼

Yes, non-interactive Gemini CLI integration supports context injection by automatically loading project context from CLAUDE.md, AGENTS.md, or custom context files directly into the Gemini session.

How do I persist Gemini CLI sessions across multi-turn development tasks?▼

To persist Gemini CLI sessions across multi-turn tasks, use the session management feature to save and resume sessions, enabling continuous multi-turn collaboration for long-running development and planning.

How do I inject agent role prompts into Gemini CLI for specific tasks?▼

You can inject agent role prompts into Gemini CLI by passing role-specific prompts like planner or security-reviewer, steering Gemini responses to fulfill specialized agent roles during automated tasks.

Do I need to install jq and expect to use non-interactive Gemini CLI collaboration?▼

Yes, you need to install jq and expect, as these dependencies are required to handle structured outputs and automate the non-interactive execution of Gemini CLI commands within Claude Code.

What is the best way to automate multi-turn planning tasks between Claude Code and Gemini?▼

The best way to automate multi-turn planning tasks is using non-interactive Gemini CLI collaboration, which handles session persistence, agent role injection, and context loading for structured outputs.