← Back to Skills Marketplace
luhuiwang

Ms Ai

by Luhui WANG · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ⚠ suspicious
174
Downloads
0
Stars
1
Active Installs
8
Versions
Install in OpenClaw
/install ms-ai
Description
ModelScope AI 技能:生图、改图、析图、生文。支持文生图、图生图、视觉理解、文本生成,遇到限速自动轮换模型。
Usage Guidance
This skill appears to implement exactly what it claims (ModelScope text/image/vision) but it requires MODELSCOPE_API_KEY(s) and the registry metadata does not declare that — so the platform record is incomplete. Before installing: 1) Verify you are comfortable storing MODELSCOPE_API_KEY in ~/.openclaw/openclaw.json (this stores keys in plaintext) or prefer exporting the env var instead. 2) Prefer creating a limited-privilege / limited-quota ModelScope key and rotate it if exposed. 3) Be aware the scripts print the first ~12 chars of each API key to stderr; if you collect logs or share stderr, that could leak key fragments — consider removing or changing that logging in common.py. 4) Confirm network access to https://api-inference.modelscope.cn/ is acceptable and that you consent to sending images/prompts to that service (images are uploaded/base64-encoded). 5) Ask the publisher or registry maintainer to update the skill metadata to declare MODELSCOPE_API_KEY as a required credential so the requirement is visible prior to install. If you want higher assurance, inspect the included Python files locally (they are small and readable) before running.
Capability Analysis
Type: OpenClaw Skill Name: ms-ai Version: 1.2.1 The ms-ai skill bundle is a well-implemented interface for ModelScope AI services, including image generation, vision analysis, and text generation. It features a robust model and API key rotation mechanism in `scripts/common.py` to handle rate limiting (HTTP 429). The scripts (`generate.py`, `vision.py`, `text.py`) perform standard API interactions with the legitimate ModelScope endpoint (api-inference.modelscope.cn) and include helpful instructions in `SKILL.md` for the AI agent to select appropriate image dimensions based on user context. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md and the Python scripts consistently implement text/image generation and vision features via the ModelScope API (api-inference.modelscope.cn). Functionality matches the stated purpose. However the registry metadata declared no required environment variables/primary credential while the code and SKILL.md clearly require MODELSCOPE_API_KEY (supporting multiple comma-separated keys). This mismatch is an incoherence: the skill will fail without the key but the registry does not advertise that requirement.
Instruction Scope
SKILL.md and scripts are explicit about what to run (pip install requests Pillow; run the provided scripts) and instruct editing ~/.openclaw/openclaw.json to supply MODELSCOPE_API_KEY. The scripts only read image files, a history JSON, and the MODELSCOPE_API_KEY; they transmit images/prompts to ModelScope endpoints (expected). A notable issue: the code prints the first ~12 characters of each API key to stderr when selecting keys (potential secret leakage into logs). Otherwise instructions do not request unrelated system files or unrelated credentials.
Install Mechanism
There is no install spec that downloads arbitrary code; the package includes Python scripts and documentation. Runtime requires pip packages (requests, Pillow) which the SKILL.md documents. No external binary downloads or obscure URLs are used by the install process. Network calls at runtime go to the documented ModelScope endpoints.
Credentials
The skill legitimately needs MODELSCOPE_API_KEY (and supports supplying multiple keys). Requesting a single API key for the service the skill integrates with is proportionate. However the registry metadata omits declaring this requirement (it lists no required env vars), which is misleading. Additionally, scripts reveal the first ~12 characters of each API key in stderr, which could leak key fragments into logs/telemetry; this is unnecessary and increases risk. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not set always:true and does not request elevated platform privileges. It asks the user to add a skill-scoped env entry to ~/.openclaw/openclaw.json (normal for skill-level config). The scripts do not modify other skills or system-wide config beyond advising how to add its own setting.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ms-ai
  3. After installation, invoke the skill by name or use /ms-ai
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.1
- 新增 _meta.json 文件,增加元数据支持。 - 其他无功能或代码变更。
v1.2.0
新增 --aspect 预设参数(16:9, 9:16, ppt, douyin 等),默认尺寸改为 1920x1080,SKILL.md 新增场景→尺寸速查表
v1.1.1
默认尺寸改为1024x1024,支持PPT/视频/海报/封面等不同场景自动适配尺寸
v1.1.0
Key 轮换:支持多个 API Key(逗号分隔),所有模型失败后自动切换下一个 Key。新增 common.py 共享模块,统一 Key + 模型双重轮换逻辑。
v1.0.3
文档优化,配置方式统一为 Skill 级别 env,README 更新
v1.0.2
配置方式改为 skills.entries.env,OpenClaw 自动注入环境变量
v1.0.1
修复:移除 openclaw.json 配置,统一使用环境变量 MODELSCOPE_API_KEY
v1.0.0
首次发布:生图、改图、析图、生文,模型自动轮换
Metadata
Slug ms-ai
Version 1.2.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 8
Frequently Asked Questions

What is Ms Ai?

ModelScope AI 技能:生图、改图、析图、生文。支持文生图、图生图、视觉理解、文本生成,遇到限速自动轮换模型。 It is an AI Agent Skill for Claude Code / OpenClaw, with 174 downloads so far.

How do I install Ms Ai?

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

Is Ms Ai free?

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

Which platforms does Ms Ai support?

Ms Ai is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ms Ai?

It is built and maintained by Luhui WANG (@luhuiwang); the current version is v1.2.1.

💬 Comments