From carl-tools
Audit chezmoi dotfiles for drift, unmanaged files, and broken agent skill symlinks across Claude Code, Codex, Gemini, and other harnesses.
How this skill is triggered — by the user, by Claude, or both
Slash command
/carl-tools:chezmoi-driftThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill as a dotfiles weekly checkup. Report first; mutate later.
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 \
<(ls ~/.local/bin | sort) \
<(ls "$src_dir/dot_local/bin" | sed 's/^executable_//' | sort)
comm -23 \
<(ls ~/.config | sort) \
<(ls "$src_dir/dot_config" | sort)
Report new scripts or config directories that look worth managing.
If a local agent-skills repo exists (e.g. ~/dev/me/agent-skills/skills), 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 =="
ls -ld "$host"/chezmoi-drift 2>/dev/null || true
readlink "$host"/chezmoi-drift 2>/dev/null || true
done
Call out:
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: ...
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.npx claudepluginhub carlkibler/agent-skills --plugin ralph-loopGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.