Creates or updates Codex hooks for global or project scope by determining scope, hook type, and behavior, then writing config and scripts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/am-will-codex-skills-5:create-hookThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use when the user wants to add Codex hooks and explains the behavior they want.
Use when the user wants to add Codex hooks and explains the behavior they want.
Determine scope.
global, use the personal/home scope.project, use the repo scope.Should this be global or project-scoped?Determine hook type.
SessionStartUserPromptSubmitPreToolUsePostToolUseStopDetermine behavior.
Write the hook files in the chosen scope.
~/.codex/hooks.json and ~/.codex/hooks/<repo>/.codex/hooks.json and <repo>/.codex/hooks/Enable the feature flag if the target Codex build still gates hooks.
[features] codex_hooks = true in the relevant config.toml.Keep the hook output clear.
statusMessage for a short visible signal.Verify the result.
PreToolUse for prevention.PostToolUse for logging, formatting, or test follow-up.UserPromptSubmit for prompt shaping and injected context.SessionStart for startup context.Stop for end-of-turn checks.npx claudepluginhub am-will/codex-skillsGenerates hook scripts and configurations for Claude Code. Use when adding new hooks, wiring PreToolUse/PostToolUse/Stop/Notification events, or scaffolding settings.json hook config.
Configures, creates, and troubleshoots Claude Code hooks like PreToolUse, PostToolUse, and UserPromptSubmit for automating tasks such as running tests before file edits or formatting outputs with jq.
Develops Claude Code hooks to run shell commands or LLM prompts on events like PreToolUse for automations, guardrails, quality checks, and pre-push tests.