← 返回 Skills 市场
Openai Image Gen 1.0.1
作者
shi8103312
· GitHub ↗
· v1.0.0
· MIT-0
113
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openai-image-gen-1-0-1
功能描述
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
安全使用建议
This skill appears to be a straightforward OpenAI Images batch generator, but there are two things to check before running: (1) metadata vs runtime mismatch — the SKILL.md and script require OPENAI_API_KEY but the skill metadata does not declare that; ensure you only provide a key you trust and consider a scoped/restricted key. (2) the instructions use a hard-coded path (~/Projects/agent-scripts/...) which may run a different script on your machine — instead, run the bundled script included with the skill or inspect the script file contents first. To be safe: review scripts/gen.py yourself, run python3 scripts/gen.py with --dry-run to print prompts without making API calls, run in an isolated directory, and avoid supplying your primary API key until you confirm behavior. If you plan to use a custom API base, verify that OPENAI_BASE_URL/OPENAI_API_BASE are set to a trusted endpoint.
功能分析
Type: OpenClaw Skill
Name: openai-image-gen-1-0-1
Version: 1.0.0
The skill is a standard utility for batch-generating images using the OpenAI API and creating a local HTML gallery. The Python script (scripts/gen.py) uses standard libraries for network requests and file I/O, correctly handles API keys via environment variables, and contains no evidence of data exfiltration, malicious execution, or prompt injection. While it uses a non-standard default model name ('gpt-image-1.5'), this appears to be a configuration error rather than a security risk.
能力评估
Purpose & Capability
The name/description align with the included Python script: it generates prompts and calls the OpenAI Images endpoint. However the registry metadata declares no required env vars/credentials while the SKILL.md and script require an OPENAI_API_KEY. That mismatch is unexpected and should be corrected.
Instruction Scope
SKILL.md tells users to run a hard-coded path (python3 ~/Projects/agent-scripts/skills/openai-image-gen/scripts/gen.py) and to open files under ~/Projects/tmp/..., which is inconsistent with the bundled script location. Running the documented absolute path could execute a different file on a user's machine. Otherwise, the script itself only reads an API key, optional base URL/env vars, writes images and an index.html, and makes network calls only to the API base — there is no obvious data exfiltration, but the path/usage inconsistencies are risky.
Install Mechanism
No install spec or external downloads; the code is bundled in the skill and will only be executed locally. This is the lower-risk install model.
Credentials
The script expects OPENAI_API_KEY (and optionally OPENAI_BASE_URL or OPENAI_API_BASE) but the skill metadata did not declare any required env vars or a primary credential. The API key requirement is appropriate for the task, but the omission in metadata is an incoherence and the optional API_BASE variables allow pointing to arbitrary endpoints — verify what base URL will be used before supplying secrets.
Persistence & Privilege
The skill does not request persistent/always-on inclusion and does not modify other skills or global configuration. It writes output files in the user's filesystem (~/Projects/tmp or ./tmp) which is expected for a generator.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openai-image-gen-1-0-1 - 安装完成后,直接呼叫该 Skill 的名称或使用
/openai-image-gen-1-0-1触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of openai-image-gen skill.
- Batch-generates images using the OpenAI Images API with random or custom prompts.
- Outputs: PNG images, prompt–file mapping (prompts.json), and a thumbnail gallery (index.html).
- Supports flexible parameters, including image count, model, prompt, size, output directory, and quality via command line flags.
元数据
常见问题
Openai Image Gen 1.0.1 是什么?
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。
如何安装 Openai Image Gen 1.0.1?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openai-image-gen-1-0-1」即可一键安装,无需额外配置。
Openai Image Gen 1.0.1 是免费的吗?
是的,Openai Image Gen 1.0.1 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Openai Image Gen 1.0.1 支持哪些平台?
Openai Image Gen 1.0.1 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openai Image Gen 1.0.1?
由 shi8103312(@shi8103312)开发并维护,当前版本 v1.0.0。
推荐 Skills