/claude-watermark-remover:remove-claude-marksfrom claude-watermark-remover
Removes multi-vendor AI provenance marks: invisible Unicode, statistical text watermarks, and C2PA/EXIF/XMP metadata from text and image files. Covers Claude, ChatGPT, Gemini, Midjourney, etc.
Ships in claude-watermark-remover. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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, ChatGPT, Gemini/SynthID, Cursor, Midjourney, 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)The cleaning scripts ship inside this skill, under scripts/. They are
Python standard library only: no pip install, no virtualenv, no server, no
Docker. Any python3 on PATH runs them.
Resolve the bundled scripts once and reuse $SC. Try the install locations in
order and keep the first that answers:
for d in ~/.claude/skills/remove-claude-marks/scripts \
./skills/remove-claude-marks/scripts; do
[ -f "$d/clean_file.py" ] && SC="$d" && break
done
python3 "$SC/inspect_file.py" --help >/dev/null && echo "ready: $SC"
If neither exists, the skill is installed somewhere else — ask the user for the
path rather than guessing. Never run a path that has not answered --help.
Auto-used when present, degrade gracefully when absent:
for t in exiftool qpdf c2patool; do
command -v "$t" >/dev/null && echo "$t: yes" || echo "$t: no"
done
qpdf is required for a real PDF strip; exiftool catches residual PDF
metadata. Without them, say the PDF result is best-effort. Everything else
works with neither.
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.
| Input | Route |
|---|---|
| Pasted / clipboard text | write to temp file → inspect_file.py then clean_file.py |
.txt / code | text Layer A (+ formatter for code) |
.md / .html | container clean (frontmatter/meta) + Layer A |
.png / .jpg / .jpeg / .webp / .avif / .heic | image metadata strip |
.svg / .pdf / .docx / .odt | container metadata strip |
| Directory | loop inspect_file.py over the tree |
clean_file.py and inspect_file.py route by filename extension first, then by
magic bytes, so in practice you just hand them the path.
Decide, don't guess:
python3 "$SC/inspect_file.py" INPUT
python3 "$SC/inspect_file.py" INPUT --json # machine-readable
Show a short summary: suspicious codepoints, C2PA / AI-metadata flags, and the
confidence labels confirmed / probable / informational /
likely_false_positive. Treat likely_false_positive as noise unless something
else corroborates it.
Note: inspect_* exits non-zero when it finds marks. That is a finding, not
a failure — do not report it as an error.
python3 "$SC/clean_file.py" INPUT -o OUTPUT
Write *.cleaned.* unless the user asked for in-place. Re-inspect the result
when residual risk matters.
Real clean_file.py flags: --nfkc, --aggressive-homoglyphs,
--keep-non-ai-metadata, --in-place, --json, --as FORMAT, --force-text.
inspect_file.py takes --json, --aggressive, --as, --force-text. Run
--help rather than inventing flags — strip_all_metadata and
also_layer_a_text exist only as HTTP options, not on the CLI.
Text-only shortcuts when the input is plain prose:
python3 "$SC/inspect_text.py" draft.md
python3 "$SC/clean_text.py" draft.md -o draft.cleaned.md --stats
After Layer A, always propose a statistical-mark reduction pass for natural-language content. Do not skip this step silently.
There is no rewrite model in this skill — you are the rewrite model. Run the prompts below on the cleaned text using a model ≠ suspected origin (Claude text → not Claude; Gemini → not Gemini). Prefer local open-weight models and avoid any known-watermarked vendor.
Multi-pass recipe:
clean_file.py)humanize (natural-human prose), back-translate, or structural outline→regenCode 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.
The bundled rewrite_text.py is a hook, not a model. By default it only
prints the prompt (--backend print-prompt); it can drive a local Ollama or an
OpenAI-compatible endpoint if the user wants that instead of you doing the
rewrite. Non-loopback endpoints are refused unless explicitly opted in.
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.
Always state:
*.cleaned.* unless the user asked in-place.The bundled scripts cover everything above. The repo also ships an HTTP service
(service/) for cases the local path cannot serve: a shared/remote deployment, a
host with no Python, or the heavy pixel backends (CtrlRegen, DiffusionPurification,
SynthID scoring, MarkLLM / MarkDiffusion harnesses), which are large containers
and are not bundled here.
Use it only when the user asks for it or needs a heavy backend:
WM="${CLAUDE_WM_SERVICE_URL:-http://127.0.0.1:8765}"
curl -sf "$WM/health" && curl -s "$WM/capabilities"
If CLAUDE_WM_SERVER_API_KEY is set on the service, send
-H "Authorization: Bearer <key>". POST /inspect and POST /clean take
{"file": "<base64>", "name": "x.png", "options": {...}} and return base64 in
cleaned. Full contract at $WM/openapi.json.
Never promise pixel removal or SynthID scoring unless /capabilities reports
the backend present, and never call a local scorer an official vendor detector.
exiftool, and incomplete without qpdf.references/ethics.md (opens in a new tab)references/how-claude-marks.md (opens in a new tab)references/mark-classes.md (opens in a new tab)references/markdiffusion.md (opens in a new tab)references/removal-matrix.md (opens in a new tab)references/vendor-notes.md (opens in a new tab)scripts/clean_file.py (opens in a new tab)scripts/clean_image.py (opens in a new tab)scripts/clean_text.py (opens in a new tab)scripts/common.py (opens in a new tab)scripts/container_meta.py (opens in a new tab)scripts/format_dispatch.py (opens in a new tab)scripts/image_meta.py (opens in a new tab)scripts/inspect_file.py (opens in a new tab)scripts/inspect_image.py (opens in a new tab)scripts/inspect_text.py (opens in a new tab)scripts/rewrite_text.py (opens in a new tab)scripts/score_stylometry.py (opens in a new tab)scripts/text_unicode.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (haidrrrry/claude-watermark-remover) — no native marketplace selected
npx claudepluginhub p/haidrrrry-claude-watermark-remover2 skills in this plugin
Other plugins' skills for the same job