← 返回 Skills 市场
Openai Image Gen
作者
saschaSpoonbill
· GitHub ↗
· v1.0.2
659
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openai-image-gen-fixed
功能描述
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
安全使用建议
This skill appears to do what it says (batch-generate images using the OpenAI Images API), but there are a few red flags to address before installing/using it: (1) you must provide an OPENAI_API_KEY (the registry incorrectly claims none required) — only use a key with appropriate quota and consider a key with limited permissions; (2) packaging metadata (owner/version/timestamps) is inconsistent, which could indicate sloppy publishing — review the code yourself before running; (3) SKILL.md uses hard-coded file paths for running and output that may not match your environment — run the included script directly from the skill directory or adjust paths; (4) the script will POST prompts and your API key to the configured API base and may download image URLs returned by that API — if you plan to run this in a sensitive environment, run it in an isolated container or VM and inspect network traffic. If you want a stronger assurance, ask the publisher to fix the manifest to declare required env vars and provide matching metadata, or request an explanation for the discrepancies.
功能分析
Type: OpenClaw Skill
Name: openai-image-gen-fixed
Version: 1.0.2
The skill is classified as suspicious due to a Cross-Site Scripting (XSS) vulnerability in `scripts/gen.py`. The `_write_index` function directly embeds user-controlled or API-returned prompt strings into the `index.html` file without proper HTML escaping. If a malicious prompt (e.g., containing `</pre><script>alert(1)</script>`) is provided, it could lead to client-side code execution when the AI agent executes the `open` command on the generated `index.html` as instructed in `SKILL.md`. This constitutes a significant vulnerability, but not intentional malice by the script's author.
能力评估
Purpose & Capability
The script and SKILL.md both implement batch image generation via the OpenAI Images API (prompts → API calls → PNGs + index.html). That functionality aligns with the skill name and description. However, registry metadata claims no required env vars while SKILL.md and scripts require OPENAI_API_KEY (and optionally OPENAI_BASE_URL / OPENAI_API_BASE). The _meta.json ownerId/version/publishedAt values do not match the registry metadata, indicating sloppy or inconsistent packaging.
Instruction Scope
SKILL.md instructs running the included Python script and opening the generated index.html; the script only talks to the OpenAI API and (if returned) downloads image URLs from whatever the API returns. The instructions reference a hard-coded path (~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py) and output locations (~/Projects/tmp/...) which may not match the skill's installed location — this is an operational mismatch but not direct malicious behavior. The instructions do not ask the agent to read unrelated files or exfiltrate data.
Install Mechanism
There is no install spec; this is instruction + a Python script. No package downloads or extract steps are present, minimizing install-time risk. The script uses only stdlib modules and writes output files locally.
Credentials
The script requires an OPENAI_API_KEY at runtime (and optionally reads OPENAI_BASE_URL / OPENAI_API_BASE). The registry metadata lists no required env vars, which is inconsistent and deceptive. Requiring an API key for this purpose is reasonable, but the manifest/instructions mismatch should be corrected and the user should be aware they'll need to provide a valid OpenAI key (which will be sent to the configured base URL).
Persistence & Privilege
The skill is not always-enabled, does not request elevated privileges, and does not modify other skills or global agent configuration. It writes files to standard user paths (~/Projects/tmp or ./tmp) which is expected for a generator tool.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openai-image-gen-fixed - 安装完成后,直接呼叫该 Skill 的名称或使用
/openai-image-gen-fixed触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Fix OpenAI Images API compatibility: remove response_format; support b64_json or url.
元数据
常见问题
Openai Image Gen 是什么?
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 659 次。
如何安装 Openai Image Gen?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openai-image-gen-fixed」即可一键安装,无需额外配置。
Openai Image Gen 是免费的吗?
是的,Openai Image Gen 完全免费(开源免费),可自由下载、安装和使用。
Openai Image Gen 支持哪些平台?
Openai Image Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openai Image Gen?
由 saschaSpoonbill(@saschaspoonbill)开发并维护,当前版本 v1.0.2。
推荐 Skills