shepherdjerred/monorepo/chezmoi-update
Claude Code and agent skill by shepherdjerred/monorepo
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "update chezmoi", "sync dotfiles", "match live state", "match repo state", "chezmoi re-add", "chezmoi diff fix", "chezmoi apply", or mentions chezmoi source/live discrepancies, divergence between dotfiles repo and filesystem, or wants to reconcile chezmoi state in either direction.
Install
npx vskill@latest install shepherdjerred/monorepo/chezmoi-updateSKILL.md
Chezmoi Update — Syncing Source and Live State
Principle: Live is Truth
The live filesystem is always the source of truth. The chezmoi source (repo) is a snapshot of live state. All config files are plain files — no modify templates.
Workflow
- Run
chezmoi diffto identify divergence - Classify each file by source filename
- Sync using the correct method
- Verify with
chezmoi diff— expect empty output
Classification
| Source filename pattern | Type | Sync method | |
|---|---|---|---|
*.tmpl | Template | Edit template directly | |
| Plain file (no special prefix) | Plain file | chezmoi re-add |
Also check for permission diffs (old mode/new mode in diff output):
- Mode
100600= private (needsprivate_in filename) - Mode
100644= normal (noprivate_prefix)
Live-to-Repo Sync (most common)
Since live is truth, the typical operation is capturing live state back to source:
Verify immediately with chezmoi diff — expect empty output.
Repo-to-Live Sync
Only use when the source was intentionally edited (e.g., a bug fix in a config):
Verification
After any sync operation:
chezmoi diff <path>— expect empty output for each synced file- If diff persists, compare:
chezmoi cat <path>vscat <path> - For source repo changes, review
git diffin the dotfiles directory
Anti-Patterns
- Never use modify templates. They create a fake SOT that drifts from reality and
prevent chezmoi re-add from working.
- Never assume `re-add` succeeded without verifying. Always check
chezmoi diffafter. - Never apply without checking direction. Confirm that source is intentionally ahead
of live before overwriting live state.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/dotfiles/dot_agents/skills/chezmoi-update/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shepherdjerred/monorepo/chezmoi-update)