chezmoi-workflows

chezmoi-workflows is a skill for Claude Code from terrylica/cc-skills. It costs 39 tokens per session (2,508 once invoked), scanned A, original, MIT.

A workflow for chezmoi, a tool that stores and applies personal configuration files such as shell and editor settings. It uses Git to back up and sync those dotfiles between computers.

In plain words
What is it for?
Use it to check dotfile changes, back up configurations, apply templates, and troubleshoot drift between the stored files and your home directory.
Why use it?
It helps prevent configuration differences between machines and makes changes easier to track or restore.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/linuxbrew/.linuxbrew.

Part of the dotfiles-tools plugin — 2 skills shipped together , and of cc-skills

Good fit Use it to check dotfile changes, back up configurations, apply templates, and troubleshoot drift between the stored files and your home directory.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add terrylica/cc-skills
Claude Code
/plugin install dotfiles-tools

Made for: Claude Code.

Or install dotfiles-tools, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chezmoi-workflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/chezmoi-workflows/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/chezmoi-workflows)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/chezmoi-workflows"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/chezmoi-workflows/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chezmoi-workflows

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/chezmoi-workflows"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/chezmoi-workflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.02508
Opus 5 $0.00019 $0.01254
Sonnet 5 $0.00008 $0.00502
Haiku 4.5 $0.00004 $0.00251

Measured 5d ago against content hash 1944a5b5b6b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

chezmoi-workflows scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotfiles-tools/skills/chezmoi-workflows/SKILL.md · 322 lines

How it starts

The opening of the file, as written. The whole thing — 322 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chezmoi Workflows

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Backing up dotfiles to Git repository
  • Syncing configuration files across machines
  • Tracking changes to shell configs, editor settings, or other dotfiles
  • Managing templated configurations with chezmoi
  • Troubleshooting dotfile drift between source and target

Architecture

Component Location Purpose
Source $(chezmoi source-path) Git repository with dotfile templates
Target ~/ Home directory (deployed files)
Remote GitHub (private recommended) Cross-machine sync and backup
Config ~/.config/chezmoi/chezmoi.toml User preferences and settings

1. Status Check

chezmoi source-path                    # Show source directory
chezmoi git -- remote -v               # Show GitHub remote
chezmoi status                         # Show drift between source and target
chezmoi managed | wc -l                # Count tracked files

2. Track File Changes

After editing a config file, add it to chezmoi:

chezmoi status                         # 1. Verify file shows as modified
chezmoi diff ~/.zshrc                  # 2. Review changes
chezmoi add ~/.zshrc                   # 3. Add to source (auto-commits if configured)
chezmoi git -- log -1 --oneline        # 4. Verify commit created
chezmoi git -- push                    # 5. Push to remote

3. Track New File

Add a previously untracked config file:

chezmoi add ~/.config/app/config.toml  # 1. Add file to source
chezmoi managed | grep app             # 2. Verify in managed list
chezmoi git -- push                    # 3. Push to remote

Read the full file on GitHub · 322 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 322 lines · 39 tokens per session scan A 1944a5b5b6b8

Subscribe to this mod's changes

chezmoi-workflows is a skill published in the GitHub repository terrylica/cc-skills (72 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 2,508 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.