Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By hwells4v2.0.0MITIn 1 marketplace
Write, debug and port lifecycle hooks that run in both Claude Code and Codex. It handles the gaps between the two runtimes, such as Codex's apply_patch file edits and its missing ask decision.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A skill for building lifecycle hooks that run in both Claude Code and Codex.
Hooks are scripts the agent runtime runs at fixed points: before a tool call, after a file edit, when a session starts, when the agent tries to stop. Each one reads a JSON payload on stdin and answers with an exit code or one JSON object. That's how you enforce rules, inject live context, auto-approve safe commands, and keep an agent working until the job is done.
Codex adopted Claude Code's hook contract almost field for field, which makes one script for both runtimes realistic. The catch is the gaps:
apply_patch with a patch string.ask decision.if and args.This skill handles those gaps for you.
Claude Code:
/plugin marketplace add https://github.com/hwells4/hwells4-marketplace.git
/plugin install create-hooks@hwells4-plugins
Codex:
codex plugin marketplace add hwells4/hwells4-marketplace
codex plugin add create-hooks@hwells4-plugins
Then ask for what you want: "block force-pushes to main", "remind the agent to run tests before it stops", "make my Claude hooks work in Codex". The skill also answers to /create-hook.
| Ask | What happens |
|---|---|
| Create a hook | Inventories existing hooks, writes a one-line spec, picks the cheapest mechanism, writes the script from a template, tests it against both runtimes' payloads, registers it, validates |
| Debug a hook | Walks the chain from registered to matched, started, answered, and understood, stopping at the first broken link |
| Audit hooks | Gives a per-hook verdict: purpose, latency, overlaps, and runtime soundness |
| Consolidate | Merges several hooks on one event into a dispatcher with a checks/ directory |
| Port | Moves hooks between Claude Code and Codex, labeling each one portable, adaptable, or no equivalent |
skills/create-hook/
SKILL.md routing, the create steps, rules every hook follows
references/ events, handlers, I/O, runtime differences, config, performance, security
workflows/ brainstorm, debug, audit, consolidate, port
templates/ bash + jq hook scripts and prompt/agent handler configs
templates/lib/hook-io.sh parses stdin once and emits answers both runtimes accept
fixtures/claude|codex/ real-shaped payloads for each event
scripts/test-hook.py runs a hook against fixtures; reports outcome and median latency
scripts/validate-hooks.py inventories and lints every hook a project runs, both runtimes
scripts/hook-log.py reads the debug-wrap.sh log (exit codes, durations)
scripts/mine-candidates.py finds hook candidates in past Claude and Codex sessions
scripts/live-test.py proves a hook fires in a real session, in a throwaway repo copy
The skill checks for these and builds on them when they're installed. Everything works without them.
live-test.py --herdr uses it to test decisions that only show in an interactive session: ask dialogs, permission prompts, notifications.mine-candidates.py groups the moments a human or a gate stopped the agent (rejected tool calls, interrupts, corrections like "no, don't...", auto mode denials, existing hook blocks, saved approvals) by the action involved, so the hooks worth building are the ones your history already asks for.
live-test.py copies the repo into a scratch git repo whose origin is a local bare repo, then runs one headless session (claude -p or codex exec) per case. Hooks built on lib/hook-io.sh append a trace line when HOOK_TRACE is set, so the result is the hook's actual decision in a real session, in either runtime.
7-day copy clicks
create-hooks@dodo-marketplace is listed by dodo-digital/dodo-marketplace — review the source before installing
npx claudepluginhub dodo-digital/dodo-marketplace --plugin create-hooksBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground