utilities
hook-authoring
Authors and maintains equivalent hook configs across Claude Code, Codex, Gemini CLI, and Goose.
Keeps hook configurations equivalent and maintainable across Claude Code, OpenAI Codex CLI, Google Gemini CLI, and Goose. Authors new hooks from a single description, migrates between platforms, audits parity, and validates config syntax.
What it needs
- event — Hook event (PreToolUse, PostToolUse, SessionStart, Stop)
- matcher — Regex matcher for the tool name or command
- command — Shell command to execute
- platforms — Target platforms (default all supported)
- vault_root — Path to vault root (defaults to current directory)
- source_path — Path to the source config file
- target_platform — Target platform (claude-code, codex, gemini-cli, goose)
- config_path — Path to the config file to validate
What you get
- .claude/settings.json, .codex/hooks.json, .gemini/settings.json, .agents/plugins/*/hooks/hooks.json
- Config snippet for the target platform, with migration notes for unsupported features
- Hooks present on one platform but missing on others, with fix commands
- Syntax check results, schema compliance, and common error fixes
- hook-configs (json/toml)
Ask it like this
- add a hook
- keep hooks in sync
- migrate hooks to Codex
- audit hook parity
- validate my hook config.
