What problem does it solve? Automating custom behavior around Cursor agent events requires knowing the hooks.json schema, event names, matchers, and JSON stdin/stdout protocol, which is error-prone to set up manually. ## Core Features & Use Cases - Hook Configuration: Creates or updates project-level (.cursor/hooks.json) or user-level (~/.cursor/hooks.json) hook files with schema version 1. - Event and Matcher Selection: Chooses the narrowest correct event such as beforeShellExecution, afterFileEdit, preToolUse, or subagentStop, and adds JavaScript-style regex matchers when appropriate. - Command and Prompt Hooks: Writes executable shell scripts that exchange JSON over stdin/stdout, or prompt-based hooks for lightweight policy decisions. - Use Case: When you want to block or require approval for network commands like curl or wget, this Skill creates a beforeShellExecution hook with a failClosed script that returns permission decisions as JSON. ## Quick Start Create a project hook that asks for approval before running any shell command containing curl or wget.