Token导航 LogoToken导航TokenDH.com
运维敏感数据clawhub未标认证来源可访问clear审计通过

qwen-skillQwen 技能

Agent Skill

qwen-skill 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,450

周安装

180

GitHub Stars

公开资料未说明

下载量

1,397
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qwen-skill(Qwen 技能)
来源仓库:https://github.com/huiya-code/qwen-skill
安装命令:
openclaw skills install qwen-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install qwen-skill

简介

qwen-skill 通过 DashScope API 调用 Qwen Image 模型进行图像生成与编辑。

  • 适用于文生图、图生图及视觉内容优化的场景。
  • 需先读取本文件再执行脚本,不可直接调用同名 tool。
  • 使用前需配置 API 密钥,注意免费额度与付费计费规则差异。
  • 建议测试不同分辨率下的生成质量与文件大小平衡点。

SKILL.md

name
qwen-image
description
Generate and edit images with Qwen Image via DashScope API. This is a skill, not a callable tool. First use the read tool to open this SKILL.md, then run the script it specifies; never emit a tool call named qwen-image.
metadata
{"openclaw":{"emoji":"🖼️","requires":{"bins":["python3"],"env":["DASHSCOPE_API_KEY"]},"primaryEnv":"DASHSCOPE_API_KEY"}}

Qwen Image Skill

Use this skill for:

  • text-to-image generation
  • image-to-image editing (single image)
  • multi-image fusion/editing (1 to 3 input images)
  • never for file renaming by image understanding

Runtime behavior (strict)

  • qwen-image is a skill name, not a built-in tool name.
  • Never emit a tool call named qwen-image.
  • First use read on this SKILL.md, then execute the Python command below.
  • Hard requirement: do not answer from imagination. You must execute the script first.
  • Hard requirement: do not output markdown image syntax like ![](...).
  • Hard requirement: do not output JSON object in final assistant reply.
  • Hard requirement: do not describe image content unless the script actually ran successfully.
  • Hard requirement: never output MEDIA: in tool-stage outputs; only output MEDIA: in the final assistant reply.
  • Hard requirement: never transform MEDIA: lines into markdown image links.
  • Hard requirement: do not use this skill for OCR, pure image understanding, or filename renaming tasks.
  • If the user asks to rename files by image content, use qwen-vision-rename instead.
  • Run the command directly; do not output pre-check/process narration.
  • Do not read or print this SKILL.md or script source unless command fails.
  • Do not output installation/config instructions unless the user explicitly asks for setup.
  • Use script flag --emit-media-ref.
  • On success:

1) parse the last MEDIA_REF:<path-or-url> line from stdout (ignore preceding shell noise lines) 2) final reply must be exactly one line: MEDIA:<path-or-url> 3) if missing MEDIA_REF:, retry command once

  • If command was not executed, do not send a final answer.
  • On failure, output exactly 2 short Chinese sentences:

1) failure reason 2) actionable fix

Setup

Install dependencies:

pip3 install -r {baseDir}/requirements.txt

Set API key:

export DASHSCOPE_API_KEY="your_api_key"

Optional region switch:

export DASHSCOPE_REGION="sg"  # sg or bj

Or use .env (auto-loaded from current directory, then {baseDir}):

cat > .env <<'EOF'
DASHSCOPE_API_KEY=your_api_key
DASHSCOPE_REGION=sg
OPENCLAW_MEDIA_OUTBOUND_DIR=~/.openclaw/media/outbound
OPENCLAW_MEDIA_BASE_URL=
EOF

Static URL mapping example (Nginx):

location /gen/ {
  alias /home/huiya/.openclaw/media/outbound/;
  autoindex off;
}

Commands

Text to image:

python3 {baseDir}/scripts/qwen_image.py text2img \
  --prompt "A futuristic tea shop in Shanghai at night, cinematic lighting" \
  --model qwen-image-2.0-pro \
  --size "1024*1024" \
  --n 1 \
  --emit-media-ref \
  --publish-dir ~/.openclaw/media/outbound \
  --out-dir {baseDir}/tmp/qwen-image

Image to image:

python3 {baseDir}/scripts/qwen_image.py img2img \
  --images ./input.png \
  --prompt "Keep composition, convert this to watercolor style" \
  --model qwen-image-2.0-pro \
  --n 1 \
  --emit-media-ref \
  --publish-dir ~/.openclaw/media/outbound \
  --out-dir {baseDir}/tmp/qwen-image

Notes

  • Recommended default: qwen-image-2.0-pro (quality first). qwen-image-2.0 can be used for faster/cheaper runs.
  • Input images can be local paths, public URLs, or data:image/...;base64,....
  • Returned image URLs are temporary. The script downloads images immediately to --out-dir.
  • Published images are copied to OPENCLAW_MEDIA_OUTBOUND_DIR (default: ~/.openclaw/media/outbound).
  • The script also writes .view.html preview pages and uses those URLs in visible text to reduce markdown-image rewrites.
  • OPENCLAW_MEDIA_BASE_URL is optional. Keep it empty for portable packaging; set it per deployment only when you need public links (e.g. https://example.com/gen or local http://127.0.0.1:8090).
  • --emit-media-ref + final one-line MEDIA: reply is recommended for Feishu to avoid duplicate media sends.
  • If you specifically need plain text URL in Control UI, use --reply-format link.
  • Existing shell environment variables override .env values.
  • If endpoint is not explicitly set, the script auto-retries once with the other region endpoint when receiving InvalidApiKey.

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.26%
按下载量换算1,205

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills