/chezmoi:chezmoifrom chezmoi
Manages, migrates and troubleshoots chezmoi dotfiles with a preview-first apply. Use when a task runs chezmoi commands or edits ~/.local/share/chezmoi, dot_/private_/.tmpl source files, .chezmoidata, .chezmoiexternal, run_ scripts, or age or password-manager secrets in dotfiles.
Ships in chezmoi. 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.
Not for generic Git work or Home Manager-managed dotfiles. Checked against chezmoi v2.73.1 (chezmoi help) and chezmoi.io on 2026-10-17; run chezmoi --version and chezmoi help <command> when a flag matters.
chezmoi computes a target state from the source directory (normally ~/.local/share/chezmoi), the config (~/.config/chezmoi/chezmoi.toml), and the destination (normally $HOME). apply changes real files, so always preview the computed state first.
chezmoi status
chezmoi diff
chezmoi cat-config
chezmoi source-path ~/.example # target -> source path
chezmoi target-path dot_example # source -> target path
chezmoi cd opens a subshell, which doesn't work from Bash. Use chezmoi source-path and operate on files there directly.
chezmoi add PATH, edit the source file (path from chezmoi source-path PATH), then chezmoi diff PATH.chezmoi update --apply=false, inspect chezmoi diff, then apply. A bare update pulls and applies.chezmoi init REPO, then chezmoi diff. chezmoi init --apply deploys immediately and needs explicit approval.git-commit skill (if installed) inside the source directory, committing only the intended files. Avoid chezmoi push, which runs git add, git commit and git push on everything in the source directory.Read core operations for command semantics and config inspection.
chezmoi diff and chezmoi apply --dry-run --verbose. Look for every unexpected deletion, permission change, script, external fetch, or secret prompt.apply, naming the affected targets and any scripts that will run. Dry runs never execute scripts, so call that out.chezmoi status and, where a clean state is expected, chezmoi verify (exit 0 means targets match).Never run destroy, purge, remove/rm, state delete-bucket, or anything with --force without explicit approval and a checked backup. forget stops managing a file without deleting it, which is usually the safer choice. Read safety and recovery for diagnostics and destructive boundaries.
dot_gitconfig → ~/.gitconfig. Prefixes such as private_, executable_, readonly_, create_, modify_, encrypted_, and exact_, and the .tmpl suffix, change behavior.chezmoi add --template|--encrypt|--create|--exact or chezmoi chattr, not by renaming files by hand. Prefix order matters.exact_, remove_, run_, run_once_, or run_onchange_ entries. They can delete files or run programs on apply.chezmoi add --follow when migrating from a symlink-based manager.Read source state before editing attributes, symlinks, exact directories, or scripts.
.chezmoidata.*, per-machine values in the config's [data]. Inspect with chezmoi data.chezmoi execute-template before applying..chezmoi.toml.tmpl, using promptStringOnce and the other *Once forms..chezmoiignore.Read templates, data, and config for data precedence and init-template testing.
protonPass "pass://..."; build references with the pass-cli skill if installed.chezmoi add --encrypt, using the mechanism chezmoi cat-config shows as configured (age, GPG, or another). chezmoi edit-encrypted opens an editor, so from Bash edit the deployed target instead and re-run chezmoi add --encrypt PATH.chezmoi cat or execute-template output for secret-bearing files; check exit status or redirect to a private temp file..chezmoiexternal.* entries with a checksum or immutable release. Refresh deliberately with --refresh-externals.Read secrets and encryption and externals and scripts before adding either.
List source files changed, target paths affected, any attributes, scripts, externals, or secrets added, the preview and verify commands run, and whether a real apply happened. Never call a dry run a deployment.
references/core-operations.md (opens in a new tab)references/externals-scripts.md (opens in a new tab)references/safety-recovery.md (opens in a new tab)references/secrets-encryption.md (opens in a new tab)references/source-state.md (opens in a new tab)references/templates-data-config.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin chezmoi