← Back to Skills Marketplace
🔌

GoAI Image Gen

by GoAI · GitHub ↗ · v1.0.1 · MIT-0
darwinlinuxwin32 ✓ Security Clean
116
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install goai-image-gen
Description
Generate AI images via GoAI API. Use when the user asks to create, generate, draw, edit, render, or make images, pictures, illustrations, posters, avatars, p...
README (SKILL.md)

When To Use

Use this skill when the user wants image generation, image editing, or reference-image-based image creation through GoAI, especially for prompts like 生成图片, 画图, 出图, 做图, 修图, and 改图.

Pass the user's image prompt through as-is unless the user explicitly asks for prompt optimization, prompt polishing, rewriting, translation, or additional creative detail. Do not silently embellish short prompts such as 画一个老虎.

Do not translate the user's prompt to another language. If the user writes in Chinese, pass Chinese to --prompt. If the user writes in English, pass English to --prompt. You may strip only lightweight request wrappers such as 帮我, 给我, , 生成, or 画一张, but do not rewrite the core prompt content.

Examples:

  • User: 给我生成一只狮子 -> --prompt "一只狮子" or --prompt "给我生成一只狮子"
  • User: 画一个老虎 -> --prompt "画一个老虎" or --prompt "一个老虎"
  • Never turn 给我生成一只狮子 into a lion unless the user explicitly asks for English translation.

Default Behavior

This package currently targets the production environment at https://mustgoai.com. Override GOAI_BASE_URL only when you intentionally need a different endpoint.

This skill now uses a single cross-platform Python entrypoint through uv. If the user does not specify a model, the script queries /api/v1/models/capabilities, sorts enabled image models by display.priority, and picks the highest-priority model.

Treat uv as the only runtime dependency the user needs to install manually. On first run, uv may create a local environment, install httpx, and download Python if the machine does not already have a usable interpreter. That first-run setup is expected and should not be described as an error.

If the user provides local image paths, the script uploads them first and sends the resulting URLs as reference_images. If the user provides remote URLs, the script passes them through unchanged.

Script Rules

Always use the Python entrypoint through uv:

uv run --project . python scripts/generate_image.py \
  --prompt "..." \
  [--model "..."] \
  [--aspect-ratio "..."] \
  [--resolution "..."] \
  [--reference "/path/to/image.png"] \
  [--reference "https://example.com/image.png"]

The Python path validates GOAI_API_KEY, defaults to https://mustgoai.com unless GOAI_BASE_URL is set, and treats 401, 402, 429, content blocking, missing task_id, missing image_url, and backend terminal failure states as hard failures. Polling follows the web client behavior: it checks every 3 seconds, retries transient polling errors, and waits for a backend terminal status instead of enforcing a client-side timeout.

The Python entrypoint self-heals into uv run if it is accidentally invoked as python scripts/generate_image.py ... or python3 scripts/generate_image.py .... Do not try to repair the system Python environment for this skill.

When invoking this skill through OpenClaw's exec tool, always use timeout=600 to allow up to 10 minutes for long-running image generation. Do not describe the run as timed out or killed unless the script itself exits non-zero or the backend reports a terminal failure state.

If uv is missing, explicitly guide the user to install it first:

  • macOS: brew install uv
  • Windows: winget install astral-sh.uv

After uv is installed, rerun the same command. Do not ask the user to install Python packages by hand; uv is responsible for preparing Python and the skill dependencies.

If execution reports a missing Python module such as httpx, do not run pip install, pip install --user, or pip install --break-system-packages. Re-run the skill through uv; the dependency set comes only from pyproject.toml and uv.lock.

If GOAI_API_KEY is missing, explicitly guide the user to visit https://mustgoai.com, register or log in, open Settings -> API Key, create a key, and then configure the skill env in ~/.openclaw/openclaw.json.

Output Contract

On success, print all four lines below in this order:

  • MEDIA:/absolute/path/to/generated-file
  • MEDIA_URL:https://...
  • RESULT_PATH:/absolute/path/to/generated-file
  • RESULT_URL:https://...

When responding to the user after a successful run, always include both the exact local file path and the exact public URL in plain text, even if OpenClaw already rendered or read the local media file. Do not omit the URL just because the image preview succeeded. On failure, exit non-zero and print a concise error message. Do not inline the binary output back into the conversation.

Usage Guidance
This skill appears to do what it says: it calls mustgoai.com with the GOAI_API_KEY to generate images and will upload any local reference images you provide. Before installing, consider: 1) Only provide an API key you trust to be used with mustgoai.com; the service will receive any local images you upload. 2) The skill requires the 'uv' runtime, which on first run may download Python and install dependencies — ensure you trust that tooling and network activity. 3) The skill prints the exact local file path and public URL for generated images (this reveals filesystem paths in the output). If you are comfortable with those behaviors and trust mustgoai.com (and the uv tool), the package is coherent with its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: goai-image-gen Version: 1.0.1 The goai-image-gen skill provides AI image generation via the GoAI API (mustgoai.com). It uses the `uv` package manager for dependency isolation and includes a bootstrapping script (scripts/bootstrap.py) to ensure the correct Python environment. The implementation handles image uploads with extension-based filtering (scripts/common.py) and manages long-running generation tasks through polling. The instructions in SKILL.md and agents/openai.yaml are focused on operational correctness, such as prompt fidelity and error handling, and do not contain malicious directives.
Capability Assessment
Purpose & Capability
Name/description, required env (GOAI_API_KEY), default base URL (mustgoai.com), and code all point to a GoAI image-generation client. Requiring uv and httpx is reasonable for a cross-platform Python entrypoint that installs/boots a local env.
Instruction Scope
SKILL.md instructs the agent to forward the user's prompt (no broad data collection), to use uv to run the included Python scripts, and to only read user-provided local image paths for upload. It does not instruct reading unrelated files or environment variables beyond GOAI_API_KEY/GOAI_BASE_URL, aside from showing a path in an error message for configuration guidance.
Install Mechanism
There is no explicit install spec; the skill relies on uv to create a virtual env, prepare Python, and install dependencies from pyproject.toml (httpx). This is a legitimate approach but means uv may download Python/packages on first run — ensure you trust the uv tool and the network activity it will perform.
Credentials
Only GOAI_API_KEY (primaryEnv) and optional GOAI_BASE_URL are used. Those are proportional to an API-backed image-generation skill. The code references the user's home directory only to display an example config path in an error message; it does not read other credentials.
Persistence & Privilege
The skill is not always-enabled and does not request elevated privileges or modify other skills. It uses uv to manage a local virtual environment but does not persist other system-wide changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install goai-image-gen
  3. After installation, invoke the skill by name or use /goai-image-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
No files were changed in this release. Version bump from 0.3.0 to 1.0.1 with no functional or documentation updates.
v1.0.0
- Initial release of goai-image-gen for AI image generation using the GoAI API. - Processes user prompts in both Chinese and English without translation or silent rewriting. - Uses a cross-platform Python entrypoint managed via `uv`; users only need to install `uv`. - Handles both local image paths (uploads them) and remote image URLs as references. - Provides clear instructions and concise error handling for missing dependencies or API key. - On success, outputs both absolute local file paths and public URLs for generated images.
Metadata
Slug goai-image-gen
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is GoAI Image Gen?

Generate AI images via GoAI API. Use when the user asks to create, generate, draw, edit, render, or make images, pictures, illustrations, posters, avatars, p... It is an AI Agent Skill for Claude Code / OpenClaw, with 116 downloads so far.

How do I install GoAI Image Gen?

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

Is GoAI Image Gen free?

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

Which platforms does GoAI Image Gen support?

GoAI Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).

Who created GoAI Image Gen?

It is built and maintained by GoAI (@goai); the current version is v1.0.1.

💬 Comments