在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
create-hook
// Create a hook (.json) to enforce policy or automate agent lifecycle events.
$ git log --oneline --stat
stars:184,219
forks:39,406
updated:2026年4月8日 10:59
SKILL.md
// Create a hook (.json) to enforce policy or automate agent lifecycle events.
[HINT] 下载包含 SKILL.md 和所有相关文件的完整技能目录
| name | create-hook |
| description | Create a hook (.json) to enforce policy or automate agent lifecycle events. |
| argument-hint | What should be enforced or automated? |
| disable-model-invocation | true |
Related skill: agent-customization. Load and follow hooks.md for template and principles.
Guide the user to create a hook in .github/hooks/.
First, review the conversation history. If the user has been expressing concerns about agent behavior (e.g., "don't run this command", "always check before doing X", "inject this context"), generalize that into a hook. Extract:
If no clear policy need emerges from the conversation, clarify:
Remember to follow the agent-customization guidelines to create highly effective hooks.