chezmoi-update
БесплатноБез исполняемых скриптовНе проверен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…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
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
chezmoi source-path ~/.example/config.json
| 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:
chezmoi re-add ~/.example/config.json
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):
chezmoi apply ~/.example/config.json # specific file
chezmoi apply --force ~/.example/config.json # if chezmoi warns about changes
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-addfrom working. - Never assume
re-addsucceeded without verifying. Always checkchezmoi diffafter. - Never apply without checking direction. Confirm that source is intentionally ahead of live before overwriting live state.
Установить chezmoi-update в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл chezmoi-update?
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.
Как установить скилл chezmoi-update?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chezmoi-update запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic