← Back to Skills Marketplace
focus883

魔搭图片生成

by focus883 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
216
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install modelscope-img
Description
魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。
Usage Guidance
This skill's code matches its description: it calls ModelScope's inference API, polls for task completion, downloads the produced image, and can save an API key to ~/.modelscope/api_key. Before installing: (1) be aware you must provide a MODELSCOPE_API_KEY even though the registry metadata doesn't list it—check that the key has limited scope and rotate it if needed; (2) note the scripts will write that key to your home directory if you use --save-key—verify file permissions and consider providing the key via an environment variable instead; (3) the tool makes outbound HTTPS calls to api-inference.modelscope.cn and downloads remote image URLs—run in a sandbox or isolated environment if you have strong security constraints; (4) only install the declared pip dependencies from PyPI (requests, pillow) and inspect the included scripts yourself—if you want stronger assurance, run the scripts locally with a throwaway API key first. The primary issue is the metadata omission of the required env var; functionally the skill looks coherent but exercise the usual caution with API keys and outbound network behavior.
Capability Analysis
Type: OpenClaw Skill Name: modelscope-img Version: 1.0.2 The skill bundle provides a legitimate interface for generating images via the ModelScope API. The Python scripts (generate_qwen.py and generate_tongyi.py) handle API authentication through standard methods such as environment variables and a local configuration file (~/.modelscope/api_key), and they interact exclusively with the official ModelScope endpoint (api-inference.modelscope.cn). No malicious behavior, data exfiltration, or suspicious execution patterns were detected.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill's name/description and code match: it calls ModelScope's inference API to generate images and supports LoRA. However the skill metadata declares no required environment variables or primary credential while both SKILL.md and the scripts clearly require a MODELSCOPE_API_KEY (CLI arg, env var, or ~/.modelscope/api_key). That omission in metadata is a meaningful mismatch.
Instruction Scope
SKILL.md and the included scripts provide focused runtime instructions: send generation requests to ModelScope endpoints, poll task status, download the returned image URL, and save it. The instructions tell the user to set an API key via env/CLI/config file and to pip-install requests and pillow — all within the expected scope. The scripts do write a config file under the user's home (~/.modelscope/api_key) and download remote images, which are expected for this purpose but should be noted.
Install Mechanism
There is no install spec (instruction-only skill) and included Python scripts only depend on common pip packages (requests, pillow). No binary downloads, third‑party installers, or obscure URLs are used.
Credentials
The skill requires a single API credential (MODELSCOPE_API_KEY) in practice, which is proportionate for a cloud image-generation integration — but that credential is not declared in the registry metadata (required env vars / primaryEnv are empty). The scripts also write the API key to ~/.modelscope/api_key if the user requests saving, so users should ensure the key has appropriate scope and that the file permissions are acceptable.
Persistence & Privilege
The skill does not request elevated privileges or 'always' execution. It may write a small config file (~/.modelscope/api_key) and will perform outbound network calls to api-inference.modelscope.cn and to returned image URLs. This is consistent with its purpose but means it will persist a credential if the user chooses the save-key option.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install modelscope-img
  3. After installation, invoke the skill by name or use /modelscope-img
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Initial release of modelscope-img skill. - Added metadata file (_meta.json) for skill packaging and distribution.
v1.0.1
- No changes detected in this version. - All features and documentation remain the same as the previous release.
v1.0.0
Initial release of ModelScope image generation skill. - Generates AI images using the ModelScope API and multiple supported models. - Supports LoRA fine-tuning (single or multiple LoRA IDs/weights). - Allows prompt-based image generation with customizable output file paths. - API Key can be configured via command line, environment variable, or config file. - Simple CLI provided for quick start and flexible parameter usage. - Requires Python dependencies: requests, pillow.
Metadata
Slug modelscope-img
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 魔搭图片生成?

魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 216 downloads so far.

How do I install 魔搭图片生成?

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

Is 魔搭图片生成 free?

Yes, 魔搭图片生成 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 魔搭图片生成 support?

魔搭图片生成 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 魔搭图片生成?

It is built and maintained by focus883 (@focus883); the current version is v1.0.2.

💬 Comments