From google-ecosystem
Defines directory structure, artifact locations, and tracked/gitignored conventions for Claude Code and Gemini CLI shared workspaces.
How this skill is triggered — by the user, by Claude, or both
Slash command
/google-ecosystem:gemini-workspace-bridgeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Documentation Source:** For authoritative workspace patterns and current conventions, query `gemini-cli-docs` skill.
Documentation Source: For authoritative workspace patterns and current conventions, query
gemini-cli-docsskill. This skill provides integration guidance;gemini-cli-docsprovides official Gemini CLI documentation.
This skill defines the hybrid workspace architecture for Claude Code and Gemini CLI collaboration. It establishes conventions for file storage, artifact exchange, and cross-CLI communication.
Keywords: workspace structure, artifact storage, cross-cli, shared files, gemini artifacts, claude artifacts, file locations, where to store
Use this skill when:
The workspace uses a hybrid strategy:
project-root/
├── CLAUDE.md # Source of truth (tracked)
├── GEMINI.md # Points to CLAUDE.md + overrides (tracked)
│
├── .claude/
│ ├── settings.json # Claude Code configuration
│ └── temp/ # (gitignored) Session artifacts
│ └── gemini-results/ # Parsed Gemini outputs
│
├── .gemini/
│ ├── settings.json # Gemini CLI configuration
│ └── temp/ # (gitignored) Gemini session state
│
└── docs/ # (tracked) Persistent AI artifacts
└── ai-artifacts/ # Version-controlled reports
├── explorations/ # Codebase exploration reports
└── plans/ # Implementation plans
Is this artifact valuable long-term?
├── YES: Should others see it in git history?
│ ├── YES → docs/ai-artifacts/
│ └── NO → .claude/temp/ or .gemini/temp/
└── NO: Is it session-specific?
├── YES → .claude/temp/ or .gemini/temp/
└── NO → Consider not storing it
| Artifact Type | Location | Tracked? | Rationale |
|---|---|---|---|
| Memory/context | CLAUDE.md, GEMINI.md | Yes | Core project knowledge |
| Implementation plans | docs/ai-artifacts/plans/ | Yes | Want to see evolution |
| Exploration reports | docs/ai-artifacts/explorations/ | Yes | Reference material |
| Session results | .claude/temp/gemini-results/ | No | Transient |
| Second opinions | .claude/temp/gemini-results/ | No | Transient |
| Checkpoints | ~/.gemini/history/<hash>/ | No | System-managed |
| Sync state | .claude/temp/sync-state.json | No | Internal tracking |
Add to project .gitignore:
# AI session artifacts (transient)
.claude/temp/
.gemini/temp/
# System-managed
.gemini/history/
# Keep these tracked:
# CLAUDE.md
# GEMINI.md
# docs/ai-artifacts/
Format: {type}-{scope}-{timestamp}.md
# Exploration reports
exploration-architecture-2025-11-30T12-00-00Z.md
exploration-dependencies-2025-11-30T14-30-00Z.md
# Implementation plans
plan-add-auth-2025-11-30T12-00-00Z.md
plan-refactor-db-2025-11-30T14-30-00Z.md
Format: {operation}-{timestamp}.{json|md}
# Raw Gemini results
query-2025-11-30T12-00-00Z.json
analysis-2025-11-30T12-00-00Z.json
# Processed results
analysis-summary-2025-11-30T12-00-00Z.md
# Create directory structure
mkdir -p .claude/temp/gemini-results
mkdir -p .gemini/temp
mkdir -p docs/ai-artifacts/explorations
mkdir -p docs/ai-artifacts/plans
# Create GEMINI.md if not exists
if [ ! -f "GEMINI.md" ]; then
cat > GEMINI.md << 'EOF'
# GEMINI.md
@CLAUDE.md
## Gemini-Specific Overrides
You are Gemini CLI. You have access to:
- Large context window (exceeds typical LLM limits)
- Interactive PTY shell (vim, git rebase -i)
- Checkpointing with instant rollback
- Policy engine for tool control
When working with this codebase, prioritize bulk analysis
and exploration tasks that benefit from your large context.
EOF
fi
# Update .gitignore
grep -q ".claude/temp/" .gitignore 2>/dev/null || echo ".claude/temp/" >> .gitignore
grep -q ".gemini/temp/" .gitignore 2>/dev/null || echo ".gemini/temp/" >> .gitignore
# Claude prepares context
cat CLAUDE.md relevant-files/* > .claude/temp/context-bundle.txt
# Gemini consumes
cat .claude/temp/context-bundle.txt | gemini "Analyze this context"
# Gemini produces result
gemini "Explore architecture" --output-format json > .claude/temp/gemini-results/exploration.json
# Claude parses result
cat .claude/temp/gemini-results/exploration.json | jq -r '.response'
# For valuable artifacts that should be tracked
result=$(gemini "Create implementation plan" --output-format json)
echo "$result" | jq -r '.response' > docs/ai-artifacts/plans/plan-feature-$(date -u +%Y-%m-%dT%H-%M-%SZ).md
# Clean artifacts older than 7 days
find .claude/temp/gemini-results -type f -mtime +7 -delete
find .gemini/temp -type f -mtime +7 -delete
# Clear all session artifacts
rm -rf .claude/temp/*
rm -rf .gemini/temp/*
# Keep recent, delete old
find .claude/temp/gemini-results -name "*.json" -mtime +3 -delete
CLAUDE.md is the authoritative memory fileGEMINI.md imports from CLAUDE.md and adds overridesdocs/ai-artifacts/docs/ai-artifacts/ should be trackedgemini-memory-sync - CLAUDE.md ↔ GEMINI.md synchronizationgemini-exploration-patterns - Exploration output standardsgemini-context-bridge - Legacy context sharing patterns/sync-context - Synchronize memory files/gemini-explore - Generates exploration reports/gemini-plan - Generates implementation plansQuery: "How do I set up a project for Claude and Gemini collaboration?" Expected Behavior:
Query: "Where should I store Gemini exploration results?" Expected Behavior:
Query: "How do I pass context from Claude to Gemini?" Expected Behavior:
npx claudepluginhub melodic-software/claude-code-plugins --plugin google-ecosystemSyncs CLAUDE.md project context to GEMINI.md for Gemini CLI onboarding and provides delegation strategies for task assignment between Claude Code and Gemini.
Delegates tasks like long document analysis, multimodal processing, research, summarization, and large file handling to Google Gemini CLI to preserve Claude context.
Invokes Google Gemini CLI for complex reasoning, research, and AI tasks in headless mode. Supports preview models, fallbacks, and session continuation.