Index of every page on this site: llms.txt
All skills
Run it yourself

Generate PNG assets from text and optional reference images using the local Codex CLI and its ChatGPT sign-in. Use when the user asks to generate or edit a raster image or create a transparent cutout.

Use this Skill: https://skilld.dev/gh/jeiwinfrey/codex-image/codex-image

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈53 tokens for metadata: the name and description. ≈276 when used: this file. ≈721 more on demand in 2 files.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈214 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Generate a PNG with Codex

Run the bundled script from the project working directory so relative output paths resolve there. Replace <skill-dir> with the directory containing this SKILL.md.

node "<skill-dir>/bin/codex-image.mjs" -o "assets/hero.png" "Studio photo of a sea-green glass cube on warm ivory"

Use the user's requested destination when available. The script creates parent directories, preserves existing files, and prints the absolute path of the PNG on success. Use that path to present or incorporate the asset.

For an edit or reference-guided image, pass each local image as --reference "<path>" before the text prompt. Pass up to five images and describe how to use each one in the order supplied.

For a cutout, request an actual transparent background in the prompt. Codex chooses quality and pixel dimensions automatically.

The script needs Node.js 22 or later, codex on PATH, and an existing ChatGPT sign-in. If sign-in is required, have the user run codex login and choose ChatGPT. The installed skill bundles the script and requires no npm dependencies.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning4d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    This skill allows users and agents to generate PNG images by safely interfacing with the local Codex CLI. It employs security measures such as clearing sensitive environment variables and restricting the underlying AI's capabilities to prevent prompt-based exploitation.

  • Socket4d

    No alerts

  • Snyk4d

    Risk: MEDIUM · 1 issue

Signed by skilld at b583a95. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 hours ago.

Activeupdated 6 hours ago

README badge

README badge for jeiwinfrey/codex-image