Sync Claude Code agents, skills, and commands between global (~/.claude) and project-local (./.claude) directories with conflict resolution and selective approval.
git clone https://github.com/onsails/ccsync.gitccsync synchronizes Claude Code agents, skills, and commands between your global ~/.claude directory and project-specific .claude folders, keeping configurations consistent across projects while preserving local customizations. The tool offers interactive approval workflows, dry-run previews, and configurable conflict strategies (overwrite, skip, or keep newer files). It supports filtering by type, custom .ccsync.toml configuration files, and automation flags like --yes-all for scripted workflows. Developers managing multiple Claude Code projects benefit from centralized skill libraries with project-level overrides.
Install via Cargo (cargo install ccsync) or curl. Run 'ccsync to-local' to sync from global to project, or 'ccsync to-global' to sync back. Use --dry-run to preview changes, --yes-all to skip prompts, and --type=agents (or skills/commands) to sync specific categories. Optionally create a .ccsync.toml file to set ignore patterns and default conflict strategies.
Synchronize shared Claude agent definitions across multiple projects
Push custom skills from one project to global Claude configuration
Preview sync changes before applying them with --dry-run
Automate configuration sync in CI/CD pipelines with --yes-all
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/onsails/ccsyncCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Sync my Claude-Code agents, skills, and commands between my local ~/.claude directory and my project at [PROJECT_PATH]. Ensure both directions are synced and provide a summary of changes made.
```markdown ## Sync Summary ### Changes Made: - Added 2 new agents to ~/.claude from project - Updated 3 skills in project from ~/.claude - Removed 1 deprecated command from both locations ### Sync Status: - Local (~/.claude): 15 agents, 22 skills, 8 commands - Project ([PROJECT_PATH]): 15 agents, 22 skills, 8 commands ### Sync Log: - 2023-11-15 14:30: Sync initiated - 2023-11-15 14:30: Sync completed successfully ```
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan