Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Propagates hook create, modify, and remove changes across AI coding tools such as Claude Code, Codex CLI, and Cursor.
27% 86%+59 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
After writing hook configuration files for Claude Code and Codex CLI to block unvalidated API calls, what final operational step must be performed before concluding the session?
Requires running a smoke test in each target tool to verify expected hook execution.
3 of 3 safety checks passed
When you manage hooks in a multi-AI environment, hook definitions must propagate across all AI tools that have equivalent lifecycle support. This prevents gaps where a behavioral rule is enforced in one tool but leaves others unprotected.
When multiple AI tools (Claude Code, Codex, Cursor, Gemini, Kimi, Desktop Commander, Cline) are used in parallel or in sequence within the same workflow:
Example failure scenario: You implement a validation hook in Claude Code that prevents certain classes of faulty claims. Codex, used in parallel, lacks this hook. Both tools can produce the same error, but you've only patched half your stack.
Different tools have varying hook lifecycle maturity. Organize propagation as tiers:
| Tool | Hook Events | Propagation Tier | Configuration |
|---|---|---|---|
| Claude Code | SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PreCompact, Stop | Primary | ~/.claude/hooks/ + settings.json |
| Codex CLI | SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SessionEnd | Primary | ~/.codex/hooks/ + config file |
| Cursor | Startup, ToolExecution, FileEdit, Completion, Shutdown | Best-effort | IDE plugin config + rules directory |
| Gemini CLI | Startup, Shutdown, BeforeAgent | Best-effort | Settings file |
| Kimi Desktop / CLI | Tool-specific hooks | Best-effort | App config |
| Desktop Commander | Tool-specific hooks | Best-effort | Application config |
| Cline | BeforeToolExecution, AfterToolExecution, OnNotification | Best-effort | SDK hook configuration |
Definitions:
Events are not always 1:1 between tools. Map by semantic meaning:
| Semantic Intent | Claude Code | Codex | Cursor | Gemini | Action |
|---|
Next to this one in the catalogue, plus more from the same author.