create-hook

Installation
SKILL.md

Create Hook

Codex Compatibility

When running this skill in Codex, translate Claude Code-only primitives before acting: AskUserQuestion -> chat/request_user_input, TodoWrite -> update_plan, Task/TaskCreate/TeamCreate/SendMessage -> spawn_agent/send_input/wait_agent when available and allowed, and EnterPlanMode/ExitPlanMode -> a concise chat plan plus explicit approval. Resolve Read/Write/Edit/Bash/WebSearch/WebFetch to Codex file/shell/web tools, and map ~/.claude/... paths to ~/.agents/... or ~/.codex/... unless the task explicitly targets Claude Code.

Build reliable Claude Code hooks that survive real-world event firing — not just clean dry-runs.

When to Use

  • User says "make a hook for X" / "wire a hook" / "hook up X to event Y"
  • User debugging: "my hook doesn't fire" / "the hook runs but nothing happens"
  • Designing flows involving additionalContext injection, context recovery, tool gating, notifications
  • Any edit to ~/.claude/settings.json hooks block
  • Extending this skill itself with new event knowledge

Core Principles

Installs
7
GitHub Stars
1
First Seen
May 2, 2026
create-hook — laststance/skills