Problem
The global CLAUDE.md in ~/Documents/Scripts/ is not version-controlled or synced across machines, so rules are lost on a new machine setup.
Solution
- Store
CLAUDE.md in rules/CLAUDE.md inside the sync repo
claude-sync-push: collect CLAUDE.md from $CLAUDE_SCRIPTS_DIR into rules/ before committing
claude-sync-pull: deploy rules/CLAUDE.md to $CLAUDE_SCRIPTS_DIR after syncing
- Add
CLAUDE_SCRIPTS_DIR config variable (defaults to ~/Documents/Scripts)
- Document in
.claude-sync-config.example
Problem
The global
CLAUDE.mdin~/Documents/Scripts/is not version-controlled or synced across machines, so rules are lost on a new machine setup.Solution
CLAUDE.mdinrules/CLAUDE.mdinside the sync repoclaude-sync-push: collectCLAUDE.mdfrom$CLAUDE_SCRIPTS_DIRintorules/before committingclaude-sync-pull: deployrules/CLAUDE.mdto$CLAUDE_SCRIPTS_DIRafter syncingCLAUDE_SCRIPTS_DIRconfig variable (defaults to~/Documents/Scripts).claude-sync-config.example