← 返回 Skills 市场
gkhcsc

Jimeng Image Skill Openclaw

作者 gkhcsc · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
326
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install jimeng-image-skill-openclaw
功能描述
Generate images from text prompts using the Jimeng API with customizable size, scale, seed, and output path via Python scripts.
使用说明 (SKILL.md)

Jimeng-Image

When to use this skill

Use this skill when user express "You need generate a image".

How to use this skill

  1. You need putAccess Key and Secret Key via either environment variable: Jimeng_Secret_Key and Jimeng_Access_Key=..., or~/.openclaw/.env line: Jimeng_Secret_Key=... and Jimeng_Access_Key=... on your environment variable.

  2. You need to execute scripts/main.py

  3. When the response is arrive, the script will save the png file on ~/.openclaw/workspace/images. (The script will create images dir if the images dir is not exist)

  4. Finally, you need send the new image to user by same channel,such as qqbot etc. from ~/.openclaw/workspace/images

Requirement

  • argparse
  • datetime
  • volcengine-python-sdk
  • base64
  • os

If not exits ,you need pip it.

Tips:

  • the baseDir is your workspace /skills/Jimeng-Image
  • If the user does not specify the output path,the output dir is ~/.openclaw/workspace/images

Command example

user:

​ i need a image by prompt:"A girl in an anime style"

You:

​ Run from the OpenClaw workspace:

 python3 {baseDir}/scripts/main.py --prompt "A girl in an anime style"

user:

​ i need a image by prompt:"A girl in an anime style and width is 512 and height is 512"

You:

​ Run from the OpenClaw workspace:

python3 {baseDir}/scripts/main.py --prompt "A girl in an anime style" --width "512" --height "512"

The Script command line parameter

参数 类型 默认值 说明
--prompt str 'none' Path of the prompt file
--output_path str '~/.openclaw/workspace/images' The saving path of the output file
--use_pre_llm bool False Whether to use a pre-trained language model
--seed int -1 Random seed ( -1 indicates random )
--scale float 1.0 The scaling ratio of the output image
--width int 1920 The width (in pixels) of the output image
--height int 1080 The height (in pixels) of the output image
安全使用建议
What to check before installing or running this skill: - Credentials: The SKILL.md and script require environment variables Jimeng_Access_Key and Jimeng_Secret_Key, but the skill metadata does not declare them. Do not provide secrets until you are comfortable with where they will be sent. Prefer creating a scoped API key with minimal permissions. - Review network dependency: The script uses volcengine-python-sdk (a third-party package). Inspect that package's source or install it in an isolated environment if you plan to run the skill. - Inspect the script: The script writes PNG files to the configured output_path. Note it uses '~' in the default path but does not call os.path.expanduser, so it may create a directory literally named '~' rather than your home path — test in a safe directory first. - Prompt-injection artifact: The SKILL.md contains unicode control characters flagged by a scanner; this could be benign (bad encoding) or an attempt to evade detection. Open the file in a hex/clean-text viewer and remove unexpected control characters. - Run in isolation: Because the skill will call an external image-generation API with your keys, run it first on a throwaway account or in an isolated container/VM to verify behavior and network endpoints. - Metadata fix: Prefer installing only after the skill owner updates the registry metadata to declare the required environment variables and primary credential so you can audit permissions more easily. If you want, I can: (1) show exact lines in SKILL.md that contain control characters, (2) suggest a minimal patched version of the script (expanduser, create intermediate dirs), or (3) provide commands to run the script safely in a container.
功能分析
Type: OpenClaw Skill Name: jimeng-image-skill-openclaw Version: 0.1.0 The skill is a standard implementation for generating images using the Jimeng (Volcengine) API. The Python script (scripts/main.py) uses the official 'volcengine-python-sdk' to process requests and correctly handles API credentials via environment variables. There are no signs of malicious intent, data exfiltration, or dangerous command execution in either the code or the agent instructions (SKILL.md).
能力评估
Purpose & Capability
The skill's stated purpose is image generation via Jimeng, which matches the included Python script that uses volcengine.VisualService. However the package/registry metadata lists no required environment variables or primary credential while the SKILL.md and script require Jimeng_Access_Key and Jimeng_Secret_Key — this mismatch is incoherent and should have been declared in metadata.
Instruction Scope
SKILL.md instructs the agent to read environment variables or ~/.openclaw/.env and to run scripts/main.py and then send resulting images via the same channel. The actual script only reads environment variables (it does not parse ~/.openclaw/.env), writes PNG files to the configured output path, and makes network calls to the VisualService. The instructions are imprecise and include guidance (reading an .env file and 'send the image via same channel') that is outside the script's direct behavior and could encourage the agent to access ambient config or messaging connectors.
Install Mechanism
This is instruction-only with a single Python script; there is no automated install spec. The SKILL.md lists volcengine-python-sdk as a dependency to pip-install — that's a normal third-party dependency but it is networked code you should trust and possibly audit before installing.
Credentials
The skill requires two secret environment variables (Jimeng_Access_Key and Jimeng_Secret_Key) according to SKILL.md and the script, but the registry metadata does not declare any required env vars or a primary credential. Requesting those secrets is proportionate to the stated purpose, but omitting them from metadata is a transparency problem and increases risk because users may not realize what credentials will be used.
Persistence & Privilege
The skill does not request always:true, does not attempt to modify other skills or global agent settings, and only writes generated images into the user's workspace. It creates directories and files but does not request elevated privileges or persistent platform-level presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jimeng-image-skill-openclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jimeng-image-skill-openclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of Jimeng-Image skill for generating images via the Jimeng API. - Supports image generation based on user prompts using a Python script. - Images are saved automatically to ~/.openclaw/workspace/images. - Command line allows customization of prompt, width, height, output path, and other parameters. - Authentication via environment variables Jimeng_Secret_Key and Jimeng_Access_Key is required. - Includes usage instructions, requirements, and command examples.
元数据
Slug jimeng-image-skill-openclaw
版本 0.1.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Jimeng Image Skill Openclaw 是什么?

Generate images from text prompts using the Jimeng API with customizable size, scale, seed, and output path via Python scripts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 326 次。

如何安装 Jimeng Image Skill Openclaw?

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

Jimeng Image Skill Openclaw 是免费的吗?

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

Jimeng Image Skill Openclaw 支持哪些平台?

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

谁开发了 Jimeng Image Skill Openclaw?

由 gkhcsc(@gkhcsc)开发并维护,当前版本 v0.1.0。

💬 留言讨论