← 返回 Skills 市场
Gemini TG Image Gen
作者
RigdenDjapo
· GitHub ↗
· v1.0.0
1591
总下载
1
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install gemini-tg-image-gen
功能描述
Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG.
使用说明 (SKILL.md)
Gemini TG Image Gen (OpenRouter)
Workflow
- Immediately notify user in Telegram:
"⏳ Идёт генерация, подождите немного..." - Use OpenRouter model
google/gemini-2.5-flash-image. - Read API key from env:
OPENROUTER_API_KEY. - Run script to generate and save image locally.
- Send the image to Telegram using the
messagetool (local file path). - NO_REPLY.
Usage
OPENROUTER_API_KEY=... python3 scripts/generate_image.py "\x3Cprompt>"
The script prints a JSON object with paths.
Telegram Send
# step 1: waiting message
message action=send channel=telegram text="⏳ Идёт генерация, подождите немного..."
# step 5: send image
message action=send channel=telegram media="/root/.openclaw/workspace/tmp/openrouter_image_*.png" caption="Generated: \x3Cprompt>"
After sending, use NO_REPLY.
安全使用建议
This skill appears to implement what it claims, but there are important issues to consider before installing:
- Metadata mismatch: The skill will fail without OPENROUTER_API_KEY, but that env var is not declared in the skill metadata. Only set that API key if you trust the skill and the OpenRouter account.
- Network risk: The script downloads whatever URLs are returned by OpenRouter. If an attacker or an unexpected response supplies a URL, the agent will fetch it (possible SSRF or access to internal resources). Consider running this in a network-restricted sandbox or adding URL host validation/allowlist.
- Dependency note: The script requires Python and the requests library; the skill does not declare those requirements. Ensure your runtime provides them.
- Code issues: There's a bug in _extract_image_urls (uses an undefined b64_json variable) that may raise an exception; you may want to inspect/fix the script before use.
Recommendations:
- Ask the publisher to update the registry metadata to declare OPENROUTER_API_KEY as a required credential and list runtime dependencies.
- Prefer running the skill in an isolated environment (no access to internal networks) and/or modify the script to validate/whitelist image hosts and limit timeouts/response sizes.
- Review or test the script locally first. If you don't trust the source, avoid providing your OpenRouter API key.
功能分析
Type: OpenClaw Skill
Name: gemini-tg-image-gen
Version: 1.0.0
The skill bundle is benign. It generates images using the OpenRouter API and sends them to Telegram, as described. The `SKILL.md` instructions are clear and do not contain any prompt injection attempts or instructions to deviate from the stated purpose. The `scripts/generate_image.py` script correctly interacts with `openrouter.ai`, reads the `OPENROUTER_API_KEY` environment variable, and saves generated images to a temporary workspace directory (`/root/.openclaw/workspace/tmp`). There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation. All actions are aligned with the stated purpose.
能力评估
Purpose & Capability
The skill's stated purpose is image generation via OpenRouter and sending to Telegram, which matches the code and instructions. However the registry metadata declares no required environment variables or primary credential, while SKILL.md and scripts/generate_image.py require OPENROUTER_API_KEY. That metadata mismatch is a meaningful incoherence (the skill will fail without the API key).
Instruction Scope
SKILL.md instructs the agent to run the bundled script which calls OpenRouter and then downloads whatever image URLs/data the service returns, saves them under /root/.openclaw/workspace/tmp, and sends the local file via the Telegram message tool. Allowing the agent to fetch arbitrary URLs from the model response can let it make outbound requests to attacker-controlled or internal hosts (SSRF / unexpected network I/O). The instructions also rely on an env var (OPENROUTER_API_KEY) that wasn't declared in metadata.
Install Mechanism
There is no install spec (instruction-only + bundled script), which is lower risk than arbitrary downloads. The script uses the Python requests library but the skill metadata doesn't declare that dependency; runtime will fail or behave unpredictably if requests isn't available.
Credentials
The code expects OPENROUTER_API_KEY in the environment, but the skill metadata lists no required env vars and no primary credential. That omission is an inconsistency and should be corrected. No other credentials are requested, which is proportionate, but the missing declaration reduces transparency.
Persistence & Privilege
The skill does not request always:true, does not alter other skills, and is user-invocable. It writes files only to its workspace path (/root/.openclaw/workspace/tmp) which is expected for a generator; no elevated persistence or cross-skill modification is requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gemini-tg-image-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/gemini-tg-image-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial: Generate AI images via OpenRouter Gemini 2.5 Flash + send to Telegram. Uses OPENROUTER_API_KEY env.
元数据
常见问题
Gemini TG Image Gen 是什么?
Generate images via OpenRouter (google/gemini-2.5-flash-image) and send to Telegram. Use when user asks for AI-generated images in TG. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1591 次。
如何安装 Gemini TG Image Gen?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gemini-tg-image-gen」即可一键安装,无需额外配置。
Gemini TG Image Gen 是免费的吗?
是的,Gemini TG Image Gen 完全免费(开源免费),可自由下载、安装和使用。
Gemini TG Image Gen 支持哪些平台?
Gemini TG Image Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gemini TG Image Gen?
由 RigdenDjapo(@drones277)开发并维护,当前版本 v1.0.0。
推荐 Skills