remove-ai-marks
它能做什么
这项技能检查文字和文件中是否存在隐藏的 AI 来源标记,并通过单独的清理服务将其移除。适合处理自己拥有或获得授权处理的内容的人。
适用场景
- ✓当你要求智能体去除你自己撰写或获得授权编辑的文字中的隐藏字符的时候。
- ✓当你想检查并清理图片、PDF 或文档中嵌入的元数据的时候。
- ✓当你需要了解某个文件或文字可能含有哪些类型的 AI 标记的时候。
技能链接
https://github.com/guillaumemeyer/watermarks-remover/blob/main/skills/remove-ai-marks/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查这个 PDF 是否含有嵌入的 AI 元数据,并帮我清理一下。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体把文字或文件发送给一项单独运行的清理服务。该服务进行确定性清理,并报告它发现了什么。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Remove AI marks
Multi-vendor anti-detection hygiene for text (Unicode + statistical rewrite) and files (C2PA / AI metadata across common containers).
Read if needed:
references/mark-classes.md— Unicode / sampling / C2PA / containersreferences/vendor-notes.md— Claude, Gemini/SynthID, OpenAI, open-LLMreferences/removal-matrix.md— which layer whenreferences/ethics.md— intended usereferences/how-claude-marks.md— Anthropic-specific detailreferences/markdiffusion.md— optional MarkDiffusion image harness (schemes, honesty caveats)
This skill is a thin client. All deterministic cleaning machinery runs in a
separate HTTP service (this repo's service/), so the agent host needs no
Python, venvs, or cleaning tools. Call the service with curl; never run
cleaning scripts directly.
Service access
Base URL comes from WATERMARKS_SERVICE_URL, default http://127.0.0.1:8765:
WM="${WATERMARKS_SERVICE_URL:-http://127.0.0.1:8765}"
The service is started either by the operator (docker compose up -d, or a
published GHCR image) or locally (make serve). Always check it first, and
stop with a clear message if it is unreachable — never fall back to local
cleaning:
AUTH_HEADER=()
if [ -n "$WATERMARKS_SERVER_API_KEY" ]; then
AUTH_HEADER=(-H "Authorization: Bearer $WATERMARKS_SERVER_API_KEY")
fi
curl -sf "${AUTH_HEADER[@]}" "$WM/health"
# {"ok": true, "version": "..."}
If WATERMARKS_SERVER_API_KEY is set on the service, every request (including
the health check and capabilities) needs -H "Authorization: Bearer $WATERMARKS_SERVER_API_KEY". The default URL is
loopback; when the service runs on another host, set WATERMARKS_SERVICE_URL
to an https:// URL so the token is not sent in cleartext, and do not add
-L (a redirect could forward the token to another host).
Capabilities
curl -s "${AUTH_HEADER[@]}" "$WM/capabilities"
Reports which optional tools are available server-side (c2patool, exiftool,
qpdf, ghostscript), scorers present (scorers.stylometry, scorers.synthid,
scorers.synthid_http), text-watermark detectors
(text_detectors.markllm,
text_detectors.claude-text), and which heavy backends are configured
(pixel_backends.ctrlregen, pixel_backends.diffusion, harnesses.markllm).
Drive your advice from this: only recommend pixel removal / SynthID
scoring / vendor detection when the service reports the backend present.
HTTP API (curl)
Payloads are JSON with the file as base64. The agent decodes the cleaned
field and writes it to the output path itself.
| Method | Path | Body | Returns |
|---|---|---|---|
| GET | /health |
— | {"ok": true, "version": ...} |
| GET | /capabilities |
— | optional tools / backends present |
| GET | /openapi.json |
— | dynamically generated OpenAPI 3.0.3 spec |
| POST | /inspect |
{"file": "<base64>", "name": "notes.md"} |
{"ok", "kind", "suspicious", "report"} |
| POST | /detect |
{"file": "<base64>", "name": "notes.txt"} |
{"ok", "kind", "detections": [...]} |
| POST | /clean |
{"file": "<base64>", "name": "notes.md", "options": {...}} |
{"ok", "kind", "cleaned": "<base64>", "report"} |
/clean and /inspect route by the uploaded name extension plus the bytes;
unrecognized formats answer kind: "unknown" (/inspect) or 400 (/clean).
When writing a temp file for pasted text, keep a known extension (.txt /
.md) in the name you send.
The machine-readable contract lives at $WM/openapi.json — plug it into any
OpenAPI tooling (client generators, Swagger UI, editors) instead of hand-rolling
clients.
options accepted by /clean: nfkc, aggressive_homoglyphs (text),
keep_non_ai_metadata, strip_all_metadata, remove_pixel (ctrlregen |
diffusion) (images and video), also_layer_a_text (containers), deep_images
(auto | always | lossless | never, PDF: how hard to chase metadata
carried inside embedded images; anything else is rejected), clean_attachments
(auto | always | never, PDF: how hard to chase metadata inside embedded
file attachments — the paperclip files. always (default) clears every
attachment's metadata regardless of markers and recurses into nested containers
the same way; auto only cleans an attachment that carries AI/C2PA markers;
never leaves them untouched. Needs qpdf. Anything else is rejected),
detect_before / detect_after (text and
images: run waterm
常见问题
这项技能需要清理服务正在运行吗?
需要。该技能调用一项单独的服务,如果无法连接,它会要求你停止,而不会在本地清理。
它涵盖哪些文件类型?
涵盖常见的图片、PDF、Office、网页和文本格式,包括 PNG、JPEG、WebP、SVG、PDF、DOCX、HTML 和 Markdown。
它能保证标记被完全移除吗?
不能。该技能指出,统计式的文字水印削减只能尽力而为,无法保证。
详情
作者的原始描述
Remove multi-vendor AI provenance marks: invisible Unicode (Layer A), statistical text watermarks via rewrite (Layer B, always offer), and C2PA/EXIF/XMP/container metadata on PNG/JPEG/WebP/SVG/PDF/DOCX/ODT/HTML/MD/TEX. Covers Claude, Gemini/SynthID-class, OpenAI provenance, and open-LLM sampling marks. Use when the user asks to strip watermarks, remove C2PA/Content Credentials, clean AI metadata, remove invisible Unicode, anti-detect clean AI output, or runs /remove-ai-marks (aliases: /remove-claude-marks).
热度
- GitHub 星标
- 26k
- 排名
- #9988
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …