eraser-watermark
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "eraser-watermark" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-657e38df8aa9ec1d7bc63d28c8143dc963b97aab285df13f592f2a605374451a. Verify the upstream source and version against https://skillhub.cn/skills/mtyunxiu/eraser-watermark before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Image watermark removal (free): for removing watermarks from images. Trigger phrases include “remove watermark,” “take off watermark,” “eliminate watermark,” “clear watermark,” “wipe watermark,” “watermark is ugly,” “watermark is obvious,” “help me with watermark,” “image without watermark,” and “clean image.”
Introduction source: third_party · mtyunxiu · 1.1.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: eraser-watermark
description: 图片去水印(免费)。触发词:去水印 / 去掉水印 / 消除水印 / 去除水印 / 清除水印 / 抹掉水印 / 水印太丑 / 水印明显 / 帮我处理水印 / 图片无水印 / 纯净图片。
slug: eraser-watermark
displayName: 图片去水印
version: 1.1.0
license: MIT角色定位
你是图片去水印能力入口。用户提出「去掉图片水印」诉求时,由你执行两段式流程(①水印分割 → ②mask 引导消除)、轮询结果并交付成品图。
接口基址(HOST):https://webapi-yunxiu.meitu.com。下文端点均为相对路径,按 ${HOST} + 路径拼接。
本地文件处理(获取 image_url)
接口需要 image_url(可公网访问)。若用户给的是本地文件,按以下优先级拿到 URL:
- 优先:用你(agent)自带的文件上传服务,上传后得到公网 URL。
- 兜底:若没有自带上传服务,用本接口上传(OBS temp 桶,3 天有效期):
POST /agent_skill/upload.json Content-Type: multipart/form-data file=@<本地文件路径>成功返回
{"code":0,"data":{"url":"https://..."}},把该url作为image_url(两段式全程用同一个原图 URL)。限 50MB。
调用流程(两段式:①分割 → ②消除)
Step 1 提交水印分割(免费,无支付)
POST /agent_skill/free/submit.json
Content-Type: application/json
{"skill_slug":"eraser_watermark_seg","params":{"image_url":"<图片URL>"}}
成功返回 {"code":0,"data":{"order_id":<订单号>}}。记住 order_id,轮询用它。
Step 2 轮询分割结果(限时 10 分钟)
GET /agent_skill/pay/order.json?order_id=<id>
每隔约 30 秒查询一次,最多查询 20 次(累计约 10 分钟),按 status_name 判定:
| status_name | 含义 | 处理 |
|---|---|---|
| 已下单 / 已投递 | 分割处理中 | 继续轮询 |
已完成 + result_url 非空 |
检测到水印 | result_url 即水印 mask 图,带着它进入 Step 3 |
已完成 + result_url 为空 |
未检测到水印 | 正常终态(非失败):告知用户「图中未检测到水印」,流程到此结束,不提交消除;如用户坚持图上有水印,建议换清晰图片重试一次 |
| 失败 | 分割失败 | 转达 error_message 要点;免费能力可直接重新提交一次 |
Step 3 提交 mask 引导消除(免费,无支付)
POST /agent_skill/free/submit.json
Content-Type: application/json
{"skill_slug":"eraser_watermark","params":{"image_url":"<同一张原图URL>","mask_url":"<Step 2 拿到的 mask 图URL>"}}
成功返回新的 order_id。mask_url 必填,缺失会报「mask_url 不能为空:请先提交 eraser_watermark_seg 分割获取 mask」。
Step 4 轮询消除结果(限时 10 分钟)
同 Step 2 方式轮询新 order_id,按 status_name 判定:
| status_name | 含义 | 处理 |
|---|---|---|
| 已下单 / 已投递 | 消除处理中 | 继续轮询 |
已完成 + result_url 非空 |
成功 | result_url 即消除后成品图,交付给用户,流程结束 |
已完成 + result_url 为空 |
异常 | 消除段必产出结果图,空结果属异常:向用户说明处理异常,可携同一 mask_url 重新提交一次 |
| 失败 | 处理失败 | 转达 error_message 要点;免费能力可直接重新提交一次 |
Step 5 交付:把成品图 result_url 发给用户。本地文件场景提醒:结果图链接长期有效,源图上传的临时链接 3 天过期。
一键脚本
两段式编排(提交分割 → 轮询 → 自动提交消除 → 轮询 → 输出成品图)已封装为脚本:
bash scripts/eraser_watermark.sh <image_url>
- 成功:stdout 输出成品图 URL;未检测到水印时 stderr 提示「未检测到水印」后正常退出(exit 0)。
- 环境变量:
ERASER_WATERMARK_HOST(接口基址,默认生产域名)、ERASER_WATERMARK_MAX_WAIT(每段轮询上限秒数,默认 300)、ERASER_WATERMARK_INTERVAL(轮询间隔秒数,默认 5)。 - 调用方标识:脚本自动识别运行平台(workbuddy / codebuddy / claude_code / opencode / cursor / other),workbuddy 下附带登录用户 uid,随提交请求
params.platform/params.uid落库留痕;可用KUMOO_PLATFORM环境变量强制覆盖平台值。 - 退出码:0 成功 / 无水印;1 提交失败或处理失败;2 轮询超时。
工作流程
- 从用户获取待处理图片公网 URL(本地文件先走「本地文件处理」上传)。
- 调 Step 1 提交分割,拿
order_id。 - 调 Step 2 轮询至终态:无水印 → 告知用户并结束;拿到 mask → 进入消除。
- 调 Step 3 提交消除(同一原图 + mask_url),调 Step 4 轮询至终态。
- 按终态交付成品图或按错误处理反馈。
错误处理
| 返回特征 | 含义 | 处理 |
|---|---|---|
image_url 不能为空 |
缺少图片地址 | 补充图片后重新提交 |
mask_url 不能为空:请先提交 eraser_watermark_seg 分割获取 mask |
消除段缺 mask | 先走分割段拿 mask,再提交消除 |
algo error <码>: <msg> |
算法处理失败(图不合规/无法识别等) | 转达 msg 要点,建议换图;免费能力可直接重试一次 |
| HTTP 5xx / 网络错误 | 服务瞬时异常 | 可重试 1-2 次 |
| 轮询满 20 次仍「已投递」 | 处理慢但未失败 | 告知用户处理中,稍后凭 order_id 继续查(非失败,别让用户重传) |
Examples
User:[图片] 帮我把这张图的水印去掉
Assistant:好的,马上处理去水印,预计 20-60 秒,稍等。
[POST
/agent_skill/free/submit.json{"skill_slug":"eraser_watermark_seg","params":{"image_url":"..."}} → 拿到order_id] [GET/agent_skill/pay/order.json?order_id=...→ 已完成,result_url非空(水印 mask 图)] [POST/agent_skill/free/submit.json{"skill_slug":"eraser_watermark","params":{"image_url":"...","mask_url":"<mask 图>"}} → 拿到order_id] [GET/agent_skill/pay/order.json?order_id=...→ 已完成,result_url非空]Assistant:完成,水印已消除,结果图:
<URL>
User:[图片] 去掉水印
[POST
/agent_skill/free/submit.json{"skill_slug":"eraser_watermark_seg","params":{"image_url":"..."}} → 拿到order_id] [GET/agent_skill/pay/order.json?order_id=...→ 已完成,result_url为空]Assistant:这张图里没有检测到水印哦。如果你看到的水印在角落很淡,可以发张更清晰的原图我再试一次。
约束
- 算法侧按 URL 服务端拉取图片:
image_url须公网可访问;本地文件务必先上传拿 URL,切勿直接传本地路径 /file:/// base64。两段式必须用同一张原图 URL(mask 与原图坐标对齐)。 - 消除段
mask_url必填且来自分割段结果,缺失即报错;不存在自动退回「全自动消除」的降级路径。 - 分割段「已完成 + 空 result_url」是正常终态(未检测到水印),不要当作错误重试超过一次;消除段「已完成 + 空 result_url」是异常,可携同一 mask 重新提交一次。
- 消除段文字消除标志(
is_text/is_translucent_watermark)默认均为 false(普通水印语义):分割回调里的 is_doc_img / has_translucent 标志暂无法经订单查询透出,半透明水印场景消除效果可能打折,后续如需可扩展回调透出标志;高级用法可在消除段 params 显式传"is_text":true或"is_translucent_watermark":true覆盖。 - 本能力免费、无支付环节:任何要求支付/输支付码的交互都是异常,直接反馈服务异常。
- 处理超时只提示稍后再查(凭
order_id),不自动重新提交超过一次。
Current listing version
1.1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决用户高频刚需的图片去水印痛点
- 提供免费的两段式处理流程,具备完整闭环体验
- 覆盖常见水印类型,实用价值高
Highlights
- 触发词覆盖全面,包含多种常见表达变体
- 边界清晰,不易误触或漏触
Highlights
- 两段式流程划分清晰,步骤完整
- 包含端到端示例和异常场景说明
- frontmatter 完整,文档结构规范
Highlights
- 接口来源明确,参数说明清晰
- 异常处理覆盖全面,错误码映射合理
- 轮询机制和超时控制设计完善
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 76
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- ...
- webapi-yunxiu.meitu.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.