← 返回 Skills 市场
hanxueyuan

Coze Image Gen

作者 hanxueyuan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
384
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install coze-image-gen
功能描述
Create images from text prompts. Use when you need to generate/draw/create images based on descriptions.
使用说明 (SKILL.md)

Coze Image Generation

Generate high-quality images from text prompts using coze-coding-dev-sdk. Returns image URLs directly.

Quick Start

Single Image

npx ts-node {baseDir}/scripts/gen.ts --prompt "A futuristic city at sunset"

Batch Generation (Random Prompts)

npx ts-node {baseDir}/scripts/gen.ts --count 4

With Custom Size

npx ts-node {baseDir}/scripts/gen.ts \
  --prompt "A serene mountain landscape" \
  --size 4K

Sequential Image Generation (Story Mode)

npx ts-node {baseDir}/scripts/gen.ts \
  --prompt "A hero's journey through magical lands" \
  --sequential \
  --max-sequential 5

Script Options

Option Description
--prompt \x3Ctext> Image prompt (random if omitted)
--count \x3Cn> Number of images (default: 1)
--size \x3Csize> 2K, 4K, or WIDTHxHEIGHT (default: 2K)
--sequential Enable sequential generation (story mode)
--max-sequential \x3Cn> Max images for sequential (default: 5)

Output

The script outputs image URLs directly to stdout:

[1/1] A futuristic city at sunset
  https://example.com/generated-image.png

Text in Images

Wrap text in quotes for accurate rendering:

npx ts-node {baseDir}/scripts/gen.ts \
  --prompt 'A poster with the text "Hello World" on it'

Notes

  • Size range for custom dimensions: 2560x1440 to 4096x4096
  • Image URLs have valid expiration - use directly when possible
安全使用建议
This skill appears to do what it says (generate images using Coze's SDK), but there are two practical gaps to check before installing: - Authentication: The included script creates a Config() for the SDK but the skill does not document which API key or environment variable(s) (if any) are required, nor where the SDK will read credentials from. Expect to need an API key or other auth; check Coze's SDK docs or the package repository to learn the exact env var names or config file paths before running. Do not paste secrets into the script or chat without confirming how they are used. - Runtime package fetch: The SKILL.md runs the script via 'npx ts-node', which will fetch and execute code from npm (including the coze-coding-dev-sdk) at runtime. If you want to reduce risk, pre-install and audit the SDK package (pin a known-good version), or run the skill in an isolated environment (container) rather than on sensitive hosts. If you need help verifying which environment variables the Coze SDK uses or pinning the dependency, get the SDK package name/version or its repository URL and review its README or source. If you cannot obtain that information, consider this skill risky to run with production credentials.
功能分析
Type: OpenClaw Skill Name: coze-image-gen Version: 1.0.0 The skill bundle provides a legitimate interface for generating images via the Coze platform using the `coze-coding-dev-sdk`. The implementation in `scripts/gen.ts` is straightforward, focusing on argument parsing and API interaction, with no evidence of data exfiltration, malicious execution, or prompt injection attempts.
能力评估
Purpose & Capability
Name, description, SKILL.md examples, and scripts/gen.ts are coherent: the skill runs a TypeScript script that calls an ImageGenerationClient from 'coze-coding-dev-sdk' to produce image URLs. There are no unrelated binaries or surprising capabilities in the code.
Instruction Scope
The SKILL.md instructs the agent to run npx ts-node on the included script; the script only accepts prompt/size/count/sequential flags and calls the SDK, printing image URLs. It does not read other local files or attempt to exfiltrate arbitrary data. However, the script constructs a Config() for the SDK with no visible credentials; the SDK may read environment variables or config files not documented here, which is not explicitly disclosed.
Install Mechanism
There is no install spec; runtime execution relies on npx ts-node which will fetch packages (including 'coze-coding-dev-sdk') from npm at run time. Dynamic npx installs are common but increase risk because network-fetched code will execute on demand. The package source/version is not pinned or documented in the skill.
Credentials
The skill declares no required environment variables, yet the script instantiates a Config() for an external SDK — likely the SDK needs API credentials (env vars, config files, or an auth flow). The absence of declared/required credentials or documentation about where to provide them is a proportionality/visibility concern: you should expect to provide an API key or other secret to actually use the service, but the skill does not state which variable names, config paths, or auth steps are used.
Persistence & Privilege
The skill does not request persistent presence (always is false), does not modify other skills or system-wide settings, and does not write files. Autonomous invocation is allowed by platform default but is not combined with other high privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install coze-image-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /coze-image-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of coze-image-gen. - Generate high-quality images from text prompts via command line. - Supports single, batch, and sequential ("story mode") image creation. - Customizable image sizes, including presets and custom dimensions. - Outputs direct image URLs to stdout. - Random prompt generation available if prompt not specified.
元数据
Slug coze-image-gen
版本 1.0.0
许可证 MIT-0
累计安装 4
当前安装数 3
历史版本数 1
常见问题

Coze Image Gen 是什么?

Create images from text prompts. Use when you need to generate/draw/create images based on descriptions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 384 次。

如何安装 Coze Image Gen?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install coze-image-gen」即可一键安装,无需额外配置。

Coze Image Gen 是免费的吗?

是的,Coze Image Gen 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Coze Image Gen 支持哪些平台?

Coze Image Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Coze Image Gen?

由 hanxueyuan(@hanxueyuan)开发并维护,当前版本 v1.0.0。

💬 留言讨论