What problem does it solve?
Hooks enable intercepting agent actions (command execution, file read/write, tool usage) and applying rules: allow, block (with explanation), request confirmation, or modify input data. This skill provides a framework to design and implement event hooks (plugins) that intercept agent actions across major IDEs, enabling consistent governance.
Core Features & Use Cases
- Create and configure hooks to intercept before or after key events (file read/write, tool execution, session lifecycle) across Cursor, Claude Code, and OpenCode.
- Implement logic via scripts or plugins to enforce security, gating, or workflow policies during AI-assisted development.
- Use cases include enforcing safety checks before tool usage, auditing agent activity, and shaping agent behavior with contextual prompts.
Quick Start
Define a new hook for your target IDE, implement it in the appropriate scripts or plugins directory, and hook it into the IDE configuration.