/carl-tools:chezmoi-driftfrom carl-tools
Audits chezmoi dotfiles for drift, unmanaged files, and broken skill symlinks across agent skill directories. Reports first without mutating.
Ships in carl-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill as a dotfiles weekly checkup. Report first; mutate later.
src_dir=$(chezmoi source-path)
chezmoi status 2>&1
chezmoi unmanaged 2>&1 | grep -Ev '\.DS_Store|__pycache__|/Library/|/Caches/' | head -60
If chezmoi status is empty, managed files are in sync.
Run:
chezmoi status 2>&1
Interpret status codes:
M = modified in targetA = present in source but not appliedR = present in target but removed from sourceReport exact paths and codes. Do not paraphrase away the useful bits.
Run:
chezmoi unmanaged 2>&1 | grep -Ev '\.DS_Store|__pycache__|/Library/|/Caches/' | head -60
Flag only files that look intentional and reusable, especially in:
~/~/.local/bin/~/.config/~/.claude/, ~/.codex/, ~/.gemini/, ~/.continue/, ~/.cursor/~/.local/share/opencode/Skip app noise, caches, session files, logs, and secrets.
Run:
src_dir=$(chezmoi source-path)
comm -23 \
<(command ls ~/.local/bin | sort) \
<(command ls "$src_dir/dot_local/bin" | sed 's/^executable_//' | sort)
comm -23 \
<(command ls ~/.config | sort) \
<(command ls "$src_dir/dot_config" | sort)
Report new scripts or config directories that look worth managing.
If a local agent-skills repo checkout exists (e.g. ~/dev/agent-skills/skills; ask or search if unsure), prefer symlinks from the live skill directories back to that repo rather than copying.
Inspect:
for host in \
~/.claude/skills \
~/.codex/skills \
~/.agents/skills \
~/.local/share/opencode/skills \
~/.gemini/skills \
~/.continue/skills \
~/.cursor/skills; do
[ -d "$host" ] || continue
echo "== $host =="
command ls -ld "$host"/chezmoi-drift 2>/dev/null || true
readlink "$host"/chezmoi-drift 2>/dev/null || true
done
Call out:
A skill must load through one mechanism only. The expensive failure mode is a skill present both as a symlink in ~/.claude/skills/<name> and as an installed plugin (<name>@<marketplace>). It then appears twice in every agent's skill list — wasted context and confusing UX. This happens when a plugin marketplace built from the same skills repo overlaps live repo symlinks.
This check is Claude Code specific: skip it if the claude CLI isn't installed (say so in the report).
Use command ls, not bare ls. If ls is aliased to eza or similar, it prints
name -> target for symlinks, so symlinked skills fail to match and the
check silently under-reports.
comm -12 \
<(command ls -1 ~/.claude/skills 2>/dev/null | sort -u) \
<(claude plugin list 2>/dev/null | grep '❯' | sed 's/^[^❯]*❯ *//; s/@.*//' | grep . | sort -u)
Any name printed is double-installed. The fix is to keep one mechanism:
claude plugin uninstall <name>@<marketplace>.Never install a plugin derived from the skills repo on a machine that already symlinks the live repo.
A marketplace with "autoUpdate": true in ~/.claude/settings.json will keep
reinstating its plugins. Uninstalling the plugins is not enough — remove the
marketplace too: claude plugin marketplace remove <name>.
Use this format:
DRIFT REPORT
============
Managed files with drift: ...
Unmanaged files worth tracking: ...
Scripts not in chezmoi: ...
Config dirs not in chezmoi: ...
Shared skill install issues: ...
Double-installed skills (symlink + plugin): ...
Then propose exact commands for anything worth fixing.
chezmoi add, chezmoi re-add, chezmoi apply, rm, or git commands unless the user explicitly asks.chezmoi source-path over hard-coding the source repo path.ln -sfn <repo>/skills/<skill> <target> over copying directories around.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (carlkibler/agent-skills) — no native marketplace selected
npx claudepluginhub p/carlkibler-carl-skills26 skills in this plugin
/agent-log-forensicsAnalyze Claude/Codex logs for behavior patterns, repeated friction, and Toolsmith gaps./changelog-writerDraft plain-language changelog entries from Git history, optionally updating CHANGELOG.md./contacts-unifyMerge and dedupe macOS, iCloud, Google, Zoho, or VCF contacts with reviewable provenance./decision-logRecord a technical or product decision, alternatives, and rationale for future agents.