← 返回 Skills 市场
xAI Image Generator
作者
mexicanamerican
· GitHub ↗
· v1.0.0
1145
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install xai-image-gen
功能描述
Generate images from text prompts using xAI's Grok API with options for format, batch size, and automatic media attachment in OpenClaw.
安全使用建议
Do not install this skill yet. Key issues to resolve before trusting it: 1) The bundle references a main executable 'xai-gen' but that file is not included — ask the author for the missing script or a verified repository/source. 2) Registry metadata says no env vars are required but skill.json and SKILL.md require XAI_API_KEY — confirm which is correct. 3) Inspect the xai-gen script source before running (ensure it only calls x.ai and does not exfiltrate data elsewhere). 4) Avoid blindly echoing your API key into ~/.bashrc; prefer a secure credential store or add the variable manually after reviewing. 5) Verify the API endpoint (https://api.x.ai) and the legitimacy of the publisher; if the code must be fetched from a remote repo, prefer an official GitHub release or reputable source. If the author cannot provide the missing executable and source code for review, treat the skill as incomplete and do not install.
功能分析
Type: OpenClaw Skill
Name: xai-image-gen
Version: 1.0.0
The skill bundle describes a tool for generating images via xAI's API. All provided files (metadata, documentation, test script, skill definition) consistently outline a benign purpose and standard operational procedures. There is no evidence of prompt injection against the agent, data exfiltration beyond the legitimate API call, or other malicious activities. The instructions for persisting the API key in `~/.bashrc` in `SKILL.md` are for user convenience and not indicative of malicious intent. The core executable `xai-gen` was not provided for analysis, but its described behavior and dependencies (`requests` in `requirements.txt`) align with the stated purpose.
能力评估
Purpose & Capability
Files and docs consistently describe an image-generation CLI that calls xAI's images API (https://api.x.ai). Requiring an XAI_API_KEY is proportionate. However the skill metadata at the registry top lists 'Required env vars: none' while skill.json and SKILL.md require XAI_API_KEY — that's an incoherence. Also the documentation repeatedly references a main executable 'xai-gen', but that file is not present in the provided file manifest (only test.sh and docs are included). Missing the main executable contradicts the stated capability.
Instruction Scope
SKILL.md instructs installation steps (pip install requests, chmod +x xai-gen) and suggests persisting XAI_API_KEY into ~/.bashrc via echo (which would write credentials into a shell profile). Those instructions are within scope for a CLI tool, but they also assume/require writing secrets to disk and running a missing executable. The docs and test.sh instruct the agent/user to run ./xai-gen and to output MEDIA: paths — reasonable for OpenClaw integration — but because the executable is absent, the runtime instructions cannot be followed as-is.
Install Mechanism
There is no formal install spec (instruction-only), which is low-risk normally. The SKILL.md asks to pip install requests and chmod an executable; that's typical. The concern is practical: the package claims a main executable (xai-gen) but that file is not included in the provided file list, so the installation instructions are incomplete and will fail or require fetching code from an external source (not provided).
Credentials
Requesting XAI_API_KEY is proportionate for a tool that calls xAI's API (skill.json marks it required). But the registry metadata at the top contradicts that (it lists no required env vars), indicating a mismatch between declared requirements and actual needs. SKILL.md also encourages writing the API key into ~/.bashrc, which is convenient but exposes persistent credentials on disk if users follow it; advise safer storage.
Persistence & Privilege
The skill does not request always:true, does not claim elevated privileges, and does not declare system-wide config changes beyond instructing the user to optionally add an environment variable to their shell profile. Autonomous invocation is allowed (platform default) but there's no evidence this skill requests persistent system privileges or modifies other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xai-image-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/xai-image-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
xAI Image Generator 是什么?
Generate images from text prompts using xAI's Grok API with options for format, batch size, and automatic media attachment in OpenClaw. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1145 次。
如何安装 xAI Image Generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xai-image-gen」即可一键安装,无需额外配置。
xAI Image Generator 是免费的吗?
是的,xAI Image Generator 完全免费(开源免费),可自由下载、安装和使用。
xAI Image Generator 支持哪些平台?
xAI Image Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 xAI Image Generator?
由 mexicanamerican(@mexicanamerican)开发并维护,当前版本 v1.0.0。
推荐 Skills