Skip to content
gemini-workspace-bridge logo

Gemini Workspace Bridge

gemini-workspace-bridge

Central authority for Claude-Gemini shared workspace architecture. Defines directory structure, artifact exchange, and file naming conventions. Use when setting up dual-CLI workflows, deciding where to store AI artifacts, or managing cross-CLI file exchange.

SKILL.md

Full skill instructions

Gemini Workspace Bridge

Documentation Delegation

Documentation Source: For authoritative workspace patterns and current conventions, query gemini-cli-docs skill. This skill provides integration guidance; gemini-cli-docs provides official Gemini CLI documentation.

Overview

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.

When to Use This Skill

Keywords: workspace structure, artifact storage, cross-cli, shared files, gemini artifacts, claude artifacts, file locations, where to store

Use this skill when:

  • Setting up a project for dual-CLI workflow
  • Deciding where to store AI-generated artifacts
  • Understanding the hybrid tracked/​gitignored strategy
  • Managing cross-CLI file exchange

Core Architecture

Hybrid Approach

The workspace uses a hybrid strategy:

  • Tracked files: Memory files, valuable artifacts (plans, reports)
  • Gitignored temp: Session state, caches, transient outputs

Directory Structure

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

Artifact Location Guide

Decision Tree

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

Location Matrix

Artifact TypeLocationTracked?Rationale
Memory/​contextCLAUDE.md, GEMINI.mdYesCore project knowledge
Implementation plansdocs/​ai-artifacts/​plans/YesWant to see evolution
Exploration reportsdocs/​ai-artifacts/​explorations/YesReference material
Session results.claude/​temp/​gemini-results/NoTransient
Second opinions.claude/​temp/​gemini-results/NoTransient
Checkpoints~/​.gemini/​history/<hash>/NoSystem-managed
Sync state.claude/​temp/​sync-state.jsonNoInternal tracking

Gitignore Recommendations

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/

File Naming Conventions

Timestamped 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

Session Results

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

Workspace Initialization

Initialize for Dual-CLI

# 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

Artifact Exchange Patterns

Pattern 1: Claude → Gemini (Context Handoff)

# 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"

Pattern 2: Gemini → Claude (Result Consumption)

# 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'

Pattern 3: Persistent Artifacts

# 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

Cleanup Strategies

Automatic Cleanup (Session-based)

# Clean artifacts older than 7 days
find .claude/​temp/​gemini-results -type f -mtime +7 -delete
find .gemini/​temp -type f -mtime +7 -delete

Manual Cleanup

# Clear all session artifacts
rm -rf .claude/​temp/​*
rm -rf .gemini/​temp/​*

Selective Cleanup

# Keep recent, delete old
find .claude/​temp/​gemini-results -name "*.json" -mtime +3 -delete

Best Practices

1. Single Source of Truth

  • CLAUDE.md is the authoritative memory file
  • GEMINI.md imports from CLAUDE.md and adds overrides
  • Don't duplicate information

2. Artifact Lifecycle

  • Start in temp directories
  • Promote valuable artifacts to docs/​ai-artifacts/
  • Clean up regularly

3. Clear Naming

  • Use descriptive prefixes (exploration-, plan-, analysis-)
  • Include timestamps for ordering
  • Use ISO 8601 format (sortable)

4. Gitignore Discipline

  • Temp directories should always be gitignored
  • Memory files should always be tracked
  • docs/​ai-artifacts/ should be tracked

Related Skills

  • gemini-memory-sync - CLAUDE.md ↔ GEMINI.md synchronization
  • gemini-exploration-patterns - Exploration output standards
  • gemini-context-bridge - Legacy context sharing patterns

Related Commands

  • /​sync-context - Synchronize memory files
  • /​gemini-explore - Generates exploration reports
  • /​gemini-plan - Generates implementation plans

Test Scenarios

Scenario 1: Workspace Setup

Query: "How do I set up a project for Claude and Gemini collaboration?" Expected Behavior:

  • Skill activates on "workspace structure" or "cross-cli"
  • Provides directory structure and initialization script Success Criteria: User receives complete workspace setup workflow

Scenario 2: Artifact Location

Query: "Where should I store Gemini exploration results?" Expected Behavior:

  • Skill activates on "artifact storage" or "where to store"
  • Provides location matrix (tracked vs gitignored) Success Criteria: User receives clear guidance on temp vs persistent storage

Scenario 3: Cross-CLI Exchange

Query: "How do I pass context from Claude to Gemini?" Expected Behavior:

  • Skill activates on "artifact exchange" or "shared files"
  • Provides context handoff pattern Success Criteria: User receives file-based exchange workflow

Version History

  • v1.1.0 (2025-12-01): Added MANDATORY section, Test Scenarios, Version History
  • v1.0.0 (2025-11-25): Initial release

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View