What problem does it solve? Automating behavior around Cursor agent events requires knowing the hooks.json schema, event names, matchers, and JSON stdin/stdout protocol, which is easy to get wrong. This Skill guides the creation of working project or user hooks that observe, block, modify, or follow up on agent behavior. ## Core Features & Use Cases - Event Selection: Maps user goals to the narrowest correct hook event such as beforeShellExecution, preToolUse, afterFileEdit, or subagentStop. - Hook Implementation: Produces hooks.json entries plus executable command scripts or prompt-based hooks with matchers, timeouts, and failClosed settings. - Validation Workflow: Covers executable permissions, helper binary checks, matcher regex pitfalls, and testing via the Hooks settings tab. - Use Case: A user wants to block risky network commands. The Skill creates a beforeShellExecution hook with a curl|wget matcher that returns a permission decision as JSON. ## Quick Start Create a Cursor project hook that asks for approval before any shell command containing curl or wget runs.