Interactive chezmoi drift check and sync. TRIGGERS - chezmoi sync, sync dotfiles, dotfile drift, chezmoi guard, chezmoi check.
From dotfiles-toolsnpx claudepluginhub terrylica/cc-skills --plugin dotfiles-toolsThis skill is limited to using the following tools:
Executes pre-written implementation plans: critically reviews, follows bite-sized steps exactly, runs verifications, tracks progress with checkpoints, uses git worktrees, stops on blockers.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
On-demand replacement for the automatic chezmoi stop guard. Run this skill whenever you want to check for chezmoi drift and sync tracked dotfiles.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Run chezmoi status and chezmoi diff --no-pager to detect drift between the source repo and home directory.
chezmoi source-path && chezmoi status && echo "---" && chezmoi diff --no-pager | head -80
If output is empty (no drift), report "Chezmoi is clean — no drift detected" and stop.
If drift exists, use AskUserQuestion to show the user what drifted and ask what to do.
Question 1 (header: "Drift action"):
"Chezmoi detected N drifted file(s): [list files]. What would you like to do?"
Options:
chezmoi re-add all drifted files, commit, and pushchezmoi re-add --verbose
chezmoi git -- add -A && chezmoi git -- commit -m "sync: dotfiles" && chezmoi git -- push
chezmoi status # Verify clean
Report the commit hash and confirm clean state.
For each drifted file, use AskUserQuestion:
Question (header: "File action"):
"[filename] has changed. What should we do?"
Options:
chezmoi add <path>)chezmoi forget --force <path>)After processing all files, if any were synced:
chezmoi git -- add -A && chezmoi git -- commit -m "sync: dotfiles" && chezmoi git -- push
Report: "Skipped chezmoi sync. Run /dotfiles-tools:chezmoi-sync when ready."
chezmoi forget --force (not bare forget) to avoid TTY prompt issues~/own/dotfiles (configured in ~/.config/chezmoi/chezmoi.toml)After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.