What problem does it solve? Automating behavior around Cursor agent events requires knowing the correct hook event, file location, JSON schema, and output fields, and mistakes in any of these cause hooks to silently fail or block the wrong actions. ## Core Features & Use Cases - Event Selection Guidance: Maps user goals to the narrowest correct hook event such as beforeShellExecution, afterFileEdit, preToolUse, or subagentStop. - Command and Prompt Hooks: Creates executable script hooks that exchange JSON over stdin/stdout, or prompt-based hooks for lightweight policy decisions. - Matcher and Safety Configuration: Configures JavaScript-regex matchers, failClosed behavior, timeouts, and loop limits for controlled execution. - Use Case: A team wants every curl or wget command reviewed before execution. The Skill creates a project-level .cursor/hooks.json with a beforeShellExecution hook script that returns an "ask" permission for network commands. ## Quick Start Create a project-level Cursor hook that asks for approval before any shell command containing curl or wget runs.