Review findings from /simplify:
- Replace execSync('diff -r') with in-process tree compare. Removes the
POSIX diff dependency, eliminates the temp-dir dance, and yields a
structured drift list (changed/missing/extra per path) instead of a
2000-char-truncated blob.
- Use fileURLToPath for __dirname so paths work on Windows.
- Replace existsSync+statSync TOCTOU with a single statSync in try/catch,
and fix the error message for the non-directory case.
- Switch readdirSync to { withFileTypes: true } to avoid per-entry
statSync when scanning for extras.
- lefthook: exclude packages/codex-plugin/skills/** from the
codex-plugin-sync glob. Without this, editing the built copy (e.g.
during a conflict resolution) would trigger the hook to rebuild and
overwrite the user's edit.
Bundles the 5 hyperframes skills (hyperframes, hyperframes-cli,
hyperframes-registry, gsap, website-to-hyperframes) as an OpenAI Codex
plugin per developers.openai.com/codex/plugins/build.
Users can install directly:
codex plugin marketplace add heygen-com/hyperframes --sparse packages/codex-plugin
The skills/ directory under packages/codex-plugin/ is a built copy of
the repo-root skills/. A lefthook pre-commit hook auto-rebuilds when
any skill file changes, and `bun run lint` runs a drift check so CI
fails if the committed plugin copy diverges.