Codex CLI 官方这个 imagegen 的 Skill 到底是干啥的?哪有对应工具啊?

2026-04-13 12:411阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

image2028×948 126 KB
codex哪有自带的生成图片的工具

github.com/openai/codex

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

rust-v0.120.0

--- name: "imagegen" description: "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." --- # Image Generation Skill Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics). ## Top-level modes and rules This skill has exactly two top-level modes: - **Default built-in tool mode (preferred):** built-in `image_gen` tool for normal image generation and editing. Does not require `OPENAI_API_KEY`. - **Fallback CLI mode (explicit-only):** `scripts/image_gen.py` CLI. Use only when the user explicitly asks for the CLI path. Requires `OPENAI_API_KEY`. Within the explicit CLI fallback only, the CLI exposes three subcommands: - `generate` - `edit` 此文件已被截断。 显示原始文件

网友解答:
--【壹】--:

要配置支持生图的 API 才可以生图,你要在 skills.md 里面编辑,他这个是不是写错了


--【贰】--:

没有写错 这个是官方的Skill 我在本地电脑也找到了

批注 2026-04-11 191417994×316 16.1 KB

但是由于这个内置模式应该是预留的 还没被真正公开/实现 无法使用


--【叁】--:

这是tool吧 不是skill
文档上写的有


--【肆】--:

你上文档看看就知道了 Skill 我就不清楚了


--【伍】--:

刚刚忘记写链接了

github.com/openai/codex

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

rust-v0.120.0

--- name: "imagegen" description: "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." --- # Image Generation Skill Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics). ## Top-level modes and rules This skill has exactly two top-level modes: - **Default built-in tool mode (preferred):** built-in `image_gen` tool for normal image generation and editing. Does not require `OPENAI_API_KEY`. - **Fallback CLI mode (explicit-only):** `scripts/image_gen.py` CLI. Use only when the user explicitly asks for the CLI path. Requires `OPENAI_API_KEY`. Within the explicit CLI fallback only, the CLI exposes three subcommands: - `generate` - `edit` 此文件已被截断。 显示原始文件

奇怪诶,这个工具也不存在呀,只能降级到用自己的key


--【陆】--:

是的 配置API KEY显式调用是可以的 走的是图片生成接口

image954×367 5.48 KB


--【柒】--:

我知道这是官方的 Skills,但是之前我调用的时候,Codex 和我说里面没有 API,用不了