gemini-memory-sync

Synchronize CLAUDE.md and GEMINI.md memory files with bash scripts.

2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-memory-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-memory-sync
Source: https://github.com/DTMC-marketplace/governance/tree/main/skills/gemini-memory-sync
Command: npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-memory-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of keeping AI memory files synchronized between different AI models (Claude and Gemini), ensuring consistency and preventing context drift.

Core Features & Use Cases

  • Synchronization Patterns: Provides clear methods for aligning CLAUDE.md and GEMINI.md memory files.
  • Import Syntax: Explains and demonstrates the @import syntax for referencing and including content from one memory file into another.
  • Drift Detection: Offers techniques to identify when memory files have diverged.
  • Use Case: When setting up a new project, you can use this skill to ensure your Gemini CLI's memory file (GEMINI.md) correctly imports and reflects the most up-to-date information from your primary Claude Code memory file (CLAUDE.md), preventing outdated information from being used by Gemini.

Quick Start

Use the gemini-memory-sync skill to understand how to set up GEMINI.md to import CLAUDE.md.

Frequently Asked Questions about gemini-memory-sync

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

FAQPage Schema
How do I sync CLAUDE.md and GEMINI.md memory files to prevent context drift?

You can sync CLAUDE.md and GEMINI.md using provided synchronization patterns that utilize bash scripts for manual diffing and hash-based detection to identify and resolve context drift.

What is the @import syntax for referencing content in GEMINI.md?

The @import syntax allows you to reference and include content directly from a primary memory file like CLAUDE.md into your GEMINI.md file, ensuring Gemini uses the most up-to-date information without manual duplication.

How can I detect context drift between Claude and Gemini memory files?

You can detect context drift between Claude and Gemini memory files by utilizing hash-based detection techniques and running bash scripts that perform manual diffing to check if the files have diverged.

Can I set up one-way synchronization from CLAUDE.md to GEMINI.md?

Yes, you can establish one-way synchronization by configuring GEMINI.md to import CLAUDE.md, ensuring the Gemini CLI consistently reflects the latest Claude Code memory file updates without reverse overwrites.

Do I need any dependencies to troubleshoot memory sync issues between Claude and Gemini?

No external dependencies are required to troubleshoot memory sync issues; the process relies entirely on built-in bash scripts and native file import syntax to manage synchronization and detect drift.