meitu-product-swap

meitu-product-swap is a skill for Claude Code, Codex from meitu/meitu-skills. It costs 55 tokens per session (5,505 once invoked), scanned A, a copy of meitu-poster, MIT.

An image-editing skill for replacing products in e-commerce photos with products from reference images. It supports one-to-one, one-to-many, and many-to-one product replacements.

In plain words
What is it for?
Use it to swap the main product in a product photo, combine several product references, or recreate the look of a popular product image.
Why use it?
It helps create product variations without manually rebuilding the whole image. It is not intended for generating backgrounds or changing a model's clothes.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to swap the main product in a product photo, combine several product references, or recreate the look of a popular product image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meitu/meitu-skills/meitu-product-swap
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add meitu/meitu-skills --skill meitu-product-swap
Clone the repo
git clone --depth 1 https://github.com/meitu/meitu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for meitu-product-swap

README.md
[![agentmods](https://agentmods.dev/badge/skills/meitu/meitu-skills/meitu-product-swap/github.svg)](https://agentmods.dev/skills/meitu/meitu-skills/meitu-product-swap)
Your own site
<a href="https://agentmods.dev/skills/meitu/meitu-skills/meitu-product-swap"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/meitu-product-swap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for meitu-product-swap

Your own site · 80×15
<a href="https://agentmods.dev/skills/meitu/meitu-skills/meitu-product-swap"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/meitu-product-swap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.05505
Opus 5.5 $0.00022 $0.02202
Sonnet 5.5 $0.00011 $0.01101
Haiku 4.5 $0.00006 $0.00551

Measured 2mo ago against content hash 98c0217344b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

meitu-product-swap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to meitu-poster — 399 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/meitu-product-swap/SKILL.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

图片商品替换

Overview

根据用户上传的商品原图与目标参考图,对图片中的商品进行智能替换,生成高质量的商品融合效果图。支持一对一、一对多、多对一映射关系。

不适用场景:背景生成、模特换装

Dependencies

  • tools: meitu-cli — AI 图像处理 CLI
    • Install: npm install -g meitu-cli@latest(包名 meitu-cli)
    • Command: meitu image-edit(默认优先 praline_pro 路径,适用于多图融合/商品替换/合成)
  • credentials: 美图 AI 开放平台 API 凭证
    • 首选环境变量: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(Agent 基于模板自行组装 prompt)
    • 这些 reference 文件是随包发布的静态材料;在 project 模式下,如 DESIGN.md 或 openclaw.yaml 显式引用品牌资产或平台规则,还可能额外读取用户启用的 $VISUAL/assets/brands/ 与 $VISUAL/rules/platforms/
  • workspace (optional): {OPENCLAW_HOME}/workspace/visual/
    • Not found → skip all knowledge reads, skill works without it

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

Core Workflow

流程按实际执行顺序排列:

Preflight → [Context] → Execute → Refine → Deliver → [Record]
              ↑ 项目模式时执行                   ↑ 项目模式时执行
              ↑ 一次性模式跳过                   ↑ 一次性模式跳过

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 can_record = cwd 有 openclaw.yaml AND $VISUAL 存在(两者缺一即 false)

  4. Resolve output_dir: openclaw.yaml → ./output/ | else → $VISUAL/output/meitu-product-swap/ mkdir -p {output_dir} 硬约束:output_dir MUST NOT 指向 skill 文件夹内部

  5. 项目创建(仅当用户主动要求时): 已在项目目录中(有 openclaw.yaml)→ 跳过。否则:

    mkdir -p $VISUAL/projects/{name}/output
    

    创建 openclaw.yaml:

    project:
      name: "{name}"
      type: "meitu-product-swap"
      brand: "{brand}"
      created: "{date}"
    

    创建 DESIGN.md(空模板,含 Context References + Project Decisions + Iteration Log 三个空 section)。

Read the full file on GitHub · 335 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 335 lines · 0 tokens per session scan A 98c0217344b8

Subscribe to this mod's changes

meitu-product-swap is a skill published in the GitHub repository meitu/meitu-skills (36 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 5,505 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to meitu-poster, differing in 399 lines, and is treated as a copy.

Related

meitu-product-swap compared with skills from other repositories

meitu-product-swap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
meitu-product-swapmeitu/meitu-skillsSkill362mo agoMITA55Claude Code, Codex
amazon-reviews-api-skillbrowser-act/skillsSkill6.3k2d agoMITA124Claude Code, Codex
amazon-competitor-analyzerbrowser-act/skillsSkill6.3k2d agoMITA48Claude Code, Codex
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.1kyesterdayMITA60Claude Code
food-orderBitterbot-AI/bitterbot-desktopSkill2.5kyesterdayMITA53Claude Code, Codex
external-purchasesrshankras/claude-code-apple-skillsSkill8642d agoMITA76Claude Code
Product Photoshoot Workflowjau123/MeiGen-AI-Design-MCPSkill1.8kyesterdayMITA111Claude Code