All skills
openai avatar

/imagegen

@8cabf5a
by openaiopenai/codex127k stars
19,934

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

Use this Skill: https://skilld.dev/gh/openai/codex/imagegen

This session only. Nothing lands on disk.

referencescodex-network.md

≈445 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Codex network approvals / sandbox notes

This file is for the fallback CLI mode only. Read it when the user explicitly asks to use scripts/image_gen.py / CLI / API / model controls, or after the user explicitly confirms that a transparent-output request should use the gpt-image-1.5 true-transparency fallback path.

This guidance is intentionally isolated from SKILL.md because it can vary by environment and may become stale. Prefer the defaults in your environment when in doubt.

Why am I asked to approve image generation calls?

The fallback CLI uses the OpenAI Image API, so it needs outbound network access. In many Codex setups, network access is disabled by default and/or the approval policy requires confirmation before networked commands run.

Important note about approvals vs network

  • --ask-for-approval never suppresses approval prompts.
  • It does not by itself enable network access.
  • In workspace-write, network access still depends on your Codex configuration (for example [sandbox_workspace_write] network_access = true).

How do I reduce repeated approval prompts?

If you trust the repo and want fewer prompts, use a configuration or profile that both:

  • enables network for the sandbox mode you plan to use
  • sets an approval policy that matches your risk tolerance

Example ~/.codex/config.toml pattern:

approval_policy = "on-request"
sandbox_mode = "workspace-write"

[sandbox_workspace_write]
network_access = true

If you want quieter automation after network is enabled, you can choose a stricter approval policy, but do that intentionally and with care.

Safety note

Enabling network and reducing approvals lowers friction, but increases risk if you run untrusted code or work in an untrusted repository.

Source: SKILL.md on GitHub

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill provides a robust framework for generating and editing images through a combination of built-in tools and a CLI fallback. It adheres to secure practices for credential management, uses well-known and trusted libraries for its operations, and maintains clear boundaries for its file system activities.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

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

Last checked against GitHub 8 hours ago.

Activeupdated 2 months ago

README badge

README badge for openai/codex/imagegen