Meitu Product View logo

Meitu Product View

Organization
meitu
meitu-product-view

从单张商品图生成多角度展示图(三视图、五视图、全角度)。支持白底、场景、透明底等背景模式,适配主流电商平台规格。当用户提到商品三视图、多角度展示、产品展示图、电商多角度、product multi-angle、三视图、转成三视图、生成多角度商品图时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill namemeitu-product-view
Stars
36
Forks
3
Bundled files
2
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.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Meitu Product View 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-product-view
  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-product-view .claude/skills/meitu-product-view
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Meitu Product View 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 Product View 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 Product View 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.

商品多角度展示图

从单张商品图生成多角度展示图,支持标准三视图、电商五视图、全角度展示。

Overview

用户上传一张商品图,自动生成不同角度的展示图。支持白底/场景/透明底背景,可选超分辨率增强,适配淘宝、京东、拼多多、亚马逊等电商平台规格。

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 "..."(会写入本地文件)
    • 验证: meitu auth verify --json
  • package references (bundled with this skill package):
    • references/prompts.md — 固定模板与角度 section
    • references/ecommerce-specs.md — 平台规格与视角建议
    • 这些 reference 文件是包内静态材料;在 project 模式下,如 DESIGN.md 或 openclaw.yaml 显式引用品牌资产或平台规则,还可能额外读取用户启用的 $VISUAL/assets/brands/ 与 $VISUAL/rules/platforms/

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

Core Workflow

Preflight → [Context] → Execute → Refine → Deliver → [Record]

可选步骤: [Context] — 一次性模式跳过;[Record] — can_record=false 时跳过。

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 can_record = cwd 有 openclaw.yaml AND $VISUAL 存在(两者缺一即 false)
  4. output_dir 解析(Preflight 内 MUST 完成): Resolve output_dir: openclaw.yaml → ./output/ | else → $VISUAL/output/meitu-product-view/ mkdir -p {output_dir}

Execute 中所有 --download-dir {output_dir} 使用此处解析的路径。

Context(项目模式执行 / 一次性模式跳过)

mode = one-off → 跳过此步,直接到 Execute。

mode = project → 按序加载(每步 skip if missing):

  1. 读 ./DESIGN.md → 获取项目决策和 Context References
    • 解析 references(如 brand: acme)→ 尝试读 $VISUAL/assets/brands/acme/
    • 读到 → 用最新版;读不到 → 回退到 DESIGN.md 中的内联兜底值
  2. 读 $VISUAL/rules/quality.yaml → 获取 forbidden 列表
  3. 读 $VISUAL/memory/global.md → 获取跨场景偏好
  4. 读 openclaw.yaml 的 project.types(数组,优先)或 project.type(单值 → 视为单元素数组) → 对每个 type:查找 $VISUAL/memory/scenes/{type}.md → 存在则读取并合并

→ quality forbidden list 过滤生成元素,preferences 增强创意方向 → $VISUAL 不存在 → 跳过 2-4,仅读 DESIGN.md

Execute

Step 1: 接收商品图

用户上传一张商品图。若未上传,提示:

"请上传一张商品图片(正面照效果最佳,背景简洁更利于生成质量)。"

收到图片后,分析以下信息(Agent 自行判断,不调外部工具):

分析项用途
商品品类决定推荐角度和场景
主体形状/比例填充 prompt 的 {product_description}
当前拍摄角度决定是否可作为某个视角直接使用
背景情况决定是否需要 cutout 预处理

若用户同时提供了文字描述商品信息 → 优先使用用户描述。

Step 2: 选择视图方案

展示选项:

方案包含角度适用场景
标准三视图正面、右侧、背面基础展示、快速出图
电商五视图正面、左前45°、右前45°、背面、俯视电商主图套图
全角度展示正面、左前45°、右前45°、左侧、右侧、背面、俯视、特写高端商品详情页
拼合三视图一张图内左中右排列正面+侧面+背面社交媒体、快速展示
自定义用户自选角度组合特殊需求

用户选"自定义"时,展示完整角度清单:

角度标识方位
正面front0°
左前45°front-left-quarter315°
右前45°front-right-quarter45°
左侧left-side270°
右侧right-side90°
左后45°back-left-quarter225°
右后45°back-right-quarter135°
背面back180°
俯视overhead60°仰角
微俯elevated30°仰角
仰视low-angle-30°仰角
特写close-up近距离细节

If user mentions specific e-commerce platform → read references/ecommerce-specs.md for platform-specific angle recommendations and size requirements → auto-select matching view preset + ratio + size.

Step 3: 选择背景模式

模式说明CLI 处理方式
白底纯白背景prompt 中加白底描述
场景AI 生成商品使用场景prompt 中加场景描述
保留原背景保持上传图的背景使用中文角度指令 prompt
透明底透明 PNG先白底生成,再 cutout

选择"场景"时 → 根据商品品类推荐 3 个场景描述,询问用户偏好。场景推荐原则:

品类推荐场景方向
电子产品极简桌面、科技感空间、办公场景
服饰/箱包时尚街拍场景、衣帽间、旅行场景
食品/饮品餐桌场景、厨房、野餐/户外
家居/家电客厅、卧室、现代家居空间
美妆/护肤化妆台、浴室、花艺/自然元素
运动/户外健身房、跑道、户外自然

Step 4: 预处理抠图(条件执行)

触发条件:原图背景杂乱 AND 用户选择了白底或场景模式。

bash
meitu image-cutout \
  --skill_name skill_meitu-product-view \
  --image_url {image_url} \
  --model_type 1 \
  --json

抠图结果作为后续生成的参考输入。cutout 失败 → 跳过,直接用原图。

Step 5: 逐角度生成

这是核心生成步骤。对用户选定的每个角度,调用 meitu image-edit。

工具调用模板:

bash
meitu image-edit \
  --skill_name skill_meitu-product-view \
  --image_list {source_image_url} \
  --prompt "{angle_prompt}" \
  --model praline_pro \
  --ratio {target_ratio} \
  --json \
  --download-dir {output_dir}

Prompt 构建:

  1. 从 references/prompts.md 选取对应角度的模板(按 ## {angle}-view section 定位)
  2. 填入变量:
    • {product_description} ← Step 1 分析结果
    • {background} ← Step 3 选择对应的背景后缀(见 prompts.md ## Background Suffixes)
    • {scene_description} ← Step 3 场景描述(仅场景模式)
  3. Prompt 使用英文(模型效果更好)
  4. 严禁使用 -ar、--no、(keyword:1.5)、<lora:xxx> 等平台特定语法

各角度 → prompts.md section 映射:

角度标识Prompt 模板 section
front## front-view
right-side## right-side-view
left-side## left-side-view
back## back-view
front-right-quarter## front-right-quarter-view
front-left-quarter## front-left-quarter-view
back-right-quarter## back-right-quarter-view
back-left-quarter## back-left-quarter-view
overhead## overhead-view
elevated## elevated-view
low-angle## low-angle-view
close-up## close-up-view
拼合三视图## combo-three-view

特殊情况——保留原背景模式:

使用中文 prompt(与英文模板不同,这是经验验证过的写法):

角度Prompt(原文应用,不修改)
正面将图中的商品旋转到正面朝向镜头的角度。保持商品直立,不要改变商品外观,保证背景一致性。
侧面将图中的商品旋转到从右侧面观看的角度,展示商品的侧面轮廓。保持商品直立,不要改变商品外观,保证背景一致性。
背面将图中的商品旋转到背面朝向镜头的角度,展示商品背部细节。保持商品直立,不要改变商品外观,保证背景一致性。
45°将图中的商品旋转到45度斜角观看的角度。保持商品直立,不要改变商品外观,保证背景一致性。
俯视从上方俯视角度拍摄图中的商品,展示商品顶部。保持商品直立,不要改变商品外观,保证背景一致性。
特写将图中的商品放大展示细节部分。保持商品一致性,不要改变商品外观,保证背景一致性。

特殊情况——拼合三视图:

一次性生成三个视角在同一张图内。从 references/prompts.md ## combo-three-view 取模板,填入 {product_description} 和 {background}:

bash
meitu image-edit \
  --skill_name skill_meitu-product-view \
  --image_list {source_image_url} \
  --prompt "{combo_three_view_prompt}" \
  --model praline_pro \
  --ratio 4:3 \
  --json \
  --download-dir {output_dir}

生成顺序策略:

  1. 若原图是正面 → 直接用原图作为正面视图,从其余角度开始生成
  2. 若原图不是正面 → 先生成正面,再以正面图为锚点生成其余角度
  3. 换背景模式 → 先生成正面场景图,再以正面场景图为参考生成其余角度(保证场景一致性)

换背景模式下,侧面和背面的参考图使用正面场景图(不是原图):

bash
# 先生成正面场景图
meitu image-edit \
  --skill_name skill_meitu-product-view \
  --image_list {original_image_url} \
  --prompt "{front_view_scene_prompt}" \
  --model praline_pro \
  --ratio 1:1 \
  --json \
  --download-dir {output_dir}
bash
# 以正面场景图为参考,生成其余角度
meitu image-edit \
  --skill_name skill_meitu-product-view \
  --image_list {front_scene_result_url} \
  --prompt "将图中的商品旋转到从右侧面观看的角度,展示商品的侧面轮廓。保持商品直立,不要改变商品外观,保证背景一致性。" \
  --model praline_pro \
  --ratio 1:1 \
  --json \
  --download-dir {output_dir}

--ratio 选择:

场景ratio
默认1:1
指定电商平台按 references/ecommerce-specs.md 要求
拼合三视图4:3
用户自定义按用户指定

Step 6: 超分辨率增强(可选)

触发条件:用户主动要求 OR 目标平台要求 ≥2000px(如 Amazon)。

bash
meitu image-superres-enhance \
  --skill_name skill_meitu-product-view \
  --image_url {generated_url} \
  --prompt "e-commerce product image" \
  --json \
  --download-dir {output_dir}

对每张角度图逐一 upscale。

Step 7: 透明底处理(条件)

触发条件:Step 3 选择了"透明底"。

对每张生成的角度图执行:

bash
meitu image-cutout \
  --skill_name skill_meitu-product-view \
  --image_url {generated_url} \
  --model_type 1 \
  --json \
  --download-dir {output_dir}

错误降级策略:

Level操作触发条件
L1移除 prompt 中的修饰词(lighting、material 描述),保留核心角度+商品首次生成失败
L2ratio 改为 autoL1 后仍失败
L3跳过 cutout 预处理,直接用原图生成L2 后仍失败
L4简化到最核心描述:仅 "A {angle} view of the product. White background."L3 后仍失败
L5停止,报错并显示 code 和 hint连续 2 次 L4 失败

Refine

展示所有生成的角度图,说明每张的视角。

反馈分类与响应:

用户反馈调整方式
"角度不对" / "再偏一点"调整 prompt 中的角度描述词
"商品变形了" / "不像原图"在 prompt 末尾追加 "Proportions and every detail exactly matching the uploaded photo"
"背景不好看"替换场景描述或切换背景模式
"颜色偏了"追加 "Color accuracy strictly consistent with the original photo"
"要更多角度"从角度清单中添加,增量生成(不重新生成已完成的)
"换一种风格/氛围"调整 lighting/mood 描述词
"分辨率不够"追加 upscale 处理

迭代节奏:建议最多 3 轮。超过 3 轮 → 建议:

  1. 更换原始商品图(更好的拍摄角度/光线)
  2. 分拆为单角度逐个优化
  3. 尝试不同背景模式

Deliver

output_dir 已在 Preflight 解析完毕,Execute 的 --download-dir 已将文件下载到 {output_dir}。Deliver 只做重命名:

mv {output_dir}/{task_id_file} {output_dir}/{date}_{product}_{angle}.{ext}

{ext} 取自 downloaded_files[0].saved_path 的实际扩展名。

命名规则:{date}_{product}_{angle}.{ext} 示例:2026-03-23_sneaker_front.png、2026-03-23_sneaker_back.jpg、2026-03-23_sneaker_quarter-right.png

Record(项目模式 MUST / 一次性模式跳过)

前提: can_record = cwd 有 openclaw.yaml AND $VISUAL 存在(两者缺一即 false)。不满足 → 跳过全部记录,反馈仅当前对话有效。

No feedback → 完全跳过,不读 observations.yaml,零开销。

User approved style → read $VISUAL/memory/observations/observations.yaml → scan similar key → merge or append → write back. len(projects) >= 2 → propose promotion (non-blocking). 提议(在回复末尾提及,不打断主流程):

"顺便说一下,你在 N 个项目中都偏好 X。要保存吗? → 保存到 product-photography 场景 [默认] → 保存到全局偏好 → 不保存" User confirms → write to $VISUAL/memory/scenes/{scope}.md 或 global.md,then delete observation entry User ignores → do nothing

User rejected ("不要 XX") → has openclaw.yaml → ask scope: "仅这个项目不用 XX,还是以后都不要?" → 仅项目 → append to ./DESIGN.md Constraints → 以后都不要 → append to $VISUAL/rules/quality.yaml(需用户确认) no openclaw.yaml → current task only, write nothing


Output

  • 格式:PNG(白底/场景)/ PNG with alpha(透明底)
  • 比例:默认 1:1,可按平台需求调整(见 references/ecommerce-specs.md)
  • 分辨率:默认 2K,可选 upscale
  • 命名:{date}_{product}_{angle}.{ext}

Constraints

  • 对话中不展示完整 prompt 内容(除非用户主动要求查看)
  • Prompt 模板按原文应用,仅替换 {variable} 部分
  • 保留原背景模式的中文 prompt 不做任何修改
  • 若用户语言为英文,所有交互选项翻译为英文
  • 每个角度独立生成调用,保证与原始商品的一致性
  • --download-dir 始终指向 Preflight 解析的 output_dir,不指向含源文件的目录

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Meitu Product View AI skill do?

从单张商品图生成多角度展示图(三视图、五视图、全角度)。支持白底、场景、透明底等背景模式,适配主流电商平台规格。当用户提到商品三视图、多角度展示、产品展示图、电商多角度、product multi-angle、三视图、转成三视图、生成多角度商品图时触发。

Why use Meitu Product View on TypingMind?

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

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

Which AI models can use Meitu Product View?

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 Product View?

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

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