create-hook
Installation
SKILL.md
Create Hook
Use when the user wants to add Codex hooks and explains the behavior they want.
Workflow
-
Determine scope.
- If the user says
global, use the personal/home scope. - If the user says
project, use the repo scope. - If scope is missing or unclear, ask:
Should this be global or project-scoped?
- If the user says
-
Determine hook type.
- If the event is missing or unclear, ask which hook they want:
SessionStartUserPromptSubmitPreToolUsePostToolUseStop
- If the user wants more than one, keep them separate unless they explicitly want shared behavior.
- If the event is missing or unclear, ask which hook they want: