Config Sync

Sync ~/.claude/ configuration to a git repo automatically on session start/end

varunr89 9ee5bed 850 B Updated

File contents

Config Sync

Automatically pulls config from a git repo on session start and pushes changes on session end. Keeps your Claude Code settings, commands, and skills synchronized across machines.

Setup

  1. Create a git repo for your config (e.g., ~/projects/claude-config)
  2. Set REPO_DIR in the hook scripts to point to your config repo
  3. The hooks use rsync to sync, excluding runtime files (plugins/cache, session state, etc.)

What Gets Synced

  • settings.json, settings.local.json
  • commands/ directory
  • skills/ directory
  • hooks/ directory
  • CLAUDE.md

What Gets Excluded

  • plugins/cache/, plugins/marketplaces/
  • session-env/, todos/, debug/
  • history.jsonl
  • *.local.md state files

varunr89/claude-marketplace/tree/main/plugins/config-sync/skills/config-sync commit 9ee5bedac1

Frequently asked questions

npx skillmds@latest add varunr89/config-sync