# Remove Ai Marks > Elimina marcas de procedencia de IA de varios proveedores: Unicode invisible, marcas de agua estadísticas mediante reescritura y metadatos C2PA/EXIF/XMP en PNG, JPEG, WebP, SVG, PDF, DOCX, ODT, HTML y MD. Fuente: https://skillsagentes.com/skills/guillaumemeyer/watermarks-remover/remove-ai-marks Markdown: https://skillsagentes.com/skills/guillaumemeyer/watermarks-remover/remove-ai-marks.md Repositorio: https://github.com/guillaumemeyer/watermarks-remover Autor: guillaumemeyer Licencia: MIT Actualizado: anteayer Coste de contexto: 127 tok instalada, 3.5k tok al activarse, 9.1k tok con todos los archivos del bundle Bundle: 7 archivos, 36 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent claude-code # Cursor npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent cursor # Codex npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent codex # Gemini CLI npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent gemini # Windsurf npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent windsurf # Cline npx -y skills add guillaumemeyer/watermarks-remover --skill remove-ai-marks --agent cline ``` ## Qué hace - Elimina Unicode invisible, marcas de agua estadísticas mediante reescritura y metadatos C2PA/EXIF/XMP en distintos formatos de archivo - Actúa como cliente ligero que llama a un servicio HTTP separado vía curl para inspeccionar, detectar y limpiar archivos - Ofrece siempre una pasada de reescritura (Layer B) con prompts de parafraseo, humanización, back-translation o reconstrucción estructural - Reporta honestamente qué se eliminó de forma verificable y qué queda como riesgo residual ## Cuándo usarla - El usuario pide quitar marcas de agua, C2PA/Content Credentials o metadatos de IA - Se necesita limpiar Unicode invisible o hacer 'anti-detect' de texto generado por IA - Se ejecuta /remove-ai-marks o su alias /remove-claude-marks - Auditar un directorio o sitio web en busca de marcas de procedencia de IA ## Qué la activa - "Quita las marcas de agua invisibles de este texto generado por IA" - "Limpia los metadatos C2PA de esta imagen PNG" - "Elimina las marcas de Claude de este documento antes de compartirlo" - "Audita esta carpeta en busca de marcas de procedencia de IA" ## Antes de instalar - Requiere que el servicio HTTP watermarks-remover esté corriendo (docker compose up -d o make serve); el agente solo necesita curl. - Necesita en el PATH: curl, docker - Variables de entorno: WATERMARKS_SERVICE_URL - reads environment config ## Archivos - SKILL.md — 14 KB - references/ethics.md — 2 KB - references/how-claude-marks.md — 2 KB - references/mark-classes.md — 4 KB - references/markdiffusion.md — 4 KB - references/removal-matrix.md — 5 KB - references/vendor-notes.md — 6 KB ## SKILL.md Reproducido tal cual desde guillaumemeyer/watermarks-remover bajo MIT. Esta sección es el documento original y está en inglés. # 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 / containers - `references/vendor-notes.md` — Claude, Gemini/SynthID, OpenAI, open-LLM - `references/removal-matrix.md` — which layer when - `references/ethics.md` — intended use - `references/how-claude-marks.md` — Anthropic-specific detail - `references/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`: ```bash 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: ```bash curl -sf "$WM/health" # {"ok": true, "version": "..."} ``` If `WATERMARKS_SERVER_API_KEY` is set on the service, every request needs `-H "Authorization: Bearer $WATERMARKS_SERVICE_API_KEY"`. ### Capabilities ```bash curl -s "$WM/capabilities" ``` Reports which optional tools are available server-side (`c2patool`, `exiftool`, `qpdf`), 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": "", "name": "notes.md"}` | `{"ok", "kind", "suspicious", "report"}` | | POST | `/detect` | `{"file": "", "name": "notes.txt"}` | `{"ok", "kind", "detections": [...]}` | | POST | `/clean` | `{"file": "", "name": "notes.md", "options": {...}}` | `{"ok", "kind", "cleaned": "", "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), `also_layer_a_text` (containers), `detect_before` / `detect_after` (text and images: run watermark detection on the input and on the cleaned output, included in the report). **Inspect first** (decide, don't guess): ```bash curl -s -X POST "$WM/inspect" -H 'Content-Type: application/json' \ -d "{\"file\": \"$(base64 < notes.md | tr -d '\n')\", \"name\": \"notes.md\"}" ``` **Clean** (text / image / container are auto-detected by name + bytes): ```bash curl -s -X POST "$WM/clean" -H 'Content-Type: application/json' \ -d "{\"file\": \"$(base64 < notes.md | tr -d '\n')\", \"name\": \"notes.md\"}" ``` Decode the returned `cleaned` base64 into the output file (`*.cleaned.*` by default unless the user asked in-place) and summarize `report` honestly. (On Windows agents, build base64 with `[Convert]::ToBase64String([IO.File]::ReadAllBytes("notes.md"))`.) ## Ethics Intended for **your own** content (privacy, hygiene, research). Do not market results as "proves human-written." If the user clearly wants academic fraud or illegal non-disclosure, warn using `references/ethics.md` and still only perform technical cleaning they own. ## Workflow ### 1. Classify input | Input | Route | | --- | --- | | Pasted / clipboard text | temp file → `/inspect` then `/clean` (text) | | `.txt` / code | text Layer A (+ formatter for code) | | `.md` / `.html` | container clean (frontmatter/meta) + Layer A | | `.png` / `.jpg` / `.jpeg` / `.webp` / `.avif` / `.heic` / `.bmp` / `.gif` / `.tiff` | image metadata strip | | `.svg` / `.pdf` / `.docx` / `.epub` / `.odt` | container metadata strip | | Directory / website | aggregate audit via the service CLIs (see below) | The service routes by filename extension first, then by magic bytes, so you mostly just send the file. ### 2. Inspect first ```bash curl -s -X POST "$WM/inspect" -H 'Content-Type: application/json' \ -d "{\"file\": \"$(base64 < path | tr -d '\n')\", \"name\": \"$(basename path)\"}" ``` Show a short summary (suspicious codepoints; C2PA/AI flags; confidence labels `confirmed` / `probable` / `informational` / `likely_false_positive`). Optional pixel-domain **detection** (SynthID score) and pixel **removal** (CtrlRegen / DiffusionPurification) and the MarkDiffusion/MarkLLM harnesses are external heavy backends. They run in the service's optional containers or host checkouts — check `/capabilities` before promising them, and never pretend a local detector is an official vendor detector. ### 2b. Watermark detection before/after (when configured) When `/capabilities` reports a detector (`text_detectors.markllm`) or an image scorer (`scorers.synthid_http` / `scorers.synthid`), measure the result by detecting before and after cleaning: ```bash curl -s -X POST "$WM/detect" -H 'Content-Type: application/json' \ -d '{"file": "'"$(base64 -w0 notes.txt)"'", "name": "notes.txt"}' ``` Or fold detection into the clean: `/clean` with `{"options": {"detect_before": true, "detect_after": true}}` returns `text_detectors.before/after` (text) or `synthid_before/synthid_after` (images) in the report. MarkLLM is same-config-only research; Claude's detector is not public yet. (Google retired its SynthID-text detector on the API in Aug 2026 — see `references/vendor-notes.md`.) ### 3. Deterministic clean (always for matching inputs) **Any supported file (unified):** ```bash curl -s -X POST "$WM/clean" -H 'Content-Type: application/json' \ -d "{\"file\": \"$(base64 < INPUT | tr -d '\n')\", \"name\": \"$(basename INPUT)\"}" ``` Decode `cleaned` → `OUTPUT` (`*.cleaned.*` unless the user asked in-place). Re-inspect the result when residual risk matters. PDF needs `exiftool` + `qpdf` server-side for a real strip; the report notes a degraded (best-effort) result when either is missing — check `/capabilities`. **Images — optional pixel removal:** only when `capabilities.pixel_backends` says the backend is present: ```bash curl -s -X POST "$WM/clean" -H 'Content-Type: application/json' \ -d "{\"file\": \"$(base64 < shot.png | tr -d '\n')\", \"name\": \"shot.png\", \ \"options\": {\"remove_pixel\": \"ctrlregen\"}}" ``` ### 4. Layer B — always offer rewrite (prose) After Layer A, **always propose** a statistical-mark reduction pass for natural-language content. Do not skip this step silently. The service does **not** hold a rewrite model — **you** are the rewrite model. Run the prompts below on the cleaned text with a model **≠ suspected origin** (Claude text → not Claude; Gemini → not Gemini; etc.). Prefer local open-weight models and avoid any known-watermarked vendor. Multi-pass recipe: 1. Layer A clean (via `/clean`) 2. Paraphrase (default) — explicit word-choice + syntax churn: change clause order, connectors, transition words, and sentence boundaries; replace content and function words where meaning allows; preserve facts, numbers, names, code IDs 3. Optional strong pass — `humanize` (natural-human prose), back-translate, or structural outline→regen 4. Layer A again on the result (`/clean`) 5. Report residual risk honestly (short/highly predictable text = lower; long, high-entropy prose = higher) **Code files:** Prefer formatter (`prettier`, `black`, `gofmt`, …) + Layer A. Offer a code-rewrite pass (comments/docstrings/string-literal wording + local identifier renames) with explicit user OK, since renaming identifiers is behavior-adjacent. #### Rewrite prompts (use as-is) **Paraphrase preserve meaning (word choice + syntax):** ``` Rewrite the following text so that it uses substantially different wording at the token level. Change clause order, connectors, and transition words; vary sentence boundaries and length; and replace both content words and function words where meaning allows. Preserve all facts, numbers, names, and technical identifiers. Do not add or remove claims. Output only the rewritten text. --- {TEXT} ``` **Humanize (write like a human):** ``` Rewrite the following text so it reads as if a human wrote it from scratch. Vary sentence rhythm and length, replace formulaic AI-style transitions and filler with concrete natural phrasing, and use plain, varied wording. Preserve all facts, numbers, names, and technical identifiers. Do not add or remove claims. Output only the rewritten text. --- {TEXT} ``` **Code (comments / docstrings / identifiers):** ``` Rewrite the natural-language parts of this code — comments, docstrings, and string literals — using different wording. Rename local variables, function parameters, and private helper names to semantically equivalent names. Preserve program behavior, public API names, and all values that affect output. Output only the rewritten code. --- {TEXT} ``` **Back-translate (two steps):** ``` Translate the following text to {LANG}. Output only the translation. ``` ``` Translate the following text to {ORIGINAL_LANG}. Preserve meaning; use natural phrasing. Output only the translation. ``` **Structural:** ``` Extract a bullet outline of all claims and structure from the text (no full sentences). ``` Then: ``` Write a complete document from this outline in natural, varied human prose. Avoid formulaic transitions. Do not omit any bullet. Output only the document. ``` ### Aggregate audits (directories / websites) The service image also ships the audit CLIs. Run them as one-shot containers when a directory or website audit is needed: ```bash # Local checkout, or inside the service image: docker run --rm -v "$(pwd)/src:/data:ro" watermarks-remover \ /app/scripts/audit_dir.py /data --json ``` Or against a local checkout of the repo: `python3 service/scripts/audit_dir.py DIR --json`. Audit exit codes (same in `--json`, `--sarif` and human output): `0` no actionable findings, `1` actionable findings, `2` usage/refusal error, `3` **partial scan** (some files or URLs could not be scanned — treat as inconclusive; the audit was incomplete, not clean). ### 5. Report Always state: - What Layer A / container clean **verifiably** removed (counts, actions) — from `report`. - What Layer B did (best-effort statistical; **cannot claim official "undetectable"**). Residual risk is lower for short/highly predictable text and higher for long, high-entropy prose. - Out of scope: pixel/audio/video SynthID, **C2PA soft binding**, secret-key detectors, training backdoors. - Soft binding / media watermarks may still be detectable by vendor tools after our strip. - Prefer writing `*.cleaned.*` unless user asked in-place. - Ethics one-liner: own content / no compliance theater. ## Limitations - Layer A does **not** remove token-sampling watermarks. - Layer B cannot be gold-verified without vendor detectors / keys. Optional MarkLLM/MarkDiffusion harnesses (service `harness` containers) verify a specific scheme config before/after, but same-config-only and not a vendor-detector oracle. - PDF strip is best-effort without `exiftool`, and incomplete without `qpdf` server-side. - Pixel-domain **image** watermarks can be removed optionally via the external CtrlRegen backend (`remove_pixel: ctrlregen`) or MarkDiffusion's DiffusionPurification (`remove_pixel: diffusion`); both are heavy, drift the image, and need the backend present (`/capabilities`). Audio/video watermarks remain out of scope. - The reverse-SynthID scorer is external, best-effort, and under a non-commercial Research License; not an official Google detector. Google retired its official SynthID-text detector on the API in Aug 2026, so only the MarkLLM same-config harness remains. Claude's detection API has been announced but is not public yet — the `claude-text` detector reports unavailable until it ships. - **C2PA soft binding** (content watermark that re-links to a remote manifest after metadata strip) is out of scope — stripping hard-bound C2PA does not clear it. - Data-driven / backdoor model marks (trigger phrases) are out of scope. ## Service not reachable? If `$WM/health` fails: tell the user the service is down and how to start it (`docker compose up -d`, `make serve`, or the published GHCR image). Do **not** attempt to clean locally — this skill contains no cleaning code. ## Dónde encaja - Categoría: [Seguridad](https://skillsagentes.com/categorias/seguridad.md) — Auditorías, revisión de dependencias, manejo de secretos y modelado de amenazas. - Creador: [guillaumemeyer](https://skillsagentes.com/creators/guillaumemeyer.md) — 2 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Clean User Facing Text](https://skillsagentes.com/skills/guillaumemeyer/watermarks-remover/clean-user-facing-text.md): Limpia y finaliza texto autorizado orientado a lectores, auditando Unicode invisible sospechoso y reescribiendo la prosa mientras se preservan hechos y significado. ## Skills relacionadas - [Clean User Facing Text](https://skillsagentes.com/skills/guillaumemeyer/watermarks-remover/clean-user-facing-text.md): Limpia y finaliza texto autorizado orientado a lectores, auditando Unicode invisible sospechoso y reescribiendo la prosa mientras se preservan hechos y significado. - [Caveman Compress](https://skillsagentes.com/skills/juliusbrussee/caveman/caveman-compress.md): Comprime archivos de lenguaje natural (CLAUDE.md, todos, preferencias) a formato caveman para ahorrar tokens de entrada. Preserva todo el contenido técnico, código, URLs y estructura. - [Caveman Help](https://skillsagentes.com/skills/juliusbrussee/caveman/caveman-help.md): Tarjeta de referencia rápida con todos los modos, skills y comandos de caveman. Despliegue de una sola vez, no es un modo persistente. - [Caveman Review](https://skillsagentes.com/skills/juliusbrussee/caveman/caveman-review.md): Comentarios de revisión de código ultra-comprimidos: recorta ruido del feedback de PR preservando la señal accionable. Cada comentario es una línea: ubicación, problema, fix. - [Caveman Commit](https://skillsagentes.com/skills/juliusbrussee/caveman/caveman-commit.md): Generador de mensajes de commit ultra-comprimidos: recorta el ruido preservando la intención y el porqué. Formato Conventional Commits, asunto ≤50 caracteres, cuerpo solo cuando el porqué no es obvio. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)