create-hook

规格合规

create-hook 帮助编写 hooks.json 与钩子脚本,在 Agent 生命周期事件前后执行。

Create Cursor hooks for automating behavior around agent events.

4.4 良好
作者 Cursor 最后验证: 2026-06-22

复制给 AI 安装

把这段提示词发给你的 Agent,即可安装该技能。

请先阅读 https://skill123.app/install/skill123.md。然后安装「create-hook」技能,执行:
npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook
其他安装方式

CLI 安装

npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook

手动安装

.cursor/skills/create-hook/
从 GitHub 下载 Zip

适用场景

  • → 配置 Cursor hooks
  • → 事件驱动自动化
  • → hooks.json 配置

兼容平台

Cursor

资源文件

skill-name/
├── SKILL.md
└── scripts/scripts/

源码

https://github.com/cursor/skills-cursor/create-hook

相关技能

常见问题

如何安装 create-hook?

把安装提示词发给你的 AI,或运行 npx skills add https://github.com/cursor/skills-cursor/tree/main/create-hook。

create-hook 兼容哪些平台?

Cursor