Image Element Remove logo

Image Element Remove

Organization
meitu
image-element-remove

从已有图片里去掉水印、文字或局部物体,覆盖通用水印消除、文档半透明水印消除、局部物体消除和指定文字消除。仅在用户明确要求对当前图片做这些删除操作时触发;模糊的“去掉字”或未说明对象的泛化修图请求不单独触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nameimage-element-remove
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 Image Element Remove 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/image-element-remove
  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/image-element-remove .claude/skills/image-element-remove
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Element Remove 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 Image Element Remove 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 Image Element Remove 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.

图片消除(image-element-remove)

Overview

对已有图片做元素消除(去水印/去文字/去局部物体),覆盖 4 类场景:通用水印消除(一键去水印含半透明)、文档场景半透明水印、局部物体/元素/指定文字消除、降级兜底链。路由铁律:用户指定具体文字内容时必须使用 praline_pro(路径 C),禁止走通用水印/全部文字路径(否则会清除全部文字)。

执行前应让用户清楚知道:本 Skill 会读取 Meitu 凭证、调用本地 meitu CLI、将用户提供的图片与生成的消除指令发送到 Meitu OpenAPI 处理,并把结果写入 ./output/ 或 $VISUAL/output/image-element-remove/。若请求涉及去水印、去 Logo、去认证/署名信息或类似来源标识,应提醒用户确认自己具备合法编辑权限。

API Mapping

  • 通用水印/全部文字消除:通用消除路径。
  • 文档场景半透明水印:文档水印路径。
  • 局部物体或指定文字消除:优先 praline_pro,失败依次降级为 praline_lite、mint_edit。

Dependencies

  • meitu-cli: >=2.0.6(npm install -g meitu-cli@latest)
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 实际执行(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

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

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6(否则 npm install -g meitu-cli@latest)
  2. 确认已跑过 meitu tools update(用 CONFIG AKSK)
  3. 当前 AKSK = EXEC,且 MEITU_OPENAPI_TOOL_TASK_MODE=command
  4. 解析 output_dir:openclaw.yaml → ./output/ |else → $VISUAL/output/image-element-remove/;mkdir -p

Execute

触发信号 / 路由规则

核心判断维度:前置判断(指定文字?) + 消除内容类型。

决策顺序:

  1. 前置判断(路由铁律):用户引用/描述了特定文字内容?
    • ✅ 是 → 强制使用 praline_pro(禁止走通用消除路径)
    • ❌ 否 → 继续分类
  2. 按消除内容分支:
    • 路径 A:去水印 / 去全部文字(全量词) → 通用消除路径
    • 路径 B:明确文档场景半透明水印 → 文档水印路径
    • 路径 C:局部物体/指定文字 → praline_pro → 降级链
场景判定关键词路由
指定具体文字内容(铁律)去掉'xxx'、去除文字'xxx'praline_pro
通用水印去水印、去掉水印、去半透明水印通用消除路径,target=watermark
全部文字(含全量词)去全部文字、所有文字、一键去文字通用消除路径,target=text
文档场景半透明水印(用户原话明确)文档水印、扫描件水印、小说水印文档水印路径
局部物体/元素去路人、去 Logo、消除杂物、去角标praline_pro → 降级链
意图模糊("去掉字")未说全部也未指定具体内容轻确认

显式约束消除原则:praline_pro、praline_lite 和 mint_edit 的消除 prompt 必须使用四段式模板(SCOPE + PRESERVE + REFLOW + NEGATIVE),显式锁定剩余元素 12 项视觉属性,防止模型顺手改动非目标元素。

参数定义

通用参数:

参数类型必填说明
image_urlSTRING是图片地址。缺失 → 提示"请提供需要处理的图片"

通用消除路径的额外参数:

参数类型必填范围默认值说明
targetSTRING否watermark / textwatermark消除目标类型

局部消除模型的额外参数:

参数类型必填说明
promptSTRING是按四段式模板(SCOPE + PRESERVE + REFLOW + NEGATIVE)生成的英文消除指令

四段式 prompt 模板:

Task: Element removal.
Remove ONLY the specified element from the image: {target_description}.
STRICTLY PRESERVE all remaining visual elements, including: font family, size, color, weight, style, stroke, shadow, position, alignment, background, lighting, composition, and any other text or objects not targeted for removal.
If the removal affects part of a text segment, REFLOW the remaining text to read as a natural, complete phrase — close any gaps, maintain baseline and alignment, preserve visual balance and typographic consistency.
DO NOT modify any other elements in the image.
DO NOT change the overall color palette, lighting, composition, or style.

工具调用

bash
# 通用水印
meitu image-element-remove --image_url <url> --target watermark --json --download-dir {output_dir} --skill_name skill_image-element-remove
bash
# 指定文字/局部物体
meitu image-element-remove --image_url <url> --prompt "<four_segment_prompt>" --model praline_pro --json --download-dir {output_dir} --skill_name skill_image-element-remove

错误降级

场景处理方式
image_url 缺失提示"请提供需要处理的图片"
image_url 不可访问直接返回无效错误,不重试
通用消除路径失败 + 用户提到"半透明"降级文档水印路径 → praline_pro → praline_lite → mint_edit
通用消除路径失败(非半透明)返回错误,不盲目降级
文档水印路径失败降级 praline_pro → praline_lite → mint_edit
praline_pro 失败自动降级 praline_lite
praline_lite 失败自动降级 mint_edit
mint_edit 失败返回错误
未检测到水印/文字返回原图,告知未检测到
内容合规拦截返回合规提示,不重试、不降级

Deliver

  • 直接使用 Preflight 解析的 output_dir
  • 从 downloaded_files[0].saved_path 读取已下载文件路径
  • mv {downloaded_files[0].saved_path} {output_dir}/{YYYY-MM-DD}_{descriptive}_image-element-remove.jpg

Output

  • 格式:JPEG/PNG(保持原格式)
  • 命名:{YYYY-MM-DD}_{descriptive}_image-element-remove.jpg
  • 位置:项目 → ./output/,一次性 → $VISUAL/output/image-element-remove/

基线 Task ID

见 references/task-id-baseline.md 中对应行。

Frequently asked questions

What does the Image Element Remove AI skill do?

从已有图片里去掉水印、文字或局部物体,覆盖通用水印消除、文档半透明水印消除、局部物体消除和指定文字消除。仅在用户明确要求对当前图片做这些删除操作时触发;模糊的“去掉字”或未说明对象的泛化修图请求不单独触发。

Why use Image Element Remove on TypingMind?

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

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

Which AI models can use Image Element Remove?

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 Image Element Remove?

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

Is the Image Element Remove 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 👇