← Back to Skills Marketplace
Image Generator
by
wangziiiiii
· GitHub ↗
· v1.0.1
· MIT-0
369
Downloads
1
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install siliconflow-image-generator
Description
SiliconFlow text-to-image and image-to-image generation for covers, posters, and campaign creatives. Use when users ask 生成配图/做海报/文生图/图生图. Supports prompt-dri...
Usage Guidance
This skill appears to implement the described SiliconFlow image-generation functionality, but pay attention to a few issues before installing or running it:
- Verify where it will look for your API key. The SKILL.md mentions ~/.openclaw/openclaw.json and environment variables (SILICONFLOW_API_KEY, API_KEY), but the scripts are hard-coded to E:/openclaw/.openclaw/openclaw.json (Windows absolute path). If you rely on automatic config discovery, confirm the script will actually find the correct file — otherwise set SILICONFLOW_API_KEY explicitly.
- Review the bundled scripts yourself. They POST to api.siliconflow.cn, which is expected; they also read any image file you pass via image_path and base64-embed it for upload. Ensure you only supply files you intend to send.
- The package has no install/spec for dependencies. The scripts require the Python 'requests' library; run them in a controlled Python environment (virtualenv) and install requests before use.
- Because the scripts attempt to read a local OpenClaw config file, check that file for other secrets you would not want a third-party script to access. If you are uncertain, set the API key via environment variable instead of relying on auto-discovery.
- If you do not trust the source (owner and homepage are unknown), run the scripts in an isolated environment (container/VM) or inspect/modify the code first.
If you can confirm the config-path behavior and run in a controlled environment (or provide the API key via env var), the skill is functionally coherent. The hard-coded path, duplicated CONFIGS entries, and missing dependency declaration are the primary issues to address.
Capability Analysis
Type: OpenClaw Skill
Name: siliconflow-image-generator
Version: 1.0.1
The skill provides image generation via the SiliconFlow API, but contains a significant vulnerability in `scripts/img2img.py`. The script reads arbitrary local files specified by the `image_path` parameter and sends their base64-encoded content to the external endpoint `api.siliconflow.cn`. While intended for image processing, this lacks path sanitization and could be exploited to exfiltrate sensitive system files. Additionally, both `scripts/img2img.py` and `scripts/txt2img.py` contain hardcoded Windows-specific absolute paths (`E:/openclaw/.openclaw/openclaw.json`) for credential harvesting from the OpenClaw configuration.
Capability Assessment
Purpose & Capability
The scripts implement text-to-image and image-to-image calls to the declared SiliconFlow endpoint and model (https://api.siliconflow.cn/v1/images/generations, model Kwai-Kolors/Kolors), which matches the skill description. However, the code looks for OpenClaw configuration at a hard-coded Windows path (E:/openclaw/.openclaw/openclaw.json) while the SKILL.md tells users to use ~/.openclaw/openclaw.json; duplicate entries and the absolute E: drive path are inconsistent and unexpected. The scripts also include unrelated 'Related sites' links in the README (jisuapi), which are not needed for image generation.
Instruction Scope
The SKILL.md instructs the agent to run the provided Python scripts and to provide prompts and optional image inputs. The scripts read the image supplied by the user (image_path/image_base64/image_url) and will base64-embed a local image when image_path is used — this is expected behavior for image upload. The scripts also attempt to read an OpenClaw config file to discover an API key; that file read is limited to the configured path(s) but could expose any secrets stored there if present. There is no instruction or code that reads arbitrary other system files or transmits data to unexpected endpoints beyond SiliconFlow.
Install Mechanism
This is instruction-only (no installer) but includes Python scripts that depend on the 'requests' package. There is no install spec or dependency declaration to ensure 'requests' (or a specific Python version) is present. That is an operational omission (not necessarily malicious) but can cause runtime failures and surprises when users run the scripts. Having code bundled without a clear install/dependency step is a coherence problem.
Credentials
The only credentials the code tries to use are SILICONFLOW_API_KEY or API_KEY env vars, or an API key parsed from an OpenClaw config file. Those are proportionate to calling the remote image API. However, the code's hard-coded config path(s) may not match the user's real OpenClaw config location, and reading a local config file could surface other stored secrets if that file includes unrelated keys. The skill's registry metadata stated 'no required env vars' (i.e., none mandatory), which is consistent with the scripts supporting but not requiring environment variables.
Persistence & Privilege
The skill does not request permanent/always-on presence, does not modify other skills' configs, and does not request elevated platform privileges. It only contains runnable scripts and uses network calls to the SiliconFlow API — expected for this functionality.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install siliconflow-image-generator - After installation, invoke the skill by name or use
/siliconflow-image-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Sync latest local fixes and docs
v1.0.0
Launch public skill with clearer landing copy
Metadata
Frequently Asked Questions
What is Image Generator?
SiliconFlow text-to-image and image-to-image generation for covers, posters, and campaign creatives. Use when users ask 生成配图/做海报/文生图/图生图. Supports prompt-dri... It is an AI Agent Skill for Claude Code / OpenClaw, with 369 downloads so far.
How do I install Image Generator?
Run "/install siliconflow-image-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Image Generator free?
Yes, Image Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Image Generator support?
Image Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Image Generator?
It is built and maintained by wangziiiiii (@wangziiiiii); the current version is v1.0.1.
More Skills