---
title: "Hooks System"
description: "- **PreToolUse**: Before tool execution (validation, parameter modification) - **PostToolUse**: After tool execution (auto-format, checks) - **Stop**: When session ends (final verification)"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/common-hooks
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:18:31.733Z
license: CC-BY-4.0
attribution: "Hooks System — Claudary (https://claudary.paisolsolutions.com/skills/common-hooks)"
---

# Hooks System
- **PreToolUse**: Before tool execution (validation, parameter modification) - **PostToolUse**: After tool execution (auto-format, checks) - **Stop**: When session ends (final verification)

## Overview

---
description: "Hooks system: types, auto-accept permissions, TodoWrite best practices"
alwaysApply: true
---
# 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

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/common-hooks) · https://claudary.paisolsolutions.com
