Claude-skill-registry gemini-context-bridge
Facilitates context sharing and strategic delegation between Claude Code and Gemini CLI. Syncs CLAUDE.md to GEMINI.md and provides agent selection guidance. Use when onboarding Gemini to a project, syncing instructions between agents, or deciding whether to use Claude or Gemini for a specific task.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/gemini-context-bridge" ~/.claude/skills/majiayu000-claude-skill-registry-gemini-context-bridge && rm -rf "$T"
skills/data/gemini-context-bridge/SKILL.mdGemini Context Bridge
🚨 MANDATORY: Invoke gemini-cli-docs First
STOP - Before providing ANY response about GEMINI.md syntax:
- INVOKE
skillgemini-cli-docs- QUERY for the specific context topic
- BASE all responses EXCLUSIVELY on official documentation loaded
Overview
This skill bridges the gap between Claude Code and Gemini CLI by providing workflows to synchronize project context and strategic guidance on agent delegation. It ensures that project conventions defined in
CLAUDE.md are understood by Gemini (via GEMINI.md) and helps users leverage the unique strengths of each agent.
When to Use This Skill
Keywords: sync context, share memory, copy instructions, migrate context, bridge agents, gemini.md, claude.md, delegation strategy, agent selection
Use this skill when:
- Onboarding Gemini: You have a
and want to initialize aCLAUDE.md
for Gemini CLI.GEMINI.md - Syncing Instructions: You want to ensure both agents follow the same coding styles and conventions.
- Deciding Agent: You are unsure whether to use Claude or Gemini for a specific task (e.g., "Who should run this migration?").
- Comparing Context: You want to see if there are conflicting instructions between the two agents.
Delegation Strategy (Gemini vs Claude)
When orchestrating tasks, use this guide to choose the right agent:
Delegate to Gemini CLI for
- Google Ecosystem Auth: Tasks requiring authenticated access to GCP, Vertex AI, or Firebase.
- Long Context / Low Cost: Operations best suited for Gemini Flash (large context) or Pro (very large context).
- Interactive Tools: Running interactive CLIs (e.g.,
,top
,vim
) viagit rebase
.enableInteractiveShell - Smart Edits: Using the
tool with the specific "Smart Edit" strategies of Gemini.edit - Memory/Todos: Utilizing the built-in programmable
andsave_memory
tools for state tracking.write_todos
Delegate to Claude for
- Project Planning: High-level architectural reasoning and convention enforcement (
).CLAUDE.md - Complex Refactoring: Codebase-wide changes requiring "Codebase Investigator" analysis.
- Initial Setup: Creating the
that serves as the seed forCLAUDE.md
.GEMINI.md
Workflows
1. Initialize GEMINI.md from CLAUDE.md
Use this to bootstrap Gemini's context using your existing Claude rules.
Manual Steps:
- Read
.CLAUDE.md - Extract key sections: "Conventions", "Build Commands", "Style Guide".
- Create
with these sections formatted for Gemini (Markdown).GEMINI.md
2. Check for Context Drift
Periodically check if the two context files have diverged.
Manual Steps:
(or visually compare).diff CLAUDE.md GEMINI.md- Look for updates in one that are missing in the other (e.g., new test command).
File Formats
: The single source of truth for Claude Code. Contains commands, style guides, and project structure.CLAUDE.md
: The context file for Gemini CLI. Used to prime the model with project-specific instructions.GEMINI.md
: Configuration for Gemini (MCP, tools)..gemini/settings.json
(if applicable): Configuration for Claude..claude/config.json
Best Practices for "Partnership"
- Single Source of Truth: Ideally, treat
as the master record for project rules.CLAUDE.md - Specialization: Use
for Gemini-specific overrides (e.g., "Always use Flash model for this repo").GEMINI.md - Shared Memory: While they have separate memory stores, you can manually copy high-value facts from
(Gemini) tosave_memory
(Claude).save_memory
Test Scenarios
Scenario 1: Context Sync
Query: "Sync my CLAUDE.md to GEMINI.md" Expected Behavior:
- Skill activates on "sync context" or "copy instructions"
- Provides workflow to extract and transform sections Success Criteria: User receives step-by-step sync workflow
Scenario 2: Agent Selection
Query: "Should I use Claude or Gemini for this large file analysis?" Expected Behavior:
- Skill activates on "claude or gemini" or "which agent"
- Provides delegation matrix guidance Success Criteria: User receives recommendation based on task type
Scenario 3: Context Drift Detection
Query: "Check if my CLAUDE.md and GEMINI.md are in sync" Expected Behavior:
- Skill activates on "compare" or "drift"
- Suggests diff command and comparison workflow Success Criteria: User receives drift detection method
Related Skills
: For configuring thegemini-config-management
folder..gemini
: For official documentation ongemini-cli-docs
syntax.GEMINI.md
Version History
- v1.1.0 (2025-12-01): Added Test Scenarios section
- v1.0.0 (2025-11-25): Initial release