text-watermark-fountain
A specialized skill for embedding and extracting resilient watermarks in text by manipulating sentence lengths and using Fountain Codes.
Skill by cafe3310
Chalk Labs
Need help deploying text-watermark-fountain?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cafe3310-text-watermark-fountain
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/text-watermark-fountain
What's inside
- Skill name
text-watermark-fountain- Description
- A specialized skill for embedding and extracting resilient watermarks in text by manipulating sentence lengths and using Fountain Codes. Use this when the user wants to add a hidden, robust watermark to text or verify an existing one.
- License
- MIT
- Instructions
- 55 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- FOR_HUMAN.md
- SKILL.md
- decode.py · scripts/
- encode.py · scripts/
- lt_code.py · scripts/
SKILL.md (first lines)
# 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:
```bash
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:
```bash
python3 -c "print([len(s.strip()) for s in [SEG1, SEG2, ...]])"
```
3. **Final Polishing & Formatting**:
- **Step 3.1: Style Alignment**: Compare the verified segments with the original text. Refine phrasing to match the original's tone, but **STRICTLY** maintain the verified character count.
- **Step 3.2: Paragraph Reconstruction**: Re-insert original line breaks. Paragraph breaks (\n) do not affect length measurement.
4. **Output**:
- Provide the final watermarked text to the user.
## Workflow: Extracting a Watermark
1. **Run Decoder**:
- Pass the text to the decoding script:
```bash
python3 scripts/decode.py --text "THE_TEXT_CONTENT"
```
- The script will search for sync frames and use the LT decoder to recover the mark.
## Guidelines for the Agent
- **Precision is Absolute**: A single character error in a segment breaks that data symbol.
- **Punctuation is a Splitter**: Do NOT use punctuation inside a segment unless you intend to split it.
- **Sync Frames are Sacred**: The `19 4 19 [ID]` sequence must be embedded exactly as specified in the output of `encode.py`.From cafe3310/public-agent-skills, MIT.
More from cafe3310/public-agent-skills
- 0.689score
subject-learning-assistant
cafe3310
基于 memocli (memories-off) 的结构化、三层分级的学习助手。支持内容摄取、自动大纲规划(主题 -> 任务 -> 概念)、引导式教学以及实时的地铁图可视化
SkillCFreshness: C★ 256Claude Code +9 - 0.689score
prd-writer
cafe3310
此 Skill 指导 Gemini 将一个高阶的产品想法,通过结构化的分析与协作,转化为一份详尽、可执行的产品需求文档(PRD)。
SkillCFreshness: C★ 256Claude Code +9 - 0.689score
deep-research
cafe3310
一个全面、自主的深度研究框架。当用户请求对复杂主题、市场调研、技术格局进行深入的多维度调查,或需要大量网页浏览、数据合成和结构化报告的任何任务时,使用此技能。它协调子代理(subagents)并使用基于文件系统的状态管理来防止上下文膨胀。
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
im-contact-sorter
cafe3310
批量整理、分类和清洗即时通讯 (IM) 软件联系人与群组的结构化工作流工具
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
cafe3310-skill-installer
cafe3310
自动化安装和更新来自 cafe3310 的所有 Agent Skills
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
long-chat-task-processor
cafe3310
对大量原始聊天记录进行结构化整理,进行知识提取或生成任何主题分析文档
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
long-audio-to-obsidian
cafe3310
将语音转写项目输出的复杂文件结构整理合并为适合 Obsidian 归档的 Markdown 文档
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
obsidian-todo-collector
cafe3310
从 Obsidian 知识库中扫描指定时间范围内未完成事件,生成/更新未完成事件整理文档
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
claude-code-handoff
cafe3310
从 Claude Code 的 Session 解析 jsonl 对话记录,接续执行任务
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
learning-assistant
cafe3310
互动式主题学习助手,依赖知识库结构化学习任务并交互引导完成学习过程
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
long-audio-transcript-processor
cafe3310
对大量语音转写稿进行校对、整理、分段处理,支持断点续传和恢复
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
markdown-new
cafe3310
通过 markdown.new API 将网页、整站或搜索结果转换为干净的 Markdown
SkillCFreshness: C★ 256Claude Code +9
Signals
- Stars
- 256
- Forks
- 30
- Open issues
- 0
- Last commit (this folder)
- Jun 26, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cafe3310/public-agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cafe3310
- 0.689score
deep-research
cafe3310
一个全面、自主的深度研究框架。当用户请求对复杂主题、市场调研、技术格局进行深入的多维度调查,或需要大量网页浏览、数据合成和结构化报告的任何任务时,使用此技能。它协调子代理(subagents)并使用基于文件系统的状态管理来防止上下文膨胀。
SkillCFreshness: C★ 256Claude Code +9 - 0.689score
prd-writer
cafe3310
此 Skill 指导 Gemini 将一个高阶的产品想法,通过结构化的分析与协作,转化为一份详尽、可执行的产品需求文档(PRD)。
SkillCFreshness: C★ 256Claude Code +9 - 0.689score
subject-learning-assistant
cafe3310
基于 memocli (memories-off) 的结构化、三层分级的学习助手。支持内容摄取、自动大纲规划(主题 -> 任务 -> 概念)、引导式教学以及实时的地铁图可视化
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
cafe3310-skill-installer
cafe3310
自动化安装和更新来自 cafe3310 的所有 Agent Skills
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
long-chat-task-processor
cafe3310
对大量原始聊天记录进行结构化整理,进行知识提取或生成任何主题分析文档
SkillCFreshness: C★ 256Claude Code +9 - 0.686score
obsidian-todo-collector
cafe3310
从 Obsidian 知识库中扫描指定时间范围内未完成事件,生成/更新未完成事件整理文档
SkillCFreshness: C★ 256Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get text-watermark-fountain running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
text-watermark-fountain skill. Agent Mart. https://agentmart.dev/skills/cafe3310-text-watermark-fountain (last updated 2026-10-24)