Hook Authoring — Official Best Practices What Hooks Do Hooks are deterministic shell commands (or LLM prompts) that execute at specific lifecycle points. They provide guaranteed behavior — not relying on the LLM to choose to run them. Configuration Locations | Location | Scope | Shareable | |----------|-------|-----------| | | All projects | No | | | Single project | Yes (commit) | | | Single project | No (gitignored) | | Agent/skill frontmatter | While component active | Yes | | Plugin | When plugin enabled | Yes | Hook Types | Type | How it works | Use when | |------|-------------|---------…