Meitu Beauty logo

Meitu Beauty

Organization
meitu
meitu-beauty

对单人人像照片进行 AI 美颜处理(磨皮、美白、精修五官)。仅在用户明确要求单人人像美颜、磨皮、美白或人像精修,并已提供人像照片时触发;泛化的“让照片更好看”“修一下”不单独触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namemeitu-beauty
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 Beauty 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-beauty
  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-beauty .claude/skills/meitu-beauty
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Meitu Beauty 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 Beauty 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 Beauty 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 Beauty

Overview

一键 AI 人像精修:磨皮、美白、面部细节优化。基于 meitu image-edit --model gummy_pro 做写实人像修饰,仅支持单人人像照片。

执行前应让用户清楚知道:本 Skill 会读取 Meitu 凭证、调用本地 meitu CLI、将用户提供的人像图片与生成提示发送到 Meitu OpenAPI 处理,并把结果写入 ./output/ 或 $VISUAL/output/meitu-beauty/。人像照片属于敏感的个人外观数据,需确认用户对所处理照片具备使用和处理授权。

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-beauty/ mkdir -p {output_dir}

Execute

输入获取

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

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

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

人像校验(关键前置步骤)

此工具仅支持单人人像。调用前 MUST 校验:

  1. 读取用户提供的图片,目视检查:

    • 是否包含人脸 → 无人脸则拒绝:"这张图片中没有检测到人像,美颜工具仅支持包含人脸的照片。"
    • 是否为单人 → 多人则拒绝:"检测到多人,美颜工具仅支持单人照片。请裁剪为单人后重试。"
    • 人脸是否足够大且清晰 → 人脸过小/模糊则警告:"人脸较小/模糊,美颜效果可能不明显,是否继续?"
  2. 若无法预判(如 URL 无法预览),直接调用工具,根据返回错误处理。

强度选择

用户意图prompt 追加语句说明
"自然美颜"、"轻微调整"、"稍微美化"、未指定强度natural portrait retouch, keep facial structure unchanged自然效果(默认)
"大力美颜"、"重度磨皮"、"效果强一点"、"狠狠美颜"strong but realistic skin smoothing, brighter complexion, keep facial structure unchanged增强效果

调用命令

bash
meitu image-edit \
  --skill_name skill_meitu-beauty \
  --image_list <url_or_path> \
  --prompt "<beauty_instruction>" \
  --model gummy_pro \
  --json \
  --download-dir {output_dir}

注意: 2.0.6 已无 image-beauty-enhance。人像美颜、肤质优化、细节修饰统一通过 image-edit --model gummy_pro 完成。

结果处理

  • ok: true → --download-dir 已指定,从 downloaded_files[0].saved_path 获取本地文件路径;若未使用 --download-dir,从 media_urls[0] 获取结果图片 URL
  • ok: false → 进入错误降级

错误降级

先检查 CLI 原始错误字段 code、hint、error_name、action_url,再按 meitu-tools 规则归类为 error_type 后分流:

error_type(由 CLI 原始字段归类)处理可重试
CONTENT_REQUIREMENTS_UNMET(或 CLI 原始错误 code=98501 / error_name=CONTENT_REQUIREMENTS_UNMET)图片不含人脸或不符合单人要求。直接告知用户:"该图片不符合美颜要求(需要单人人像照片),请更换图片。" 不重试。否
ORDER_REQUIRED余额不足,提示充值,展示 action_url否
CREDENTIALS_MISSING提示配置 AK/SK否
其他错误按以下级别降级 ↓视情况

通用降级(仅 retryable: true 或未知错误时):

级别策略操作
L1降低强度将强修饰 prompt 收敛为 natural portrait retouch, keep facial structure unchanged 后重试
L2检查图片质量提示用户更换更清晰、人脸更大的照片
L3检查图片格式确认为 JPG/PNG/WEBP,非 GIF/BMP 等不支持格式
L4停止报错连续 2 次失败 → 报告 code + hint,停止重试

Deliver

直接使用 Preflight 解析的 output_dir。

mv {file} {output_dir}/{date}_beauty_{original_name}.{ext}

命名示例:2026-03-23_beauty_portrait.jpg

Output

项目规格
格式与原图一致(通常 JPG)
数量单张
命名{date}_beauty_{original_name}.{ext}
位置由 Deliver 步骤解析

Frequently asked questions

What does the Meitu Beauty AI skill do?

对单人人像照片进行 AI 美颜处理(磨皮、美白、精修五官)。仅在用户明确要求单人人像美颜、磨皮、美白或人像精修,并已提供人像照片时触发;泛化的“让照片更好看”“修一下”不单独触发。

Why use Meitu Beauty on TypingMind?

Because you install it once and use it with any model. Meitu Beauty 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 Beauty in TypingMind?

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

Which AI models can use Meitu Beauty?

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 Beauty?

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

Is the Meitu Beauty 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 👇