Includes: CLAUDE.md, settings.json, agents, commands, rules, skills, hooks, contexts, evals, get-shit-done, plugin configs (installed list and marketplace sources). Excludes credentials, runtime caches, telemetry, session data, and plugin binary cache.
31 lines
768 B
Markdown
31 lines
768 B
Markdown
# Hooks System
|
|
|
|
## Hook Types
|
|
|
|
- **PreToolUse**: Before tool execution (validation, parameter modification)
|
|
- **PostToolUse**: After tool execution (auto-format, checks)
|
|
- **Stop**: When session ends (final verification)
|
|
|
|
## Auto-Accept Permissions
|
|
|
|
Use with caution:
|
|
- Enable for trusted, well-defined plans
|
|
- Disable for exploratory work
|
|
- Never use dangerously-skip-permissions flag
|
|
- Configure `allowedTools` in `~/.claude.json` instead
|
|
|
|
## TodoWrite Best Practices
|
|
|
|
Use TodoWrite tool to:
|
|
- Track progress on multi-step tasks
|
|
- Verify understanding of instructions
|
|
- Enable real-time steering
|
|
- Show granular implementation steps
|
|
|
|
Todo list reveals:
|
|
- Out of order steps
|
|
- Missing items
|
|
- Extra unnecessary items
|
|
- Wrong granularity
|
|
- Misinterpreted requirements
|