Syncs local config changes back to a chezmoi dotfiles repo. Detects drift, shows diffs, suggests new configs to track, and auto-commits/pushes after review.
Ships in dotfiles-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.
Read when SKILL.md points to them; scripts run unread.
Use this skill to keep your local configuration changes in sync with your chezmoi dotfiles repository.
~/.claude/hooks/, ~/.claude/skills/, ~/.claude/settings.json, ~/.config/wezterm/wezterm.lua, ~/.mise.toml, or other chezmoi-managed configsThe skill monitors these directories and files:
~/.claude/hooks/ - Claude Code hooks~/.claude/skills/ - Custom skills~/.claude/settings.json - Claude Code settings~/.claude/memory/ - Persistent memories~/.config/wezterm/wezterm.lua - WezTerm terminal config~/.mise.toml - Mise tool configurationExcluded (intentionally not synced):
~/.claude/settings.local.json - Machine-specific permissions~/.claude/plans/, ~/.claude/tasks/, ~/.claude/projects/ - Work-in-progress~/.claude/plugins/, ~/.claude/cache/, ~/.claude/file-history/ - Generated artifacts~/.claude/ide/, ~/.claude/shell-snapshots/, ~/.claude/debug/ - Session-specificThe skill detects common global configuration files that you might want to track:
.zshrc, .bashrc, .zshrc.d/.gitconfig, .gitignore_global.ssh/config~/.config/nvim/, ~/.config/helix/~/.config/ripgrep/, ~/.config/fd/When new configs are found, the skill asks if you want to add them to chezmoi so they're available on all your machines.
🔍 Scanning for changes in tracked files...
✏️ Modified files detected:
~/.claude/hooks/status.py
~/.config/wezterm/wezterm.lua
📋 Showing diffs:
=== ~/.claude/hooks/status.py ===
[diff output]
=== ~/.config/wezterm/wezterm.lua ===
[diff output]
✅ Sync these changes? (yes/no)
[After confirmation]
📦 Syncing to dotfiles...
✓ Copied 2 files to chezmoi
✓ Committed: "Update hooks and wezterm config"
✓ Pushed to origin/main
Done! All changes synced to dotfiles repo.
The skill uses helper scripts to:
When you invoke the skill, it automates the entire sync process with user confirmation at the diff review step.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
chezmoi, dotfiles, config-sync, drift-detection, git-workflow
Other plugins' skills for the same job
/dotfiles-sync:dotfiles-syncfrom dotfiles-sync
npx claudepluginhub iamshobe/dotfiles --plugin dotfiles-sync