codex-compat

Installation
SKILL.md

Codex Compatibility Layer

Codex supports only the Bash matcher for PostToolUse — not Edit|Write. This skill bridges that gap by wrapping Edit|Write hooks into a Stop-based batch checker.

What This Sets Up

  • .codex/hooks.json — Codex hook config that maps compatible hooks directly and wraps PostToolUse Edit|Write hooks in a Stop-based batch checker
  • .codex/hooks/codex-batch-check.sh — Stop hook that runs all PostToolUse checks on changed files (JS/TS, CSS/SCSS, package.json) at end of turn
  • AGENTS.md — Codex instructions file with soft guidance for all enforced rules

Steps

1. Create the batch checker script

Copy scripts/codex-batch-check.sh into .codex/hooks/. Make executable.

2. Create .codex/hooks.json

Read .claude/settings.json and generate the Codex config from REFERENCE.md. Map:

Related skills
Installs
7
GitHub Stars
3
First Seen
Mar 31, 2026