Install/uninstall chezmoi hooks to ~/.claude/settings.json. TRIGGERS - dotfiles hooks, chezmoi hooks, install chezmoi hook, dotfiles sync hook.
From dotfiles-toolsnpx claudepluginhub terrylica/cc-skills --plugin dotfiles-toolsThis skill is limited to using the following tools:
references/evolution-log.mdExecutes pre-written implementation plans: critically reviews, follows bite-sized steps exactly, runs verifications, tracks progress with checkpoints, uses git worktrees, stops on blockers.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Manage chezmoi-sync-reminder hook installation in ~/.claude/settings.json.
Claude Code only loads hooks from settings.json, not from plugin.json files. This command installs/uninstalls the chezmoi PostToolUse hook that reminds you to sync dotfile changes.
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.
| Action | Description |
|---|---|
status | Show current installation state |
install | Add chezmoi hook to settings.json |
uninstall | Remove chezmoi hook from settings.json |
restore | List available backups with numbers |
restore latest | Restore most recent backup |
restore <n> | Restore backup by number |
Parse $ARGUMENTS and run the management script:
/usr/bin/env bash << 'HOOKS_SCRIPT_EOF'
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/dotfiles-tools}"
ACTION="${ARGUMENTS:-status}"
bash "$PLUGIN_DIR/scripts/manage-hooks.sh" $ACTION
HOOKS_SCRIPT_EOF
After install/uninstall/restore operations:
IMPORTANT: Restart Claude Code session for changes to take effect.
The hooks are loaded at session start. Modifications to settings.json require a restart.
# Check current installation status
/dotfiles-tools:hooks status
# Install the chezmoi sync reminder hook
/dotfiles-tools:hooks install
# Uninstall hooks
/dotfiles-tools:hooks uninstall
# List available backups
/dotfiles-tools:hooks restore
# Restore most recent backup
/dotfiles-tools:hooks restore latest
| Issue | Cause | Solution |
|---|---|---|
| jq not found | jq not installed | brew install jq |
| Already installed | Hook already in settings | Run uninstall first to reinstall |
| Hooks not working | Session not restarted | Restart Claude Code session |
| Settings file not found | ~/.claude/ doesn't exist | Create with mkdir -p ~/.claude |
| Invalid JSON | Corrupted settings.json | Use restore latest to recover from backup |
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.