text-watermark-fountain

text-watermark-fountain is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 48 tokens per session (894 once invoked), scanned A, original, Apache-2.0.

A text-watermarking tool that hides a marker in sentence lengths so it can be recovered after parts of the text change or disappear.

In plain words
What is it for?
Use it to embed a hidden string in text and later check whether the string can still be recovered.
Why use it?
It helps verify text ownership or origin when normal edits, deleted sections, or inserted sentences might break a simpler watermark.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to embed a hidden string in text and later check whether the string can still be recovered.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/text-watermark-fountain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cafe3310/public-agent-skills --skill text-watermark-fountain
Clone the repo
git clone --depth 1 https://github.com/cafe3310/public-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text-watermark-fountain

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/text-watermark-fountain/github.svg)](https://agentmods.dev/skills/cafe3310/public-agent-skills/text-watermark-fountain)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/text-watermark-fountain"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/text-watermark-fountain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for text-watermark-fountain

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/text-watermark-fountain"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/text-watermark-fountain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00894
Opus 5.5 $0.00019 $0.00358
Sonnet 5.5 $0.00010 $0.00179
Haiku 4.5 $0.00005 $0.00089

Measured 3mo ago against content hash aa46a56fd7e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

text-watermark-fountain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/decode.py, scripts/encode.py, scripts/lt_code.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills_parked/text-watermark-fountain/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Text Watermark Fountain (Robust Sync-Frame Version)

This skill enables the Agent to embed a string watermark into a text such that it can be recovered even if the text is partially modified, segments are deleted, or new sentences are inserted. It uses a custom Luby Transform (LT) Fountain Code combined with Sync Frames to map the watermark into a sequence of target lengths.

How it works (Robustness Mechanism)

  1. Sync Markers: The encoding script periodically inserts a unique length pattern [19, 4, 19] (Sync Marker) followed by a Frame ID.
  2. Self-Synchronization: The decoder searches the entire text for these markers using a sliding window. Even if middle segments are removed, the decoder can resynchronize using the next Sync Marker and know exactly which symbols it is looking at.
  3. Redundancy: By repeating these frames throughout a long text, the watermark becomes extremely difficult to destroy.

Workflow: Embedding a Watermark

When a user asks to embed a watermark (e.g., "name_1") into a text:

  1. Generate Length Sequence:

    • Run the encoding script:
      python3 scripts/encode.py --mark "name_1" --count [TOTAL_DATA_SYMBOLS]
      
    • Note the Lengths output. It will contain periodic 19 4 19 [ID] headers.
  2. Precise Text Fine-tuning (Batch Processing): To ensure 100% accuracy, you MUST use a multi-stage approach:

    • Step 2.1: Redundancy & Looping: If the original text is significantly longer than the required length sequence, the script handles the symbol indexing. Just ensure you cover all target lengths.
    • Step 2.2: Segmentation: Split the source text into segments using allowed punctuation (,。!?;:、, . ! ? ; :).
    • Step 2.3: Batch Delegation: Use a subagent to rewrite segments in batches of 5-10.
      • Prompt for Subagent: "Rewrite these segments to match EXACT character lengths: [L1, L2, ...]. Maintain meaning. NO internal punctuation allowed within a segment. Count every character (Chinese, English, digits) as 1."
    • Step 2.4: Verification: After each batch, run a Python one-liner to verify:
      python3 -c "print([len(s.strip()) for s in [SEG1, SEG2, ...]])"
      

Read the full file on GitHub · 64 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 64 lines · 48 tokens per session scan A aa46a56fd7e4

Subscribe to this mod's changes

text-watermark-fountain is a skill published in the GitHub repository cafe3310/public-agent-skills (260 stars, last pushed 14d ago), licensed Apache-2.0. It adds 48 tokens to every session and 894 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

text-watermark-fountain compared with skills from other repositories

text-watermark-fountain next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
text-watermark-fountaincafe3310/public-agent-skillsSkill26014d agoApache-2.0A48Claude Code, Codex
expertsflc1125/skillsSkill39todayMITA62Claude Code, Codex
asyncflc1125/skillsSkill39todayMITA52Claude Code, Codex
github-release-pr-writerflc1125/skillsSkill39todayMITA80Claude Code, Codex
yuqueflc1125/skillsSkill39todayMITA72Claude Code, Codex
getnoteflc1125/skillsSkill39todayMITA83Claude Code, Codex
opentelemetry-go-reviewerflc1125/skillsSkill39todayMITA34Claude Code, Codex