Cc Sync Template banner
jung-wan-kim jung-wan-kim

Cc Sync Template

Git community

Description

Sync all your Claude Code settings (~/.claude/) via Git. Backup & restore on any device.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

cc-sync

Back up and sync all your Claude Code settings (`~/.claude/`) via Git. Restore instantly on any device.

![Why You Need This](docs/images/01-problem.png)

![How It Works](docs/images/02-architecture.png)

![What Gets Synced](docs/images/03-sync-targets.png)

![Usage](docs/images/04-usage.png)

![Multi-Device Sync](docs/images/05-multi-device.png)

![Automation Pipeline](docs/images/06-automation.png)

The Problem

  • ~/.claude/ only exists locally -- OS reinstall or disk failure = everything gone
  • Multiple devices = skills, hooks, rules evolving separately on each machine
  • Manual sync is error-prone -- miss one file and things break

How It Works

~/.claude/                    cc-sync (Git repo)              Other Device
  skills/     ──sync.sh──→     skills/      ──apply.sh──→     ~/.claude/
  hooks/                       hooks/                           skills/
  rules/                       rules/                           hooks/
  agents/                      agents/                          rules/
  plugins/                     plugins/                         agents/
  settings.json                settings.json                    ...
  ...                          memory-bank-sync/   ←── import-sync.sh

Quick Start

1. Clone this repo

git clone https://github.com/YOUR_USERNAME/cc-sync.git ~/Project/cc-sync
cd ~/Project/cc-sync

2. First sync (export your settings)

./sync.sh
# Follow prompts to commit and push

3. On another device (import)

git clone https://github.com/YOUR_USERNAME/cc-sync.git ~/Project/cc-sync
cd ~/Project/cc-sync
./apply.sh
claude restart

Slash Commands (Optional)

Copy the example command files to enable `/cc-sync` and `/cc-apply` in Claude Code:

cp examples/commands/cc-sync.md ~/.claude/commands/
cp examples/commands/cc-apply.md ~/.claude/commands/

Then in Claude Code:

/cc-sync     # Export: ~/.claude/ → Git
/cc-apply    # Import: Git →