Meitu Upscale logo

Meitu Upscale

Organization
meitu
meitu-upscale

将模糊或低分辨率图片提升至高清(超分辨率)。支持人像、商品、截图、文字图等多种图片类型。当用户提到超清、变清晰、高清、提升分辨率、图片模糊、放大图片、upscale、super resolution 时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namemeitu-upscale
Stars
36
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Meitu Upscale AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/meitu/meitu-skills/tree/main/skills/meitu-upscale
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/meitu-upscale .claude/skills/meitu-upscale
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Meitu Upscale in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Meitu Upscale on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Meitu Upscale is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Meitu Upscale

Overview

一键图片超分辨率:提升分辨率、增强清晰度、降噪去压缩伪影。调用 meitu image-superres-enhance,通过内容描述让 CLI 自动选择最优超清路径。

Dependencies

  • meitu-cli ≥ 2.0.6 — npm install -g meitu-cli@latest
  • 凭证配置: 首选环境变量 MEITU_OPENAPI_ACCESS_KEY / MEITU_OPENAPI_SECRET_KEY,或预置 ~/.meitu/credentials.json;仅在用户明确要求写入本地凭证时,再执行 meitu config set-ak --value "..." + meitu config set-sk --value "..."。

路径别名: 下文中 $VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → [Context: 跳过(工具型超分,无创意自由度)] → Execute → Deliver

Preflight

  1. meitu --version → 未安装则提示 npm install -g meitu-cli@latest
  2. meitu auth verify --json → 凭证无效则引导配置
  3. Detect mode: cwd has openclaw.yaml → project mode; else → one-off 检查 $VISUAL 目录 → 确定 capabilities
  4. output_dir 解析(Preflight 内 MUST 完成): Resolve output_dir: openclaw.yaml → ./output/ | else → $VISUAL/output/meitu-upscale/ mkdir -p {output_dir}

Execute

输入获取

用户提供图片,接受以下形式:

  • 本地文件路径 → 使用 --image_url <url_or_path>
  • 图片 URL → 使用 --image_url <url_or_path>
  • 对话中直接发送的图片 → 保存到临时文件后使用 --image_url <url_or_path>

若用户未提供图片,主动询问:"请提供需要超清的图片(文件路径或 URL)。"

内容描述选择

根据图片主体内容构造 --prompt,让 image-superres-enhance 选择合适的超清路径:

主体类型--prompt 示例判断依据
人像为主portrait photo人脸是视觉焦点(证件照、自拍、人物特写)
商品/物品e-commerce product image产品、食物、实物特写、商业摄影
图形/截图text document or UI screenshotUI 截图、文字图片、插画、图标、设计稿
不确定general image无法明确归类时的默认描述

选择策略:

  • 用户明确说了主体类型 → 按上表选择对应描述
  • 用户未说明 → 用 Read 工具读取图片,目视判断主体类型
  • 无法判断(如 URL 无法预览)→ 使用 general image

调用命令

bash
meitu image-superres-enhance \
  --skill_name skill_meitu-upscale \
  --image_url <url_or_path> \
  --prompt "<content_description>" \
  --json \
  --download-dir {output_dir}

注意: 该命令面向清晰度提升与目标分辨率增强,不支持旧版 model_type。如果用户强调 2x/4x/8x 的等比几何放大,应改走 image-transform。

结果处理

  • ok: true → downloaded_files[0].saved_path 获取本地文件路径,进入 Deliver
  • ok: false → 进入错误降级

错误降级

级别策略操作
L1简化内容描述text document or UI screenshot / e-commerce product image 等专门描述失败时,回退为 general image
L2检查图片格式/内容确认为 JPG/PNG/WEBP,非 GIF/BMP/SVG 等不支持格式。INVALID_RESOURCES (10025) 也可能是内容审核拒绝 → 告知用户"图片未通过内容审核,请更换图片"
L3检查图片来源URL 不可达 → 下载到 /tmp/meitu-upscale-input.{ext} 后用本地路径重试
L4凭证/余额问题ORDER_REQUIRED → 提示充值,展示 action_url
L5停止报错连续 2 次失败 → 报告 code + hint,停止重试

临时文件完成后清理:rm -f /tmp/meitu-upscale-input.*

Deliver

直接使用 Preflight 解析的 output_dir。

mv {path} {output_dir}/{date}_upscale.{ext}

扩展名: {ext} 从 downloaded_files[0].saved_path 的实际扩展名取(服务端可能返回 .jpeg 而非 .jpg),统一转为 .jpg(即 .jpeg → .jpg)。

命名示例:2026-03-23_upscale.jpg、2026-03-23_upscale_portrait.png

Output

项目规格
格式与原图一致(JPG→JPG, PNG→PNG, WEBP→WEBP)
数量单张
命名{date}_upscale[_{context}].{ext}
位置由 Deliver 步骤解析

Boundaries

本 skill 只做超分辨率——提升分辨率和清晰度,不改变画面内容。

不做转交
美颜磨皮meitu-beauty
去水印/去路人/内容修复meitu-image-fix
风格转换image-style-transfer(或经 meitu-tools 直调)
去背景meitu-cutout
综合修图(模糊+水印+美颜)meitu-image-fix(会在管线中自动调用 upscale)

Frequently asked questions

What does the Meitu Upscale AI skill do?

将模糊或低分辨率图片提升至高清(超分辨率)。支持人像、商品、截图、文字图等多种图片类型。当用户提到超清、变清晰、高清、提升分辨率、图片模糊、放大图片、upscale、super resolution 时触发。

Why use Meitu Upscale on TypingMind?

Because you install it once and use it with any model. Meitu Upscale is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Meitu Upscale in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/meitu-upscale. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Meitu Upscale?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Meitu Upscale?

As many as you like. As long as a model supports skills, you can use Meitu Upscale with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Meitu Upscale AI skill free?

Yes. It is published on GitHub by meitu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇