From frontend-skills
Generate Codex hooks.json and AGENTS.md from Claude Code hooks for dual-agent compatibility. Maps Edit|Write apply_patch aliases and keeps Stop batch checks as fallback.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-skills:codex-compatThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Codex now supports Claude-style lifecycle hooks for `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PermissionRequest`, `PostToolUse`, and `Stop`. `PreToolUse`/`PostToolUse` matchers support `Bash`, MCP tool names, `apply_patch`, and `Edit|Write` aliases. Map `Edit|Write` hooks direct whenever possible.
Codex now supports Claude-style lifecycle hooks for SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, and Stop. PreToolUse/PostToolUse matchers support Bash, MCP tool names, apply_patch, and Edit|Write aliases. Map Edit|Write hooks direct whenever possible.
.codex/hooks.json -- direct translation for supported Claude hooks.codex/hooks/codex-batch-check.sh -- fallback only for checks that cannot run per tool eventAGENTS.md + CLAUDE.md -- shared project rules (Codex reads AGENTS.md, Claude Code reads CLAUDE.md)direct, direct with shim, fallback only, or unsupported.claude/settings.json and classify every hook with the REFERENCE.md compatibility matrix..codex/hooks.json:
SessionStart, UserPromptSubmit, Stop -> directPreToolUse / PostToolUse with Bash, Edit|Write, apply_patch, mcp__.* -> directPermissionRequest for Bash / MCP / apply_patch -> direct where scripts understand Codex payloadsscripts/codex-batch-check.sh -> .codex/hooks/ only if fallback hooks are needed. chmod +x.AGENTS.md + CLAUDE.md from REFERENCE.md template..codex/hooks.json contains direct Edit|Write PostToolUse hooks when source has themAGENTS.md + CLAUDE.md at repo root.claude/settings.json unchangednpx claudepluginhub redpanda-data/ui-harness --plugin frontend-skillsAdds, lists, removes, updates, and validates hooks for coding agents (Claude Code, Codex CLI, OpenCode). Use when automating agent behavior with shell commands or plugins.
Configures Claude Code hooks for lifecycle events like PreToolUse, SessionStart, and automation use cases such as formatting enforcement and permission control.
Provides cross-platform hooks reference for AI coding assistants like Claude Code, GitHub Copilot, Cursor. Covers Node.js CJS/Python authoring, event schemas, JSON I/O, exit codes, best practices. Use when writing, reviewing, or debugging hooks.