#!/usr/bin/env bash # Codex PostToolUse/Stop: run the Impeccable design detector when its Codex skill is installed; otherwise a no-op. # Claude receives the same hooks from the Impeccable plugin. Projects can still opt out with `impeccable hooks off`. for skill in "$HOME/.agents/skills/impeccable" "${CODEX_HOME:-$HOME/.codex}/skills/impeccable"; do if [ -f "$skill/scripts/impeccable" ]; then exec sh "$skill/scripts/impeccable" hook; fi done exit 0