← Back to Skills Marketplace
wangshengli0421

Tianshu Image

by tianshu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
246
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install tianshu-image
Description
使用阿里云通义万相 (DashScope) 生成图片。Use when: 用户需要根据文字描述生成图片;用户说「画一张」「生成图片」「文生图」。 NOT for: 图片编辑、风格迁移、其他非文生图场景。
README (SKILL.md)

天树文生图 (tianshu-image)

使用阿里云通义万相 API 根据文字描述生成图片,Node.js 实现,无需 Python/uv。

When to Run

  • 用户说「画一张」「生成图片」「文生图」「根据这段描述生成图」
  • 用户提供图片描述,需要 AI 生成对应图片

前置配置

~/.openclaw/openclaw.jsonskills.entries.tianshu-image 中配置,或设置环境变量:

Workflow

  1. 确认用户需要生成图片
  2. 执行脚本:
    node ~/.openclaw/skills/tianshu-image/scripts/generate_image.js --prompt "描述" [--size 1664*928]
    
  3. 脚本输出 MEDIA_URL: \x3Curl>MEDIA: \x3C本地路径>
  4. 用 Markdown 展示图片:![生成的图片](URL)

参数

  • --prompt / -p:图片描述(必填)
  • --size / -s:尺寸,默认 1664*928。可选:1024*1024720*12801280*720
  • --model / -m:模型,默认 qwen-image-max。可选:qwen-image-turboqwen-image-plus-2026-01-09
  • --filename / -f:保存到本地文件路径(可选)
  • --negative-prompt:负向提示词
  • --no-prompt-extend:禁用自动提示词增强
  • --watermark:添加水印

Output

  • 未指定 --filename 时输出 MEDIA_URL: \x3Curl>,直接展示 URL
  • 指定 --filename 时输出 MEDIA: \x3C本地路径>,表示已保存到本地
Usage Guidance
This skill will send the text prompt (and negative prompt) to Alibaba DashScope and uses the provided DASHSCOPE_API_KEY to authenticate. Only install if you trust that service and the API key you provide. Note the SKILL.md mentions alternate config locations that the script does not actually read—verify you set DASHSCOPE_API_KEY or pass --api-key when running. Be aware generated images may be returned as external URLs (the script prints MEDIA_URL) — if you prefer not to expose images to third-party hosting, use --filename to save locally. Finally, restrict the API key scope where possible and avoid supplying highly sensitive prompts or data to the skill.
Capability Analysis
Type: OpenClaw Skill Name: tianshu-image Version: 1.0.0 The skill provides a legitimate interface for generating images using Alibaba's DashScope (通义万相) API. The core logic in `scripts/generate_image.js` handles API requests, argument parsing, and optional file saving as described in the documentation. No evidence of malicious intent, data exfiltration, or prompt injection was found; the script's behavior is entirely consistent with its stated purpose.
Capability Assessment
Purpose & Capability
Name and description match the included script: the code sends a text prompt to Alibaba DashScope and returns or saves the generated image. Minor mismatch: SKILL.md mentions an alternative config key (models.providers.bailian.apiKey) and suggests storing config in ~/.openclaw/openclaw.json, but the script only reads DASHSCOPE_API_KEY or a passed --api-key; this is a documentation inconsistency, not a functional mismatch with purpose.
Instruction Scope
SKILL.md instructs running the included Node.js script and describes expected outputs — which align with the code. It also references reading openclaw.json or a different provider key, but the script does not read those paths; otherwise the instructions do not ask the agent to read unrelated files or exfiltrate arbitrary data.
Install Mechanism
No install spec and no external downloads; the skill is instruction+script only (package.json has no dependencies). This is low-risk from an installation perspective.
Credentials
Only DASHSCOPE_API_KEY (or --api-key) is required, which is proportional to a skill that calls an external image-generation API. No unrelated credentials or broad system secrets are requested.
Persistence & Privilege
Skill does not request persistent/global privileges (always is false). It can write image files only when the user supplies a --filename; it does not modify other skills or system-wide configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tianshu-image
  3. After installation, invoke the skill by name or use /tianshu-image
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Node.js 实现,替代 qwen-image,无需 Python/uv
Metadata
Slug tianshu-image
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Tianshu Image?

使用阿里云通义万相 (DashScope) 生成图片。Use when: 用户需要根据文字描述生成图片;用户说「画一张」「生成图片」「文生图」。 NOT for: 图片编辑、风格迁移、其他非文生图场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 246 downloads so far.

How do I install Tianshu Image?

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

Is Tianshu Image free?

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

Which platforms does Tianshu Image support?

Tianshu Image is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Tianshu Image?

It is built and maintained by tianshu (@wangshengli0421); the current version is v1.0.0.

💬 Comments