---
name: hooks-automation
description: Hook types, lifecycle and automation patterns. Use when adding or debugging hooks such as SessionStart or UserPromptSubmit, or automating a step that must run on every session.
trigger: hooks, automation, hook lifecycle, SessionStart, UserPromptSubmit
metadata:
  provenance:
    class: cpp-authored
---

# Hooks & Automation Skill

When the user asks about hooks, automation, or the hook lifecycle:

1. Read `docs/skills/hooks-automation.md`
2. Explain the 5 hook types and their uses
3. Provide examples of common hook configurations
4. Reference the hooks mastery repository
