← Back to Skills Marketplace
hanxueyuan

Coze Image Gen

by hanxueyuan · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
384
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install coze-image-gen
Description
Create images from text prompts. Use when you need to generate/draw/create images based on descriptions.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install coze-image-gen
  3. After installation, invoke the skill by name or use /coze-image-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug coze-image-gen
Version 1.0.0
License MIT-0
All-time Installs 4
Active Installs 3
Total Versions 1
Frequently Asked Questions

What is Coze Image Gen?

Create images from text prompts. Use when you need to generate/draw/create images based on descriptions. It is an AI Agent Skill for Claude Code / OpenClaw, with 384 downloads so far.

How do I install Coze Image Gen?

Run "/install coze-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Coze Image Gen free?

Yes, Coze Image Gen is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Coze Image Gen support?

Coze Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Coze Image Gen?

It is built and maintained by hanxueyuan (@hanxueyuan); the current version is v1.0.0.

💬 Comments