scaffold-codex-hooks
Installation
SKILL.md
scaffold-codex-hooks
Audit the target project first, then scaffold Codex hooks with a deterministic managed layout around the current official hook model.
Decision Tree
What is the user asking for?
- New project-local Codex hooks in a repo with no hook setup yet: Verify the live official docs and schemas, audit the repo, inspect the effective feature flag, enable it if needed, then scaffold.
- Existing
.codex/hooks.json,.codex/config.toml, or.codex/hooks/files: Audit what exists first, chooseadditiveoroverhaul, then refresh only the managed hook layer. - Hooks that exist on disk but never seem to affect Codex:
Inspect the effective
hooksfeature first. If it is still off, enable it deliberately. If it is on, remember that repo-local.codex/config.tomlonly loads in trusted projects, then debughooks.json. - Explanation only, not implementation:
Read
references/hook-events.md,references/feature-flag.md, andreferences/scaffold-layout.md, then answer without scaffolding.