chezmoi
CLAWHUB · Unverified
chezmoi dotfile management. apply - interactive diff review per file [apply.md], consolidate - merge duplicate templates [consolidate.md], cross-platform - Windows/macOS compatibility [cross-platform.md], doctor - check required files and copy if missing [doctor.md], mcp-sync - MCP server synchronization [mcp-sync.md]. For commit splitting → commit-splitter. Use when "chezmoi apply", "chezmoi diff", "diff review", "per-file apply", "chezmoi consolidate", "duplicate templates", "MCP sync", "chezmoi Windows", "cross platform", "utcp to mcp", "move to global mcp", "chezmoi mcp migration", "chezmoi doctor", "missing script", "SourceGit".
- 62
- Rank
- 84
- Safety
- 1.5k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.5K downloadsadoption · Oct 10, 2026
- Latest release
- 0.4.3release · Sep 18, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 0.4.3release
- Updated CHANGELOG.md. - Removed obsolete skill-card.md file.
Observed Sep 18, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:chezmoi- Install using `clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:chezmoi` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/drumrobot/chezmoi before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-chezmoi/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
145,611 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: chezmoi
metadata:
author: es6kr
version: "0.1.1"
description: chezmoi dotfile management. apply - interactive diff review per file [apply.md], consolidate - merge duplicate templates [consolidate.md], cross-platform - Windows/macOS compatibility [cross-platform.md], doctor - check required files and copy if missing [doctor.md], mcp-sync - MCP server synchronization [mcp-sync.md]. For commit splitting → commit-splitter. Use when "chezmoi apply", "chezmoi diff", "diff review", "per-file apply", "chezmoi consolidate", "duplicate templates", "MCP sync", "chezmoi Windows", "cross platform", "utcp to mcp", "move to global mcp", "chezmoi mcp migration", "chezmoi doctor", "missing script", "SourceGit".
---
# chezmoi
chezmoi dotfile template management and workflow automation.
## Topics
| Topic | Description | Guide |
|-------|-------------|-------|
| apply | Interactive diff review — per-file AskUserQuestion approval + commit-tidy | [apply.md](./apply.md) |
| consolidate | Detect duplicate modify templates and generate shared scripts | [consolidate.md](./consolidate.md) |
| cross-platform | macOS/Windows compatibility diagnostics and fixes | [cross-platform.md](./cross-platform.md) |
| doctor | Check required files and auto-copy if missing | [doctor.md](./doctor.md) |
| mcp-sync | MCP server configuration synchronization | [mcp-sync.md](./mcp-sync.md) |
## Related Skills
| Feature | Skill |
|---------|-------|
| Commit splitting | `commit-splitter` |
## Quick Reference
### Apply (Interactive Diff Review)
```
"chezmoi apply" → Per-file diff review + AskUserQuestion approval
"chezmoi diff" → Show all changes, decide per file
```
### Consolidate (Template Merging)
```
"chezmoi check duplicates" → Detect templates with identical content
"merge templates" → Consolidate into shared scripts
```
### Doctor (Environment Validation)
```
"chezmoi doctor" → Check for required scripts
"missing script" → Auto-copy scripts to ~/bin/
```
### MCP Sync (MCP Synchronization)
```
"add MCP server" → Add to mcp-servers.json and apply
"MCP sync" → Propagate MCP config to all apps
```
## Directory Structure
```
~/.local/share/chezmoi/
├── .chezmoi-lib/ # Shared scripts
│ ├── executable_vscode-settings.sh
│ ├── executable_vscode-keybindings.sh
│ ├── executable_mcp-servers.sh
│ ├── executable_generate-utcp-config.sh
│ └── executable_sourcegit-preference.sh
├── .chezmoitemplates/ # Shared data
│ └── mcp-servers.json # MCP server single source of truth
├── .chezmoiignore # OS-specific path branching
├── modify_*.sh.tmpl # Per-app modify templates
├── private_Library/ # macOS app settings
│ └── private_Application Support/
└── AppData/ # Windows app settings
├── Roaming/ # %APPDATA%
└── Local/ # %LOCALAPPDATA%
```
## Required Validation Bef_meta.json
{
"ownerId": "kn74k8yfvftx6f062qa8fzyd8h8373jd",
"slug": "chezmoi",
"version": "0.4.3",
"publishedAt": 1789746776092
}apply.md
# Apply (Interactive Diff Review)
Run `chezmoi diff`, parse each changed file, and let the user decide per-file whether to apply (chezmoi), keep local, or skip.
## When to Use
- `/chezmoi apply` — interactive apply with per-file approval
- After modifying `.chezmoi-lib/` or `modify_*.sh.tmpl` scripts
- Periodic chezmoi sync check
## Procedure
### 1. Run diff
```bash
chezmoi diff 2>&1
```
### 2. Parse diff into file list
Extract changed files from `diff --git a/<path>` headers.
### 3. Classify each file
For each changed file, summarize the change in one line:
- What changed (added/removed/modified keys, trailing newline, etc.)
- Flag problems: script errors (`command not found`), duplicate entries, file deletions
### 4. AskUserQuestion per file (questions array)
**Show the diff before asking (mandatory)**: the user only sees the assistant's own text output, not raw tool-call results — running `chezmoi diff` / `git diff` via Bash does not make the change visible to the user. Paste the relevant diff as a fenced ` ```diff ` code block in the response text immediately before the `AskUserQuestion` call.
| # | Don't | Do |
|---|-------|-----|
| 1 | Summarize the change in prose only ("removed the default worktree line") | Paste the actual diff hunk as a fenced code block, then call `AskUserQuestion` |
| 2 | Assume a Bash tool result showing the diff is visible to the user | Re-embed the diff text in your own response — tool results are not user-visible |
| 3 | End the turn with a declarative report when a prior decision (apply/keep/skip) is still unconfirmed | Re-issue `AskUserQuestion` for the still-open decision — "already asked earlier" is not a reason to skip re-confirming after new changes |
Present all files in a single `AskUserQuestion(questions: [...])` call (max 4 per call, batch if more):
```
AskUserQuestion({
questions: [
{
question: ".claude/settings.json — sort permissions.allow + add new permissions. Which side?",
header: "settings",
options: [
{ label: "chezmoi (apply)", description: "Overwrite with chezmoi result" },
{ label: "Keep local", description: "Keep current file; modify script needs fixing" }
]
},
...
]
})
```
Options per file:
- **chezmoi (apply)** — `chezmoi apply <target-path>`
- **Keep local** — skip, optionally note that the modify script needs fixing
- If a problem is detected (script error, duplicate), **recommend skip** and explain why
### 5. Apply selected files
```bash
chezmoi apply "$HOME/<path1>"
chezmoi apply "$HOME/<path2>"
```
Only apply files the user approved.
### 6. Verify
```bash
# Confirm remaining diff (should only contain skipped files)
chezmoi diff 2>&1 | grep "^diff"
```
## Problem Detection
| Pattern | Action |
|---------|--------|
| `command not found` in diff | Script dependency missing — recommend skip + install |
| File deleted (`deleted file mode`) | Modify script produced empty output — recommend skip |
| Duplicate entriCHANGELOG.md
# Changelog ## [0.4.3](https://github.com/es6kr/skills/compare/chezmoi-v0.4.2...chezmoi-v0.4.3) (2026-09-18) ### Bug Fixes * **cleanup:** make the session-end report table self-sufficient ([#487](https://github.com/es6kr/skills/issues/487)) ([c4a0255](https://github.com/es6kr/skills/commit/c4a02557fb8de3b32cf337c549f62535dabf824b)) ## [0.4.2](https://github.com/es6kr/skills/compare/chezmoi-v0.4.1...chezmoi-v0.4.2) (2026-08-17) ### Bug Fixes * **wip:** cross-ref PR-URL and TaskCreate subject repo-qualifier rules ([#186](https://github.com/es6kr/skills/issues/186)) ([4982364](https://github.com/es6kr/skills/commit/49823641a7b08123ebd0325273892bee41bc3280)) ## [0.4.1](https://github.com/es6kr/skills/compare/chezmoi-v0.4.0...chezmoi-v0.4.1) (2026-08-05) ### Bug Fixes * **chezmoi:** require diff code-block + AskUserQuestion before apply ([#222](https://github.com/es6kr/skills/issues/222)) ([c596333](https://github.com/es6kr/skills/commit/c59633338ad90bc079a4514015639613bbda8d2a)) * promote next-fix staging (38 fixes across 16 skills) ([94f8c33](https://github.com/es6kr/skills/commit/94f8c33800ce411ae63e22c5259cdae8435508a4)) * **wip:** cross-ref PR-URL and TaskCreate subject repo-qualifier rules ([#186](https://github.com/es6kr/skills/issues/186)) ([951c1e6](https://github.com/es6kr/skills/commit/951c1e6871e78e226757c6a7ae5ae53efeb7bfb0)) ## [0.4.0](https://github.com/es6kr/skills/compare/chezmoi-v0.3.0...chezmoi-v0.4.0) (2026-07-07) ### Features * **brief,chezmoi,claude-session,todowrite:** add diff-required, clean-profanity, completion-report topics ([efd0ed0](https://github.com/es6kr/skills/commit/efd0ed06b7f7306c226c9ccb8a0083e60bf0ee83)) ### Bug Fixes * address CodeRabbit/Copilot review findings on release-process-reform ([a954017](https://github.com/es6kr/skills/commit/a9540172cf4e7cf111d3de85ae7b29815ff6d348)) ## [0.3.0](https://github.com/es6kr/skills/compare/chezmoi-v0.2.0...chezmoi-v0.3.0) (2026-06-03) ### Features * add metadata block (author, version) to all skills ([a36d9a5](https://github.com/es6kr/skills/commit/a36d9a5f029b595847220c3cc867370c7ff30a21)) * **chezmoi:** add apply topic for per-file diff review ([14d2327](https://github.com/es6kr/skills/commit/14d232756d059b0afe5705b53da0d4bd2c9b26bc)) * **ci:** add lint jobs and untrack LICENSE ([#7](https://github.com/es6kr/skills/issues/7) Phase 1) ([03a8587](https://github.com/es6kr/skills/commit/03a85872c575c6ffdf72f5ca2bdb353fdc947a73)) ### Refactor * remove spurious skill-kit depends-on from chezmoi, claudify, code-workflow, tdd ([67c0be5](https://github.com/es6kr/skills/commit/67c0be5d3cd63ccc782f24eab01ddfa5d76dfaae)) ## [0.2.0](https://github.com/es6kr/skills/compare/chezmoi-v0.1.1...chezmoi-v0.2.0) (2026-05-24) ### Features * **ci:** add lint jobs and untrack LICENSE ([#7](https://github.com/es6kr/skills/issues/7) Phase 1) ([03a8587](https://github.com/es6kr/skills/commit/03a85872c575c6ffdf72f5ca2bdb353fdc947a73)) ### Refactor * remove spurious s
consolidate.md
# Template Consolidation (Consolidate)
Detects duplicate chezmoi modify templates and consolidates them into shared scripts.
## Workflow
### 1. Detect Duplicates
```bash
# List modify templates
find ~/.local/share/chezmoi -name "modify_*.tmpl" -type f
# Check duplicates by hash
find ~/.local/share/chezmoi -name "modify_*.tmpl" -type f -exec md5 {} \;
```
### 2. Pattern Analysis
**VSCode family app patterns:**
- `settings.json` - Claude Code settings, themes, file exclusions
- `keybindings.json` - Keyboard shortcuts
**MCP configuration patterns:**
- `.claude.json`, `.cursor/mcp.json` - mcpServers object
- `.utcp_config.json` - manual_call_templates array
### 3. Create Shared Scripts
**Location:** `~/.local/share/chezmoi/.chezmoi-lib/`
**Naming convention:** `executable_<feature>.sh`
**Example:**
```bash
#!/bin/bash
# ~/.chezmoi-lib/executable_vscode-settings.sh
# Pass per-app additional settings via environment variable
if [[ -z "$EXTRA_SETTINGS" ]]; then
EXTRA_SETTINGS='{}'
fi
# Merge common settings + additional settings
cat | jq --argjson extra "$EXTRA_SETTINGS" '. * {common_settings} * $extra'
```
### 4. Modify Templates
Change existing templates to call the shared script:
```bash
#!/bin/bash
# Antigravity: includes additional settings
export EXTRA_SETTINGS='{"app_specific": "settings"}'
exec {{ .chezmoi.sourceDir }}/.chezmoi-lib/executable_vscode-settings.sh
```
### 5. Verification
```bash
# Review results
chezmoi diff
# Apply
chezmoi apply
```
## Immediate Consolidation Principle
**When copying a modify script via `cp` to a cross-platform path, if the content is identical, immediately extract to `.chezmoi-lib/` and convert to a thin wrapper.**
- No "consolidate later" after `cp` — consolidate at the time of copy
- If no existing `.chezmoi-lib/` script exists, create a new one
- If already a wrapper calling a shared script, copy as-is
## Consolidation Checklist
- [ ] Compare template hashes for duplicates
- [ ] **If a newly copied file is identical to an existing file, immediately extract to shared script**
- [ ] Extract common parts
- [ ] Separate per-app differences via environment variables
- [ ] Verify shared script execution permissions
- [ ] Validate results with chezmoi diff
## Existing Consolidation Patterns
| Shared Script | Purpose | Environment Variable |
|---------------|---------|---------------------|
| `vscode-settings.sh` | VSCode settings | `EXTRA_SETTINGS` |
| `vscode-keybindings.sh` | VSCode keybindings | `EXTRA_KEYBINDINGS` |
| `mcp-servers.sh` | MCP server injection | - |
| `generate-utcp-config.sh` | UTCP config generation | - |
| `sourcegit-preference.sh` | SourceGit CustomActions | `SOURCEGIT_EXECUTABLE` |
| `powershell-profile.sh` | PowerShell profile (pwsh + WindowsPowerShell) | - |AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-drumrobot-chezmoi. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about chezmoi. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-drumrobot-chezmoi, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/drumrobot/skills/chezmoi",
"sourceUrl": "https://clawhub.ai/drumrobot/skills/chezmoi",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T11:26:43.660Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-chezmoi/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-chezmoi/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T11:26:43.660Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.5K downloads",
"href": "https://clawhub.ai/drumrobot/chezmoi",
"sourceUrl": "https://clawhub.ai/drumrobot/chezmoi",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T11:26:43.660Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "0.4.3",
"href": "https://clawhub.ai/drumrobot/chezmoi",
"sourceUrl": "https://clawhub.ai/drumrobot/chezmoi",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-18T15:52:56.092Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-chezmoi/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-chezmoi/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 0.4.3",
"description": "- Updated CHANGELOG.md. - Removed obsolete skill-card.md file.",
"href": "https://clawhub.ai/drumrobot/chezmoi",
"sourceUrl": "https://clawhub.ai/drumrobot/chezmoi",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-18T15:52:56.092Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-drumrobot-chezmoi/run-check
