chezmoi
Skill10 starsChanged 57 days agoMITView on GitHub
Manage chezmoi source names, templates, secrets, diffs, and deployment in fmind/dot.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- iiiburnyiii/agent-skillstheir own version, first seen May 14, 2026
- hpehl/skillstheir own version, first seen Apr 20, 2026
- MasahiroSakoda/skillstheir own version, first seen Mar 17, 2026
- cosgroveb/chezmoi-skilltheir own version, first seen Jan 27, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- cosgroveb/chezmoi-skill★ 2same name
- hpehl/skills★ 1same name
- iiiburnyiii/agent-skills★ 0same name
- MasahiroSakoda/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository101 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/agent-project/templates/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-loopsSkill
- agent-projectSkill
- agent-protocolsSkill
- agent-usageSkill
- agySkill
- airflowSkill
- ai-security-assessmentSkill
- api-clientSkill
- ast-grepSkill
- auth-statusSkill
- awsSkill
- benchmarkSkill
- bfSkill
- chrome-devtoolsSkill
- cli-developmentSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- containerizeSkill
- course-developmentSkill
- databricksSkill
- data-migrationSkill
- delegate-tasksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-mailSkill
- duckdbSkill
- fact-checkSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- git-worktreeSkill
- google-developerSkill
- gwsSkill
- handoffSkill
- hfSkill
- implementation-planSkill
- incident-responseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Read source names when adding or renaming a managed target.
- Very specific: line 45
Seed native logins create-only: use create_encrypted_private_* for native login seeds so account switches survive apply.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Chezmoi Source Standard
The source tree (~/.local/share/chezmoi) is the only thing to edit; chezmoi apply renders it into $HOME, so a change made under ~/.config or ~/.gemini is overwritten on the next apply. File names encode target path, mode, encryption, and rendering; mise wraps the commands as tasks.
Naming
Read source names when adding or renaming a managed target; attributes depend on the target type.
Workflow
- Edit the source, never the deployed copy;
chezmoi cdopens a shell in the source root. Manage an existing file:
chezmoi add <target>infers the attributes;--templatetemplatizes; set a secret to0600before--encryptimports it asencrypted_private_<name>.age(withdot_before a leading-dot name):chmod 600 ~/.config/<tool>/secret chezmoi add --encrypt ~/.config/<tool>/secret # import and encrypt into the source chezmoi edit ~/.config/<tool>/secret # edit the plaintext, re-encrypt on save- Preview:
mise run diff(chezmoi diff --force; restrict to affected non-secret targets). - Validate rendering:
mise run check:chezmoiuses temporary configuration and destination with a dry run excluding encrypted files. It checks the current platform; exercise changed Linux/macOS branches separately and report unexercised branches or encrypted targets. - Check repeatability: for Bash/profile modifier changes, add existing-target and second-pass cases under
dot/tests/, using the isolated rendering approach intest_shell_modifiers.py. Their blocks go through.chezmoitemplates/managed-block.tmpl, which rewrites the block between its begin and end markers in place, so a body change needs no migration code. JSON/TOML modifier changes need the same cases intest_harness_config.py. Inspect affectedrun_*hooks: ordinary hooks run on each apply; once/onchange hooks can rerun when their content changes. - Apply within scope:
mise run apply(chezmoi apply --force);mise run apply:externals(chezmoi apply --force --refresh-externals) forces re-fetching the commit-pinned themes and font archives;mise run upgradeadvances the theme pin (dot_tasks.theme_pin) only while every copied theme block registered in itsCOPIEDmap matches the new revision, and a checksum mismatch fails apply instead of deploying changed content.--forceis mandatory in scripts and hooks so a diverged target never blocks on a prompt,--dry-runpreviews without writing. Applying also executes eligible hooks;--forcedoes not expand authorized targets or side effects. - Pull target edits back:
chezmoi re-addfolds manual changes to a managed file (a regenerated lockfile, for example) into the source. - Diagnose:
mise run doctor(chezmoi doctorandmise doctor);chezmoi managedandchezmoi unmanagedlist coverage; the installed-link recovery guide previews former managed targets; approved cleanup moves them to recoverable backups. Use command help and dot-cli for cleanup flags.
Gotchas
- Attribute order is fixed:
encrypted_beforeprivate_beforedot_; a wrong order yields a literally named file instead of the effect. - Keep the modify-template convention: chezmoi supports
modify_*.tmplscripts. This repository instead uses# chezmoi:modify-templateand.chezmoi.stdinfor every modifier (shell blocks viamanaged-block.tmpl, JSON/TOML viajson-merge.tmpl/toml-merge.tmpl); preserve that convention unless intentionally changing the execution model. - Escape other tools' template delimiters: emit another tool's
{{ ... }}as{{`{{ .Destination }}`}}(backticks inside an action);.chezmoi.toml.tmplneeds this too. - Templates fail closed: one template error aborts the whole apply; debug with
chezmoi execute-template < fileorchezmoi apply --dry-runbefore committing. - Seed native logins create-only: use
create_encrypted_private_*for native login seeds so account switches survive apply; scoped keys remain managed under~/.config/dot/secrets/. Never restore global shell exports. Follow secret setup and credential precedence; preview secret targets with status/metadata, never a plaintext diff. - Commit only encrypted
*.agesecrets: chezmoi decrypts them into intended targets during an authorized apply. Keep plaintext out of previews, logs, and repository files; rotate a leaked secret (see code-security). .chezmoiignore(templated doublestar patterns, not gitignore syntax) keeps repo-only files (dot/,skills/,AGENTS.md, CI) out of apply and skips key-dependent files without the age key.- Ignore patterns match target paths: a leading
!excludes a match from ignoring and takes priority over every other pattern, whatever the order. .chezmoi.toml.tmplseeds~/.config/chezmoi/chezmoi.tomlonchezmoi init, prompting per-host data withpromptStringOnce . "key" "question" "default".- Config keys:
encryption = "age", the[age]identity and recipient,[add] secrets = "error"sochezmoi addrefuses unencrypted files that contain secrets, and[edit] apply = truesochezmoi editapplies after the editor exits (--watchapplies on save).
Documentation
- chezmoi reference · source-state attributes
- templating · age encryption
- Releases: chezmoi
- Companion skills: mise (pins chezmoi, wraps apply, diff, doctor), dprint (formats source configurations).
- Also: code-security (leak scanning around
*.agefiles), dot-cli (workstation and archive commands).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

