From google-ecosystem
Defines directory structure, artifact locations, and tracked/gitignored conventions for Claude Code and Gemini CLI shared workspaces.
npx claudepluginhub melodic-software/claude-code-plugins --plugin google-ecosystemThis skill is limited to using the following tools:
> **Documentation Source:** For authoritative workspace patterns and current conventions, query `gemini-cli-docs` skill.
Syncs CLAUDE.md project context to GEMINI.md for Gemini CLI onboarding and provides delegation strategies for task assignment between Claude Code and Gemini.
Invokes Gemini CLI for large-context tasks like document analysis and frontend reviews in Gran Maestro workflows. Supports trace mode for logging, prompt files, dirs, and files. Activates on '제미니 실행', '대용량 분석', or /mst:gemini.
Delegates tasks like long document analysis, multimodal processing, research, summarization, and large file handling to Google Gemini CLI to preserve Claude context.
Share bugs, ideas, or general feedback.
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: