create-hook
Spec compliantcreate-hook helps author hooks.json and hook scripts that run on Cursor agent lifecycle events like before/after tool calls.
Create Cursor hooks for automating behavior around agent events.
Copy prompt for your AI
Send this to your agent to install the skill.
First read https://skill123.app/install/skill123.md. Then install the "create-hook" agent skill by running:
npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook Other install methods
CLI install
npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook Manual install
.cursor/skills/create-hook/ When to use
- → Cursor hooks setup
- → Event-driven automation
- → hooks.json configuration
Platforms
Resources
Source
https://github.com/cursor/skills-cursor/create-hookRelated Skills
create-skill teaches agents how to author new Agent Skills with valid SKILL.md frontmatter, trigger descriptions, and optional scripts. Install via npx skills add or copy to ~/.cursor/skills/create-skill/.
create-rule helps agents write Cursor rules (.mdc files) for project-specific AI behavior. Place rules in .cursor/rules/ for automatic context injection.
code-review applies structured review checklists covering correctness, maintainability, tests, and team conventions.
review-bugbot performs structured code review focused on bugs, edge cases, and regressions. Ideal before merging PRs or after significant refactors.
FAQ
How do I install create-hook?
Send the install prompt to your AI, or run npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook.
Which platforms support create-hook?
Cursor