create-hook

Installation
SKILL.md

Create Hook

Use when the user wants to add Codex hooks and explains the behavior they want.

Workflow

  1. 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?
  2. Determine hook type.

    • If the event is missing or unclear, ask which hook they want:
      • SessionStart
      • UserPromptSubmit
      • PreToolUse
      • PostToolUse
      • Stop
    • If the user wants more than one, keep them separate unless they explicitly want shared behavior.
Related skills
Installs
GitHub Stars
929
First Seen
Mar 27, 2026