← 返回
未分类 Key

Qwen Vision Rename

根据图片内容批量重命名本地图片文件。这是一个 skill,不是可调用工具;先用 read 打开本文件,再执行脚本命令,绝不能直接发出名为 qwen-vision-rename 的 tool call。用户提到“改名/重命名/按图片内容命名/整理图片文件名/整理图片”时必须使用本技能。默认直接执行改名,仅在用户明确...
根据图片内容批量重命名本地图片文件。这是一个 skill,不是可调用工具;先用 read 打开本文件,再执行脚本命令,绝不能直接发出名为 qwen-vision-rename 的 tool call。用户提到“改名/重命名/按图片内容命名/整理图片文件名/整理图片”时必须使用本技能。默认直接执行改名,仅在用户明确...
huiya-code huiya-code 来源
未分类 clawhub v1.0.0 1 版本 99838.4 Key: 需要
★ 0
Stars
📥 618
下载
💾 0
安装
1
版本
#latest

概述

Qwen Vision Rename Skill

Use this skill for:

  • understanding image content (single image)
  • batch generating content-based filenames for local image folders
  • direct batch rename with rollback support
  • naming pattern 类型-主题 (example: 邀请函-万人大会主视觉)

Runtime behavior (strict)

  • qwen-vision-rename is a skill name, not a built-in tool name.
  • First use the read tool to open this SKILL.md, then run the Python command below.
  • Never emit a tool call named qwen-vision-rename.
  • Always execute the script. Do not fabricate recognition results.
  • For rename requests, default to direct execution: run rename-dir --apply.
  • If the user explicitly says "预览/试运行/dry-run/先看方案", run without --apply.
  • Do not call qwen-image for rename tasks.
  • Requests like "整理图片/按内容分类整理" still map to this skill. This skill renames by content first; if the user explicitly asks to move files into folders, explain that separately.
  • If user does not provide a folder path, run rename-dir without --dir and let script auto-select default image directory.
  • Filename style should be 类型-主题 first, not only plain title.
  • If --apply is used, return both plan_file and rollback_file.
  • If command fails, explain failure in 2 short Chinese sentences and provide next fix.

Setup

Install dependencies:

pip3 install -r {baseDir}/requirements.txt

Set API key:

export DASHSCOPE_API_KEY="your_api_key"

Optional model and endpoint:

export DASHSCOPE_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
export DASHSCOPE_VISION_MODEL="qwen-vl-max-latest"

Commands

Describe one image:

python3 {baseDir}/scripts/vision_rename.py describe \
  --image /path/to/image.jpg

Batch dry-run plan (recommended first step):

python3 {baseDir}/scripts/vision_rename.py rename-dir \
  --dir /path/to/images

Batch apply rename:

python3 {baseDir}/scripts/vision_rename.py rename-dir \
  --dir /path/to/images \
  --apply

Auto directory (no explicit --dir, script picks default image directory):

python3 {baseDir}/scripts/vision_rename.py rename-dir --apply

Rollback by rollback file:

python3 {baseDir}/scripts/vision_rename.py rollback \
  --rollback-file /path/to/rename-rollback-YYYYMMDD-HHMMSS.json

Notes

  • Supported image extensions: jpg, jpeg, png, webp, bmp, gif, tif, tiff, heic, heif.
  • Default naming style: 类型-主题 (for example 邀请函-活动主视觉.jpg).
  • Duplicate names auto-suffix with -02, -03 ...
  • rename-dir writes a JSON plan file every run.
  • --apply creates rollback JSON for reverse operation.
  • If --dir is omitted, script tries OPENCLAW_RENAME_DEFAULT_DIR, then ~/图片, then ~/Pictures.
  • On API failure for a single image, the default behavior is skip that file and continue.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 15:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 678 📥 327,602
design-media

Qwen Skill

huiya-code
通过 DashScope API 使用通义万象生成和编辑图像。这是一项技能,而非可调用工具。请先使用读取工具打开 SKILL.md 文件,然后执行……
★ 0 📥 458
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,678