/device-sync:setupfrom device-sync
First-run setup of Device-Sync. Creates the private queue repo, or joins this machine to an existing one, and writes its profile.
Ships in device-sync. 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.
None: SKILL.md is the whole skill.
Run once per machine. The first machine creates the queue repo; every later machine joins it.
desktop, laptop). Suggest one from the hostname.~/repos/device-queue.Install the two commands the skills call, device-sync and device-sync-snapshot. Skip this if both are on PATH, unless the user is updating. Create ~/.local/bin if missing, then:
$CLAUDE_PLUGIN_ROOT is set, copy $CLAUDE_PLUGIN_ROOT/scripts/device_sync.py to ~/.local/bin/device-sync and $CLAUDE_PLUGIN_ROOT/scripts/snapshot.sh to ~/.local/bin/device-sync-snapshot;curl -fsSL from https://raw.githubusercontent.com/danielrosehill/Device-Sync/main/scripts/.Then chmod +x both, and check ~/.local/bin is on PATH.
Run device-sync whoami. If it returns ok: true, this machine is already set up: report the device and stop.
Check gh repo view <owner>/device-queue. Use the name the user gave if it differs.
If the repo does not exist, this is the first machine: run gh repo create device-queue --private --clone from the parent of the chosen location. The plugin is public; the queue repo must always be private, because notes hold package lists and commands from the user's machines.
If it exists, check gh repo view <owner>/device-queue --json isPrivate. If it is public, stop and tell the user: do not use a public repo as the queue. Otherwise clone it to the chosen location.
Run device-sync init --repo <path> --device <name>. This scaffolds the repo if empty, detects OS, version, kernel, architecture, desktop and package tools into devices/<name>/profile.md, creates tasks/todo, tasks/done and tasks/aborted, and pushes.
A name reserved by another machine has notes waiting, so use it. If init says the device already exists and this really is that machine (a reinstall, for example), rerun with --adopt. Otherwise pick another name.
Offer the add-shortcut skill.
Report the device name, the devices now in the queue, and whether the push landed (pushed).
The only local state, apart from the two commands, is the repo path and device name, at ${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/device-sync/config.json. It is per machine and must not be shared between machines. Everything else lives in the user-owned queue repo.
What SKILL.md sets; muted values are Claude Code's defaults
device-sync@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin device-sync6 skills in this plugin
/add-shortcutCreate a shell alias or z shortcut that jumps to the device queue repo. Use for "add an alias for the queue", "z devicesync"./compare-machinesCompare this computer with another over SSH (packages, dotfiles, hardware), plan what to sync and queue it. "What's on my desktop only"./make-noteNote something for your other computer ("I just installed these TUIs, do it on the desktop too"). Queues it and pushes./read-queueWork this computer's device queue. Pulls open notes, installs what they ask for here, moves them to done and pushes.Other plugins' skills for the same job