/utilities:folder-mergefrom utilities
Compare two folders (local machine via device bridge, two connected devices, or the workspace) and produce a safe, sign-off-gated plan to consolidate the newest content from one into the other. Use whenever the user wants to compare two folders, merge or consolidate duplicate folders, migrate content from an old location to a new one, sync a Desktop copy with a Dropbox/cloud/NAS copy, figure out which folder version is newer, or clean up redundant folder copies before deleting one. Trigger even without the word "merge" — "these folders have drifted apart", "which has the latest stuff", "can I delete this old folder now", "consolidate my project folders", "I have two copies and don't know which is current", or just naming two folder paths and asking what's different, all call for this skill. Prefer it over ad-hoc comparison whenever the goal is deciding what to keep, move, or delete.
Ships in utilities. 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.
A repeatable process for reconciling two folders that have drifted apart: one is usually an older or partial copy (the user will eventually delete it), the other is the one they want to keep current. Your job is to figure out exactly what's different, propose a precise plan for bringing the keeper folder up to date, get explicit human sign-off, execute it, and then prove it worked before anyone deletes anything.
The single most important property of this workflow is that it is safe to run unsupervised right up until the moment you'd touch a file. Comparing and proposing costs nothing. Copying and deleting are the two actions that can destroy real work, so they get the most caution: copying only happens after sign-off, and deleting never happens at all — that step always belongs to the user.
Ask for (or confirm) two things if they aren't already clear from context:
Don't assume direction from which folder was mentioned first — people describe folders in whatever order occurs to them. If it's genuinely ambiguous, ask.
Figure out where each folder actually lives before doing anything else, because it changes which tools you use:
device_list_dir, device_stage_files, and device_commit_files. This is
the common case for "my Desktop" / "my Dropbox" / "my NAS folder" style
requests. Check get_device_info if you need to know which device is
currently connected, and note the device name — if the user says "and other
machines" they mean this same process, run again later with a different
device connected. This skill only ever operates on whichever device(s) are
connected in the current session.Bash/Read/Write/Glob are enough.A gotcha worth knowing: for local-machine folders, device_list_dir gives you
a full recursive listing, but the device_bash mount of that same folder can
come back empty even though the folder is genuinely full and device_list_dir
just proved it. Don't trust device_bash for folders like Desktop that need
extra OS-level permission — if you need to run shell commands (e.g. checksums)
against local-machine files, device_stage_files them into the cloud workspace
first and work on the staged copies there.
List both folders recursively. Before comparing anything, filter out known noise that isn't real content and would just clutter the diff:
.DS_Store, Thumbs.db, desktop.ini~$*.docx, ~$*.xlsx, ~$*.pptx).git/, .svn/) and dependency directories (node_modules/,
__pycache__/, .venv/) unless the user is specifically merging a codebase
and cares about thoseIf the user's own tooling has left tracking files behind (for example a
system/ folder with MEMORY.md / SESSION_LOG.md from a memory-management
skill, or an orient.md), treat those as infrastructure, not project content:
don't propose migrating, overwriting, or deleting them, just leave them alone
and mention they exist.
This is the step that's easy to shortcut and expensive to get wrong. A matching
filename and modified-time is a strong hint two files are identical, but it
is not proof, and this workflow exists specifically for the cases where it's
wrong (a file got touched, re-saved, or partially edited and the name never
changed). Verify with a checksum (md5sum/shasum on staged or workspace
copies) rather than assuming:
.zip you're
assuming matches an already-extracted folder, an older-dated duplicate you're
assuming is stale, etc. Don't propose skipping a file on a guess; either
verify it or bring it into the plan for the user to decide.Sort every file into one of four buckets:
Write out, in the conversation, exactly what you're proposing to do — every file, its destination path, and why. For destination paths:
This is a hard stop. Do not copy, move, or write a single file until the user has reviewed this plan and said to go ahead. If the user gives blanket approval up front ("just migrate whatever's newer, don't ask me file by file"), you can skip asking about each individual file, but you must still surface conflicts by name — blanket approval covers the mechanical merge, it doesn't cover deciding between two genuinely different versions of the same file on the user's behalf.
Once approved, perform the copy: stage from Folder A (or read from the workspace) and write to the agreed destination paths in Folder B. Preserve the directory structure agreed in Step 3. Do not touch anything in Folder A itself — this workflow only ever adds to Folder B, it never modifies or removes the source.
After copying, checksum every single file you just migrated at its new location in Folder B against its source in Folder A. This is not optional and not a sampling exercise — check all of them. Only once every migrated file is confirmed identical to its source do you tell the user the merge is complete.
If you find a mismatch, say so immediately and specifically (which file, what you expected, what you found) rather than folding it into a generic "done" summary.
If Folder A becomes empty, inaccessible, or disappears at any point before you've finished this verification pass — for example because the user deleted it while you were still working — stop immediately and say so plainly. Report exactly what you did manage to verify and what you didn't, rather than quietly finishing up and implying everything is fine. This has happened before: a user took "I'll let you know when it's safe" as implicit permission to go ahead and delete mid-verification. Be unambiguous in the moment that verification is still in progress if it is.
Once verification passes, tell the user clearly that Folder A is safe to remove, but do not delete, move, empty, or rename Folder A yourself under any circumstances, even if asked to "finish the job" — deleting the source is always a manual, deliberate action the user takes themselves. If they ask you to do the deletion for them, remind them why you're leaving that step to them (it's the one irreversible action in this whole process) and let them decide.
This entire process is meant to be repeated: the same user may run it for several unrelated folder pairs, and later for a different pair on a different connected machine. Each run is independent — don't assume context, structure, or conflict-resolution preferences carry over from a previous run on a different pair of folders unless the user says they should.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sdickert/claude-plugins --plugin utilitiesOther plugins' skills for the same job