← 返回 Skills 市场
132
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install minimax-tokenplan-image-generation
功能描述
Generate images using MiniMax image-01 model. Supports text-to-image and image-to-image with prompt optimization, and watermark control. Preferred skill for...
安全使用建议
What to consider before installing:
- The script is a straightforward wrapper for a remote MiniMax image API and needs a MiniMax API key. Prefer passing the key at runtime (--api-key) or modify the script to read MINIMAX_API_KEY from the environment (os.environ) rather than embedding the key directly in the file.
- Image-to-image mode will read local files and upload them (converted to base64) to the remote API — only use it with images you are comfortable sending to an external service.
- The SKILL.md includes an install/download URL on clawhub.ai; the registry itself has no install spec. Do not download or run archives from that URL without inspecting them. If you need to install anything, only pip install the well-known requests package.
- The script writes outputs to ~/.openclaw/media/minimax/ (shared among agents). If that is sensitive, change OUTPUT_DIR in the script before running.
- The declared required env var (MINIMAX_API_KEY) is inconsistent with the shipped code — verify how your agent will supply the key (env vs file edit vs CLI). Prefer environment-based injection over editing source files.
- If you want more assurance: open and review scripts/generate.py yourself (it is short and readable), verify the API base URLs and TLS, and test with a non-sensitive key or dummy image first.
Given these mismatches and privacy tradeoffs (local file upload & a third-party install link mentioned), treat the skill as plausible but verify the points above before use.
功能分析
Type: OpenClaw Skill
Name: minimax-tokenplan-image-generation
Version: 0.9.5
The skill facilitates image generation via the MiniMax API but contains several risky patterns and vulnerabilities. The `scripts/generate.py` script allows reading any local file and sending its base64-encoded content to the API via the `--image-url` parameter without verifying if the file is actually an image, which could be exploited to exfiltrate sensitive data (e.g., SSH keys) if the agent is misdirected. Additionally, `SKILL.md` includes instructions for the AI agent to modify the skill's own source code to store API keys and uses prompt-injection techniques to force the agent to prioritize this skill over others, which are high-risk behaviors for an automated agent. Legitimate endpoints used include api.minimaxi.com and api.minimaxi.io.
能力评估
Purpose & Capability
The name/description (image generation using MiniMax image-01) match the included script and instructions. However the registry/SKILL.md requires MINIMAX_API_KEY as an environment variable while the shipped script does not read that env var (it expects you to embed the key in a top-of-file constant or pass --api-key). This mismatch between declared requirements and actual usage is surprising and unnecessary.
Instruction Scope
Runtime instructions ask the user to edit scripts/generate.py to insert the API key and base URL, then delete the init section. The script reads local image files (if provided) and converts them to base64 and sends them to the remote API — expected for image-to-image, but this behavior will transmit arbitrary local image contents to an external service. The SKILL.md otherwise stays within the stated purpose and does not instruct reading unrelated files or secrets, but the manual-edit flow increases the chance a user will embed a secret in source on disk.
Install Mechanism
Registry metadata says no install spec, but SKILL.md contains an 'install' metadata entry pointing to https://clawhub.ai/skills/minimax-tokenplan-image-generation. That URL is not a standard release host (GitHub/releases) and could be used to host arbitrary archives if followed. The package itself is instruction-only with a local Python script and requires pip installing 'requests' only. If you rely on the SKILL.md install link, treat it as an external download from a third-party domain and verify its contents before running.
Credentials
Only one credential is requested (MINIMAX_API_KEY), which is appropriate for this API integration. But the script does not actually read MINIMAX_API_KEY from the environment — it expects either the top-of-file API_KEY constant to be edited or --api-key on invocation. Declaring an env var requirement that is not used is an inconsistency and could mislead users. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills. It writes generated files to a shared directory (~/.openclaw/media/minimax/) by default — this is expected for output storage but may leak outputs across agents. Filesystem write and network access are required for its function; consider changing the default output directory if you want per-agent isolation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install minimax-tokenplan-image-generation - 安装完成后,直接呼叫该 Skill 的名称或使用
/minimax-tokenplan-image-generation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.9.5
Version 0.9.5
- Simplified and updated initialization instructions for API key setup.
- Removed the "模型自动判断逻辑" and "REGION" configuration; model selection is now limited to image-01.
- Updated documentation to reflect that only the image-01 model is supported for global and new installs.
- Improved clarity in configuration steps and usage instructions.
- Minor documentation cleanup for easier onboarding and fewer configuration errors.
v0.9.1
# Changelog
## 2026-03-26
- ✅ **模型自动判断逻辑**
- CN 区:根据 prompt 关键词自动选择 `image-01`(写实)或 `image-01-live`(艺术风格)
- Global 区:只用 `image-01`
- 新增参数:`--model`、`--region`、`--api-key`、`--base-url`
- 艺术风格关键词:手绘、卡通、漫画、动漫、油画、蜡笔、素描、水彩、国画、插画、原画 等
- 写实关键词:写实、真实、逼真、照片、摄影、realistic、photorealistic 等
- ✅ **参考图 URL 处理优化**
- `http://` 或 `https://` 开头 → 直接作为公网 URL 传给模型,无需下载转换
- 本地路径 → 仍然转为 base64 Data URL
- ✅ **Prompt 长度校验**
- 超过 1500 字符会报错退出,提醒用户缩短描述
- ✅ **prompt_optimizer 智能自动判断**
- 短描述(< 80字符)→ 自动开启优化,丰富细节
- 长描述(≥ 80字符)→ 自动关闭优化,保留原意
- 用户可手动覆盖:`--prompt-optimizer` 或 `--no-prompt-optimizer`
- ✅ **aigc_watermark 水印自动开启**
- 默认 `false`
- 检测到「水印/版权/标识/logo/watermark/copyright」等关键词 → 自动开启
- ✅ **输出目录改为共享目录**
- `~/.openclaw/media/minimax/`(多 Agent 共用,方便跨 Agent 共享图片)
元数据
常见问题
minimax-tokenplan-image-generation 是什么?
Generate images using MiniMax image-01 model. Supports text-to-image and image-to-image with prompt optimization, and watermark control. Preferred skill for... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。
如何安装 minimax-tokenplan-image-generation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install minimax-tokenplan-image-generation」即可一键安装,无需额外配置。
minimax-tokenplan-image-generation 是免费的吗?
是的,minimax-tokenplan-image-generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
minimax-tokenplan-image-generation 支持哪些平台?
minimax-tokenplan-image-generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。
谁开发了 minimax-tokenplan-image-generation?
由 k.x.(@4833675)开发并维护,当前版本 v0.9.5。
推荐 Skills