icloud-escape-move

Relocates git repositories and worktrees from iCloud-synced folders to local macOS paths.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/diazMelgarejo/orama-system --skill icloud-escape-move-diazmelgarejo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: icloud-escape-move
Source: https://github.com/diazMelgarejo/orama-system/tree/main/bin/orama-system/skills/icloud-escape-move
Command: npx skills add https://github.com/diazMelgarejo/orama-system --skill icloud-escape-move-diazmelgarejo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? iCloud Desktop & Documents sync actively corrupts git working trees by spawning conflict copies, evicting file content into dataless stubs, and blocking atomic renames out of the CloudDocs container. This Skill provides a fail-closed procedure to move a repo tree to a plain local path without losing data or breaking worktrees. ## Core Features & Use Cases - Fail-Closed Preconditions: Aborts before any move if the destination exists, repos are dirty, files are unmaterialized, or no restore path exists. - Worktree Repair: Fixes gitdir back-pointers with git worktree repair after the move so linked worktrees stay resolvable. - Metadata-Preserving Copy: Uses ditto or rsync -aHAX for cross-volume moves, with parity verification before source deletion. - Use Case: Your ~/Documents/oramasys tree keeps producing * 2 duplicate folders and evicted files. Use this Skill to move it to ~/code/oramasys, repair all worktrees, and leave a compatibility symlink at the old path. ## Quick Start Ask the agent to move my git repositories out of iCloud Documents to a local code directory and repair the worktrees.

Frequently Asked Questions about icloud-escape-move

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I move git repos out of iCloud Documents on macOS?

Move the tree to a plain local path like ~/code using mv for same-volume moves or ditto for cross-volume copies, then run git worktree repair on each worktree and leave a symlink at the old path. Verify all repos are clean and files are materialized first.

Why does iCloud create duplicate ' 2' copies of my files?

iCloud Desktop & Documents sync spawns conflict copies when it cannot reconcile changes inside the CloudDocs container. Git working trees are especially vulnerable because sync interferes with git's file operations, making relocation to a non-synced path the permanent fix.

Why does du report the wrong size for iCloud folders?

iCloud's Optimize Mac Storage evicts file content, leaving dataless stubs that du reports as roughly zero bytes. Force download with brctl download, then measure true size by summing stat -f %z output across all files instead of trusting du.

How do I fix broken git worktrees after moving a repository?

Run git worktree repair inside each moved worktree to fix the parent repository's stored gitdir back-pointer. Nested worktrees are not fixed recursively, so repair each one individually and confirm with git worktree list --porcelain.

When should I not use this iCloud relocation procedure?

Do not use it for a normal in-volume repo move with no sync layer involved, where a plain git-aware mv is sufficient. It is specifically for trees under iCloud-managed paths showing conflict copies, evicted files, or under-reported disk usage.