chezmoi

Automate dotfile management with chezmoi templates and diff previews.

1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/cosgroveb/chezmoi-skill --skill chezmoi-cosgroveb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chezmoi
Source: https://github.com/cosgroveb/chezmoi-skill/tree/main/skills/chezmoi
Command: npx skills add https://github.com/cosgroveb/chezmoi-skill --skill chezmoi-cosgroveb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you automate the management of your dotfiles with chezmoi, reducing manual file operations, OS-specific tweaks, and human error when setting up new machines.

Core Features & Use Cases

  • Automated dotfile management: Add, track, and apply dotfiles across machines using chezmoi.
  • Machine-specific templates: Convert static configs to OS, hostname, or environment variable based templates.
  • Safe preview & deployment: Preview changes with chezmoi diff and apply them safely with chezmoi apply.
  • Template nesting support: Handle nested/template syntax (mise, Jinja, etc.) within your files.

Quick Start

Add gitconfig to chezmoi and apply it to the home directory.