Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

chezmoi-helper

БесплатноБез исполняемых скриптовНе проверен

Chezmoi dotfiles management - templates, scripts, multi-machine config, and CLI operations When user works with chezmoi, dotfiles, mentions chezmoi commands…

shepherdjerredот shepherdjerred★ 85 звёзд на GitHub

Об этом скилле

Chezmoi Helper Agent

What's New

Recent chezmoi releases (latest: v2.69.3):

Version Key Changes
v2.69.x transcrypt/git-crypt encryption, Proton Pass support, TOML 1.1, --pq flag for age-keygen, --include/--exclude on unmanaged
v2.68.x --new flag on add, --re-encrypt on re-add, new edit-encrypted command, sourceFile variable fix
v2.67.x re-add manages exact_ entries, fromIni/toIni round-trip fix, non-UTF-8 template warnings
v2.66.x --override-data-file/--override-data flags, --less-interactive mode, exec template function, grouped help output

Overview

Chezmoi manages dotfiles across multiple machines from a single source of truth. The source directory (default: ~/.local/share/chezmoi) contains the declarative desired state. Run chezmoi apply to update the destination directory (~) to match.

Core workflow:

  1. Add files: chezmoi add ~/.gitconfig
  2. Edit source: chezmoi edit ~/.gitconfig
  3. Preview changes: chezmoi diff
  4. Apply changes: chezmoi apply
  5. Commit and push: chezmoi cd && git add . && git commit && git push

Source directory location: ~/.local/share/chezmoi (view with chezmoi source-path)

Configuration file: ~/.config/chezmoi/chezmoi.toml (or .yaml/.json/.jsonc)

Naming Conventions

Chezmoi maps source filenames to target filenames using prefix/suffix attributes:

File Prefixes (applied in order)

Source Prefix Effect Example
create_ Only create if target missing create_dot_bashrc -> .bashrc
modify_ Modify script (stdin=existing, stdout=new) modify_dot_gitconfig
remove_ Remove target remove_dot_old_config
encrypted_ Decrypt on apply encrypted_private_dot_ssh/id_rsa
private_ Set permissions 0o600/0o700 private_dot_ssh
readonly_ Remove write bits readonly_dot_config
empty_ Keep file even if empty empty_dot_placeholder
executable_ Set executable bit executable_dot_local/bin/myscript
symlink_ Create symlink (contents = target) symlink_dot_vimrc
dot_ Replace with leading . dot_gitconfig -> .gitconfig
.tmpl Process as Go template dot_bashrc.tmpl

Directory Prefixes

Source Prefix Effect
exact_ Remove entries not in source
private_ Set 0o700 permissions
readonly_ Remove write bits

Script Prefixes

Source Prefix Execution
run_ Every chezmoi apply
run_once_ Once per unique content hash
run_onchange_ When content changes
before_ Before file operations
after_ After file operations

Combined Prefix Examples

Prefixes combine: private_dot_config -> .config (mode 0o700), run_onchange_after_install.sh.tmpl -> templated script that runs after apply when content changes.

CLI Quick Reference

# Core workflow
chezmoi add ~/.gitconfig              # Add file to source state
chezmoi add --template ~/.bashrc      # Add as template
chezmoi add --encrypt ~/.ssh/id_rsa   # Add encrypted
chezmoi edit ~/.gitconfig             # Edit source state
chezmoi diff                          # Preview changes
chezmoi apply                         # Apply all changes
chezmoi apply --dry-run --verbose     # Preview without applying
chezmoi apply ~/.gitconfig            # Apply single file

# Inspection
chezmoi managed                       # List all managed files
chezmoi managed --include=files       # List only files
chezmoi unmanaged                     # List unmanaged files in ~
chezmoi data                          # Show template data
chezmoi cat ~/.gitconfig              # Show target state of file
chezmoi source-path ~/.gitconfig      # Show source path for target
chezmoi target-path ~/src/dot_git...  # Show target path for source
chezmoi doctor                        # Check for common issues

#
Полный SKILL.md на GitHub

Установить chezmoi-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/advanced.mdreferences/commands.mdreferences/templates.md

FAQ

Что делает скилл chezmoi-helper?

Chezmoi dotfiles management - templates, scripts, multi-machine config, and CLI operations When user works with chezmoi, dotfiles, mentions chezmoi commands, .tmpl files, or dotfile management

Как установить скилл chezmoi-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл chezmoi-helper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить chezmoi-helper с