remove-ai-marks
What it does
This skill checks text and files for hidden AI provenance marks and removes them through a separate cleaning service. It is meant for people working with content they own or are authorized to process.
When to use it
- βWhen you ask your agent to remove hidden characters from text you wrote or are authorized to edit.
- βWhen you want the embedded metadata in an image, PDF or document checked and cleaned.
- βWhen you need to know which kinds of AI marks a file or text may contain.
Skill link
https://github.com/guillaumemeyer/watermarks-remover/blob/main/skills/remove-ai-marks/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check this PDF for embedded AI metadata and clean it up?β
5 new skills a week. 1 minute to read.
How it works
The agent sends the text or file to a cleaning service that is run separately. The service applies deterministic cleaning and reports what it found.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does this skill need a cleaning service to be running?
Yes. The skill calls a separate service and tells you to stop if that service cannot be reached, instead of cleaning locally.
Which file types does it cover?
The skill covers common image, PDF, Office, web and text formats, including PNG, JPEG, WebP, SVG, PDF, DOCX, HTML and Markdown.
Can it guarantee that marks are fully removed?
No. The skill notes that statistical text watermark reduction is best effort and cannot be guaranteed.
Details
Original description by the author
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).
Popularity
- GitHub stars
- 26k
- Ranking position
- #9988
- License
- MIT
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.