codex-app-ref-refresh
Installation
SKILL.md
ChatGPT App Ref Refresh
Workflow
Use this skill from the repository root that should receive ./ref.
- Verify the current working directory is the intended workspace.
- Run the bundled script:
node .agents/skills/codex-app-ref-refresh/scripts/refresh-codex-ref.mjs
The script runs three steps in order:
- Sync — deletes only
<cwd>/ref, then extracts/Applications/ChatGPT.app/Contents/Resources/app.asarinto a freshrefdirectory. - Format — runs Prettier (
--write --ignore-path /dev/null) over every extracted.jsand.cssfile, skipping anynode_modulesdirectory underref. This intentionally bypasses.gitignoreand.prettierignoreso an ignoredref/directory is still formatted. After writing, the script verifies JavaScript files with--list-different --ignore-path /dev/nulland reruns Prettier on any remaining JS files. CSS is formatted but not used as a hard verification gate because bundled Tailwind CSS can be non-idempotent under Prettier. This step is always on by default; do not skip it unless the user explicitly asks. - Report — prints the count of formatted files and a completion line.