codex-app-ref-refresh

Installation
SKILL.md

ChatGPT App Ref Refresh

Workflow

Use this skill from the repository root that should receive ./ref.

  1. Verify the current working directory is the intended workspace.
  2. Run the bundled script:
node .agents/skills/codex-app-ref-refresh/scripts/refresh-codex-ref.mjs

The script runs three steps in order:

  1. Sync — deletes only <cwd>/ref, then extracts /Applications/ChatGPT.app/Contents/Resources/app.asar into a fresh ref directory.
  2. Format — runs Prettier (--write --ignore-path /dev/null) over every extracted .js and .css file, skipping any node_modules directory under ref. This intentionally bypasses .gitignore and .prettierignore so an ignored ref/ directory is still formatted. After writing, the script verifies JavaScript files with --list-different --ignore-path /dev/null and 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.
  3. Report — prints the count of formatted files and a completion line.
Installs
2
GitHub Stars
115
First Seen
Jun 26, 2026
codex-app-ref-refresh — jimliu/decode-codex