Skip to content
CLI Tools
Command

/sync-conflicts

List and resolve sync conflicts

BOOST
From plugin
claude-sync
2999 skills9 commands
Install
> /plugin marketplace add tawanorg/claude-sync
> /plugin install claude-sync@claude-sync

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/sync-conflicts

Context preview

What this command does when you run it.

List and resolve sync conflicts

Command definition

sync-conflicts.md
name: sync-conflicts
description: List and resolve sync conflicts

Sync Conflicts

Find and resolve conflicts from sync operations. When both local and remote files change, the remote version is saved as a `.conflict` file.

Check Configuration

First verify claude-sync is configured:

test -f ~/.claude-sync/config.yaml && echo "configured" || echo "not configured"

If not configured, tell the user to run `/sync-init` first.

List Conflicts

Show all conflict files:

claude-sync conflicts --list

Interactive Resolution

For interactive resolution, ask the user how they want to proceed:

1. **Resolve one at a time** - Guide through each conflict interactively 2. **Keep all local** - Run `claude-sync conflicts --keep local` 3. **Keep all remote** - Run `claude-sync conflicts --keep remote`

Batch Resolution

Keep all local versions:

claude-sync conflicts --keep local

Keep all remote versions:

claude-sync conflicts --keep remote

Manual Resolution

For complex conflicts, you can: 1. Read both files to compare:

  • Local file: the original path
  • Conflict file: `{path}.conflict.{timestamp}`

2. Show diff between them 3. Let user choose which to keep or merge manually

Report Results

After resolution:

  • Report how many conflicts were resolved
  • Note any that were skipped
  • Remind about `/sync-push` if they made changes
Read more
Ships withclaude-sync

Sync Claude Code sessions across devices using Cloudflare R2 with end-to-end encryption

Get the whole plugin

Other commands on claude-sync.