Loading...
Loading...
Sync user-level AI configs (~/.claude/, ~/.codex/) with the dotfiles/ directory. Use when dotfiles drift, after sessions that change permissions/hooks, on new machines, or when the user says "sync", "pull dotfiles", "push configs".
npx skill4agent add camacho/ai-skills sync-dotfiles| Intent | Command | What it does |
|---|---|---|
| "check what's different" | | Show drift between repo and home |
| "what's tracked" | | Show file registry |
| "capture my local changes" | | Home → repo (home wins) |
| "deploy repo configs" | | Repo → home (repo wins) |
| "install skills" | | Install skills via npx |
| "sync" (ambiguous) | Show diff first, then ask direction | Safe default |
sync.sh/path/to/skill/sync.sh <subcommand>AI_ENV_ROOTAI_ENV_ROOT=/custom/path/to/ai-env /path/to/skill/sync.sh pushdotfiles/$AI_ENV_ROOT$AI_ENV_ROOT/dotfiles~/projects/camacho/ai-envcamacho/ai-envAI_ENV_ROOTgit diff dotfiles/chore: sync dotfilessync.sh status