Cc Sync Template
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.






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 →
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git