Skip to content

Sync global CLAUDE.md rules via claude-code-sync #2

@J-MaFf

Description

@J-MaFf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions