Xpersona
M

Meitu Beauty

CLAWHUB · Unverified

对人像照片进行 AI 美颜处理(磨皮、美白、精修五官)。当用户提到美颜、磨皮、美白、精修、beautify、beauty enhance、让照片更好看时触发。仅支持单人照片。 Skill: Meitu Beauty Owner: meitu Summary: 对人像照片进行 AI 美颜处理(磨皮、美白、精修五官)。当用户提到美颜、磨皮、美白、精修、beautify、beauty enhance、让照片更好看时触发。仅支持单人照片。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-04T13:35:10.875Z | user Version 1.1.0 introduces a comprehensive AI-powered portrait beautification workflow, supporting single-person photos only. - Added detailed workflow for input validation, preflight checks, command execution, and

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172p5qvrgas7cdjrj2jbw28mx83hxmx:meitu-beauty
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-meitu-meitu-beauty/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,756 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: meitu-beauty
description: "对人像照片进行 AI 美颜处理(磨皮、美白、精修五官)。当用户提到美颜、磨皮、美白、精修、beautify、beauty enhance、让照片更好看时触发。仅支持单人照片。"
version: "1.1.0"
metadata: {"openclaw":{"requires":{"bins":["meitu"],"env":["MEITU_OPENAPI_ACCESS_KEY","MEITU_OPENAPI_SECRET_KEY"],"paths":{"read":["~/.meitu/credentials.json","~/.openclaw/workspace/visual/"],"write":["~/.openclaw/workspace/visual/"]}},"primaryEnv":"MEITU_OPENAPI_ACCESS_KEY"}}
requirements:
  credentials:
    - name: MEITU_OPENAPI_ACCESS_KEY
      source: env | ~/.meitu/credentials.json
    - name: MEITU_OPENAPI_SECRET_KEY
      source: env | ~/.meitu/credentials.json
  permissions:
    - type: file_read
      paths:
        - ~/.meitu/credentials.json
        - ~/.openclaw/workspace/visual/
    - type: file_write
      paths:
        - ~/.openclaw/workspace/visual/
    - type: exec
      commands:
        - meitu
---

# Meitu Beauty

## Overview

一键 AI 美颜:磨皮、美白、精修五官。调用 `meitu image-beauty-enhance`,仅支持单人人像照片。

## Dependencies

- **meitu-cli** ≥ 0.1.9 — `npm install -g meitu-cli`
- **凭证配置**: `meitu config set-ak --value "..."` + `meitu config set-sk --value "..."` 或环境变量 `MEITU_OPENAPI_ACCESS_KEY` / `MEITU_OPENAPI_SECRET_KEY`

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

## Core Workflow

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

### Preflight

1. `meitu --version` → 未安装则提示 `npm install -g meitu-cli`
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 <path>`
- 图片 URL → 使用 `--image <url>`
- 对话中直接发送的图片 → 保存到临时文件后使用 `--image <path>`

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

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

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

1. 读取用户提供的图片,目视检查:
   - 是否包含人脸 → 无人脸则拒绝:"这张图片中没有检测到人像,美颜工具仅支持包含人脸的照片。"
   - 是否为单人 → 多人则拒绝:"检测到多人,美颜工具仅支持单人照片。请裁剪为单人后重试。"
   - 人脸是否足够大且清晰 → 人脸过小/模糊则警告:"人脸较小/模糊,美颜效果可能不明显,是否继续?"

2. 若无法预判(如 URL 无法预览),直接调用工具,根据返回错误处理。

**强度选择**

| 用户意图 | `--beatify_type` | 说明 |
|----------|------------------|------|
| "自然美颜"、"轻微调整"、"稍微美化"、未指定强度 | `0` | 自然效果(默认) |
| "大力美颜"、"重度磨皮"、"效果强一点"、"狠狠美颜" | `1` | 增强效果 |

**调用命令**

```bash
meitu image-beauty-enhance \
  --image <url_or_path> \
  --beatify_type <0|1> \
  --json \
  --download-dir {output_dir}
```

> **注意**: 参数拼写是 `--beatify_type`(非 `--beautify_type`),这是 CLI 的已知拼写。

**结果处理**

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

**错误降级**

先检查 `error_name` 分流,再按级别降级:

| error_name | 处理 | 可重试 |
|------------|------|--------|
| `CONTENT_REQUIREMENTS_UNMET` (code 98501) | 图片不含人脸或不符合单人要求。直接告知用户:"该图片不符合美颜要求(需要单人人像照片),请更换图片。" 不重试。 | 否 |
| `ORDER_REQUIRED` | 余额不足,提示充值,展示 `action_url` | 否 |
| `CREDENTIALS_MISSING` | 提

_meta.json

{
  "ownerId": "kn78nhpyjzskkm7fh8pp2jrf79833j52",
  "slug": "meitu-beauty",
  "version": "1.0.0",
  "publishedAt": 1775309710875
}

skill-card.md

## Description:

Meitu Beauty helps an agent run Meitu's CLI to apply AI portrait beautification, including skin smoothing, whitening, and facial refinement, for single-person photos.

This skill is ready for commercial/non-commercial use.

## Publisher:

[meitu](https://clawhub.ai/user/meitu)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agents use this skill to validate a single-person portrait photo, choose a natural or enhanced beautification strength, run the Meitu CLI, and deliver the processed image file.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Portrait photos may be sent to Meitu for beautification.

Mitigation: Use the skill only when the user is comfortable sending the selected portrait photo to Meitu.

Risk: The skill requires Meitu API credentials and may read ~/.meitu/credentials.json.

Mitigation: Prefer environment variables or managed secrets, and grant credential-file access only when necessary.

Risk: CLI install and execution steps can be unsafe when filenames, paths, or URLs are untrusted.

Mitigation: Pin and verify the Meitu CLI version, and pass user-provided paths or URLs as safely escaped or structured arguments.

## Reference(s):


## Skill Output:

**Output Type(s):** [Files, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with shell commands and a generated image file path or image URL]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces one beautified portrait image, preserving the original image format when supported.]

## Skill Version(s):

1.0.0 (source: server release metadata; artifact frontmatter and changelog mention 1.1.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Meitu Beauty and adjacent AI workflows.