Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

watermarks-remover

БесплатноЗапускает вложенные скриптыНе проверен

Strip multi-vendor AI provenance marks from text and files using the guillaumemeyer/watermarks-remover Python toolkit: invisible Unicode/space homoglyphs…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Watermarks Remover — strip AI provenance marks

Agent skill wrapping guillaumemeyer/watermarks-remover, a set of stdlib Python scripts that remove multi-vendor AI provenance marks from text (invisible Unicode, statistical sampling watermarks) and files (C2PA / EXIF / XMP / document properties). It is for privacy and hygiene on content you own or are authorized to process — not for academic fraud or falsely claiming "human-written" origin.

When to use this skill

  • Stripping invisible Unicode, bidi controls, tag characters, or exotic space homoglyphs that AI tools silently inject into generated text
  • Removing C2PA manifests, EXIF/XMP AI-provenance fields, or generator metadata from PNG, JPEG, SVG, PDF, DOCX, ODT, HTML, or Markdown files
  • Reducing a statistical (token-sampling) watermark's signal in AI-written prose via a guided rewrite pass, while preserving facts/names/numbers
  • Auditing a whole directory tree or a live website (via its sitemap) for AI provenance signals and getting a confidence-classified report
  • Optionally scoring or removing a pixel-domain SynthID-class watermark on an image, using the project's external bootstrap scripts

When not to use this skill

  • The user wants a guarantee that a vendor's official detector will fail — this toolkit only reports verifiable removals plus best-effort rewrites; no local tool can certify that outcome
  • Removing audio/video watermarks or defeating training-data backdoor triggers — explicitly out of scope upstream
  • Clearing C2PA soft binding (a watermark that re-links a stripped file to a remote Content Credentials manifest) — stripping hard-bound C2PA metadata does not clear this channel
  • The user's stated goal is academic fraud, plagiarism, or a false "human-written" claim about content they don't own — warn per skills/remove-ai-marks/references/ethics.md upstream and only perform technical cleaning on content they are authorized to process

Instructions

Step 1: Clone the repo and resolve the scripts directory

git clone --depth 1 https://github.com/guillaumemeyer/watermarks-remover.git
SCRIPTS=watermarks-remover/skills/remove-ai-marks/scripts

The toolkit is not published as a pip package; it is consumed as a standalone script directory (Python 3.10+ stdlib only). c2patool and exiftool are auto-detected and used when present, especially for PDF.

Step 2: Pick the right layer for the input

Input Path
Pasted text / .txt / code Text Layer A (inspect_text.py / clean_text.py)
.md / .html Container clean (frontmatter/meta) + Layer A
.png / .jpg / .jpeg Image metadata strip (inspect_image.py / clean_image.py)
.svg / .pdf / .docx / .odt Container metadata strip
Mixed / unknown Unified inspect_file.py / clean_file.py (auto-routes by format)
Directory audit_dir.py for an aggregate report
Website / sitemap audit_website.py

Text tools refuse binary input by default (magic-number + control-byte detection) so a .docx/.pdf/image never gets mangled by decoding its compressed bytes as text; pass --force-text to override, or use the _file.py unified tools which route correctly on their own.

Step 3: Inspect before cleaning

python3 "$SCRIPTS/inspect_file.py" --json path/to/input
python3 "$SCRIPTS/inspect_text.py" --json path/or/-
python3 "$SCRIPTS/inspect_image.py" --json image.png

Findings are classified confirmed / probable / informational / likely_false_positive. Summarize suspicious codepoints and C2PA/AI flags before cleaning; do not silently overwrite the original.

Step 4: Deterministic clean (Layer A + file metadata)

python3 "$SCRIPTS/clean_text.py" INPUT -o OUTPUT --stats
python3 "$SCRIPTS/clean_file.py" INPUT -o OUTPUT       # unified, any supported format
python3 "$SCRIPTS/inspect_file.py" OUTPUT               # verify the result

Prefer writing *.cleaned.* outputs unless the user explicitly asked for an in-place edit (--in-place is available but destructive).

Step 5: Always offer Layer B (statistical rewrite) for prose

After Layer A, propose — do not silently skip — a rewrite pass for natural-language content to reduce a token-sampling watermark's signal:

python3 "$SCRIPTS/rewrite_text.py" draft.md --backend print-prompt --strength paraphrase

print-prompt is the CI-safe default (no model call; it just emits the rewrite prompt for the agent to run itself). Local Ollama or an OpenAI-compatible backend can be wired via env vars:

export WATERMARKS_REWRITE_BACKEND=ollama
export WATERMARKS_REWRITE_MODEL=llama3.2
python3 "$SCRIPTS/rewrite_text.py" draft.md -o draft.rewritten.md --strength paraphrase

Rules: API keys come from WATERMARKS_REWRITE_API_KEY only (never on argv); non-loopback endpoints are refused unless --allow-remote or WATERMARKS_REWRITE_ALLOW_REMOTE=1 is set explicitly; pre

Полный SKILL.md на GitHub

Установить watermarks-remover в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

references/commands.mdscripts/watermarks-remover.sh

FAQ

Что делает скилл watermarks-remover?

Strip multi-vendor AI provenance marks from text and files using the guillaumemeyer/watermarks-remover Python toolkit: invisible Unicode/space homoglyphs (Layer A, deterministic), statistical token-sampling watermarks via agent-guided rewrite (Layer B, best-effort), and C2PA/EXIF/XMP/doc-props metadata on PNG, JPEG, SVG, PDF, DOCX, ODT, HTML, and Markdown. Covers Claude, Gemini/SynthID-Text, OpenAI provenance surfaces, and open-LLM Kirchenbauer-style marks, plus optional external backends for SynthID pixel scoring and CtrlRegen pixel-domain removal. Use when the user wants to strip AI watermarks, remove C2PA / Content Credentials, clean AI metadata from a file, remove invisible Unicode / zero-width characters from AI-generated text, or audit a directory/website for AI provenance signals. Triggers on: watermark removal, C2PA metadata cleanup, AI metadata cleanup, invisible unicode cleanup, remove-ai-marks, SynthID analysis, audit_dir.py, Layer A / Layer B provenance cleanup.

Как установить скилл watermarks-remover?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл watermarks-remover запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить watermarks-remover с