codex - 💡(How to fix) Fix Codex App advertises bundled imagegen skill but does not materialize $CODEX_HOME/skills/.system [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20946Fetched 2026-05-05 05:55:49
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1unlabeled ×1

Code Example

/Users/neilsanghrajka/.codex/skills/.system/imagegen/SKILL.md

---

$ test -d /Users/neilsanghrajka/.codex/skills/.system; echo $?
1

---

sed: /Users/neilsanghrajka/.codex/skills/.system/imagegen/SKILL.md: No such file or directory

---

find ~/.codex/skills -maxdepth 2 -type d | sort
find ~/.codex -maxdepth 4 -path '*/imagegen/SKILL.md' -o -path '*/imagegen/scripts/remove_chroma_key.py'

---

$CODEX_HOME/skills/.system

---

$CODEX_HOME/skills/.system/imagegen/SKILL.md

---

codex-cli 0.125.0

---

/Users/neilsanghrajka/.codex/skills
/Users/neilsanghrajka/.codex/skills/chronicle
/Users/neilsanghrajka/.codex/skills/codex-primary-runtime
/Users/neilsanghrajka/.codex/skills/frontend-skill
/Users/neilsanghrajka/.codex/skills/hatch-pet
/Users/neilsanghrajka/.codex/skills/keep-codex-fast

---

codex-rs/skills/src/assets/samples/imagegen/SKILL.md
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

OpenAI.Codex 26.429.30905 (2345)

What subscription do you have?

ChatGPT Pro

What platform is your computer?

macOS 26.4.1 (Darwin 25.4.0 arm64)

What issue are you seeing?

The Codex App session advertises a bundled system skill path for imagegen, but the expected on-disk system skills cache is not present, so skills that rely on the local $imagegen skill file fail when they try to load it.

In the session bootstrap, imagegen is listed as available at:

/Users/neilsanghrajka/.codex/skills/.system/imagegen/SKILL.md

But on disk, the whole .system directory is missing:

$ test -d /Users/neilsanghrajka/.codex/skills/.system; echo $?
1

The concrete symptom appeared while using a user-installed hatch-pet skill that delegates visual generation to $imagegen. It tried to load the advertised system skill path and failed:

sed: /Users/neilsanghrajka/.codex/skills/.system/imagegen/SKILL.md: No such file or directory

What steps can reproduce the bug?

  1. Use Codex App on macOS.
  2. Start a new Codex thread.
  3. Observe that imagegen is listed in the available skills metadata with path /Users/<user>/.codex/skills/.system/imagegen/SKILL.md.
  4. Check the filesystem:
find ~/.codex/skills -maxdepth 2 -type d | sort
find ~/.codex -maxdepth 4 -path '*/imagegen/SKILL.md' -o -path '*/imagegen/scripts/remove_chroma_key.py'
  1. Try to use a skill that loads $CODEX_HOME/skills/.system/imagegen/SKILL.md, such as a pet/spritesheet workflow that composes $imagegen.

What is the expected behavior?

If bundled system skills are advertised in the session, Codex should materialize them under:

$CODEX_HOME/skills/.system

In particular, this file should exist when $imagegen is advertised:

$CODEX_HOME/skills/.system/imagegen/SKILL.md

What happened instead?

The runtime advertised the skill path, but $CODEX_HOME/skills/.system was never created locally. The skill can be listed/invoked conceptually, but any workflow that needs the actual skill files or helper scripts fails on missing files.

Additional diagnostics

Local CLI version:

codex-cli 0.125.0

CODEX_HOME is unset in the shell, so default ~/.codex is expected.

Existing local skills directory:

/Users/neilsanghrajka/.codex/skills
/Users/neilsanghrajka/.codex/skills/chronicle
/Users/neilsanghrajka/.codex/skills/codex-primary-runtime
/Users/neilsanghrajka/.codex/skills/frontend-skill
/Users/neilsanghrajka/.codex/skills/hatch-pet
/Users/neilsanghrajka/.codex/skills/keep-codex-fast

There is no .system directory.

I also checked current openai/codex source. It appears imagegen is embedded as a bundled sample skill at:

codex-rs/skills/src/assets/samples/imagegen/SKILL.md

And the installer code appears intended to write embedded system skills to $CODEX_HOME/skills/.system via install_system_skills / system_cache_root_dir. So this looks like either the installer is not running in the Codex App path, bundled_skills_enabled is false unexpectedly, or the app is advertising bundled skill metadata from another source without ensuring the on-disk system cache exists.

Related but not exact issues

This resembles bundled/local cache discovery issues such as #18258, but this report is specifically about bundled system skills under $CODEX_HOME/skills/.system and the advertised $imagegen skill path being missing.

extent analysis

TL;DR

The Codex App fails to materialize the bundled system skill $imagegen under $CODEX_HOME/skills/.system, causing skills that rely on it to fail.

Guidance

  • Verify that the install_system_skills function is being called and that bundled_skills_enabled is set to true to ensure the system skills cache is created.
  • Check the Codex App's installer code to see if it is correctly writing embedded system skills to $CODEX_HOME/skills/.system.
  • Investigate why the .system directory is missing from the skills directory, potentially due to the installer not running or an issue with the system_cache_root_dir function.
  • Consider manually creating the .system directory and copying the required skill files, such as imagegen, to troubleshoot the issue.

Example

No code snippet is provided as it is not explicitly supported by the issue, but the install_system_skills function and bundled_skills_enabled variable are mentioned as potential points of investigation.

Notes

The issue may be related to the installer not running correctly or an issue with the Codex App's configuration. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by manually creating the .system directory and copying the required skill files, such as imagegen, to troubleshoot the issue. This will allow skills that rely on the $imagegen skill to function while the underlying issue is investigated.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex App advertises bundled imagegen skill but does not materialize $CODEX_HOME/skills/.system [1 comments, 2 participants]