Drive the syncit CLI to sync folders for the user - two-way sync, push and pull backups, previewing with --dry-run, resolving conflicts, restoring old versions of files, partial copies of a large archive, and encrypted remote vaults in object storage. Use when the user asks to sync, back up, replicate or restore files with syncit, or is working in a folder that contains .syncit/.
Ships in syncit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
syncit syncs folders with each other. This skill covers how to run it for a user without losing their files.
.syncit/. Commands act on the vault the current directory is in, so cd into it first.s3://bucket/notes), or a nickname listed by syncit remote.The CLI describes itself. Before using a command for the first time in a session, read its help:
syncit --help # commands, vault forms, output letters, exit codes, files
syncit <command> --help # arguments, what it changes, when it refuses
If syncit --version fails, syncit is not installed: point the user to the install steps in the project README.
sync, push, pull, move, cp, drop and compact take --dry-run, which prints exactly what the real run would print and changes nothing.
move, drop and compact first.sync, push or pull, run syncit status. It is instant and changes nothing. If it lists any ✗ removed file, dry-run first.inited; a clone already counts as the first exchange); the user asked what will happen; a drive or sub-folder might not be mounted; or the vaults have not synced in a long time.D (deleted, or removed here by move/drop) lines the user did not ask for, stop and ask before the real run.rm to free space. Deleting a file is a real deletion that reaches every vault on the next sync. To remove files from this vault only, use syncit move (see references/partial.md).drop --force, compact, lowering keep-history, or --no-remove. The first three discard data for good. --no-remove puts deleted files back for good.0 is done. 1 is failed. 2 means the run finished but something needs a look: a conflict, or a file that was skipped or is pending. Tell the user what the U and ! lines say; do not report a 2 as a clean sync..syncit/, except .syncit/config.toml when the user asks for a setting or rule to be changed there; prefer syncit config, get and drop, which do the same with checks.init, clone or remote add with a URL.cd ~/Documents && syncit init # make it a vault
syncit clone ~/Documents /Volumes/Backup/Documents # make the second copy
clone needs an empty or missing destination. If both folders already have files, init each one and sync them instead; dry-run that first sync.
The clone remembers the original by nickname (syncit remote lists it). The original does not know the clone: from there, name the clone by path, or run syncit remote add <path> once.
cd ~/Documents
syncit sync /Volumes/Backup/Documents # both ways
syncit push /Volumes/Backup/Documents # send only: back up, change nothing here
syncit pull /Volumes/Backup/Documents # take only: update here, change nothing there
Pick push when the user says "back up", pull when the other folder must not change, sync otherwise.
syncit status # what changed here since the last run
syncit status --vs <vault> # each file's state here and there
syncit sync --dry-run <vault> # exactly what a sync would do
status prints nothing when nothing needs attention. syncit status --help explains the marks.
When both vaults changed the same file, the newer version keeps the name and the other is saved beside it, in both vaults, for example notes-b842127a.txt. The run prints U notes.txt (conflict: notes-b842127a.txt) and exits 2 on every run until the conflict is closed.
notes.txt). The file must change: syncing again without editing it leaves the conflict open.notes-… copy, then sync once more so the deletion reaches the other vault.U todo.txt (conflict: deleted in another vault) means one side edited and the other deleted; the edit was kept. Ask the user, then either edit the file or delete it again, and sync.
Text files (.md, .txt) whose edits touch different lines merge on their own and print M notes.md (merged): nothing to do.
syncit log notes.txt # versions, newest first
syncit restore notes.txt 3f9a # write that version as a copy beside the file
syncit restore --in-place notes.txt 3f9a # replace the file with that version
log; a few characters are enough.syncit status <file> first. If it shows ✎ modified, the last change is not recorded yet and the (current) line in log is the version before it: restore that one. If status shows nothing, restore the line below (current).--in-place when the user asked to revert the file. --in-place records the current file first, so it can be undone the same way.--in-place the version listed just below the -------- line.(no content) cannot be restored from this vault. New vaults keep only one version back (syncit config shows keep-history). Tell the user plainly when the version they want is gone; another vault with more history may still have it (see references/history.md).restore takes one file. To roll back a folder or undo a bad sync, see references/history.md.syncit clone /Volumes/Backup/Archive ~/Archive --include photos/2024 --include music
cd ~/Archive
syncit status --all --vs /Volumes/Backup/Archive # what is here, what is only there
syncit get /Volumes/Backup/Archive/video # bring in another folder
syncit move music /Volumes/Backup/Archive # send to the archive, then remove here
Folders left out are "not here", not deleted: syncing never removes them from the archive. More in references/partial.md.
syncit cp <files…> <folder in a vault> copies files in. It deletes nothing, but it replaces files of the same name: dry-run it and look for M lines. A folder is copied as a folder; see syncit cp --help for copying only its contents.
List names or paths, one per line, in .syncitignore at the vault root. The file itself syncs to other vaults.
build) matches a file or folder of that name at any depth. A line with a / (projects/site/build) is a path from the vault root.*.log matches nothing and gives no warning, so list each name, and tell the user that new names will need adding.syncit status --all --vs <vault>: ignored files show ·.A remote vault lives in object storage (S3, Cloudflare R2 and others), encrypted with a key that is shown as a 24-word seed phrase. Once it is set up, use its nickname like any other vault: syncit sync origin.
Setting one up involves the seed phrase, so read references/remotes.md first. In short: syncit init <url> prints the seed phrase, and syncit clone <url> and syncit remote add <url> ask for it at a terminal. Have the user run those three commands themselves, so the seed phrase never appears in this conversation.
move vs drop vs deleting.! lines, errors, moved folders, scripts and scheduled backups.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/syncit:syncitfrom syncit
npx claudepluginhub gordonbrander/syncit --plugin syncit