← 返回 Skills 市场
techhnicistsmallwhite

Watermark Remover

作者 TechhnicistSmallWhite · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
526
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install watermark-remover
功能描述
去除 PDF 文件中的水印。使用场景:用户请求去除 PDF 文件的水印时触发。支持单个或多个文件批量处理。严格遵循确认流程:环境检查→库安装确认→水印检测→去除确认。
使用说明 (SKILL.md)

Watermark Remover - PDF 水印去除技能

工作流程

1. 触发条件

当用户请求去除文件水印时触发,例如:

  • "帮我去除这个 PDF 的水印"
  • "把这个文件的水印去掉"
  • "去除这些文件的水印"

2. 环境检查流程

第一步:检查 Python 环境

python --version
  • 如果 Python 未安装 → 必须获得用户确认后才能安装
  • 如果已安装 → 继续下一步

第二步:检查所需 Python 库

需要检查以下库:

  • pypdf - PDF 处理
  • PyMuPDF (fitz) - PDF 分析和验证

检查命令:

python scripts/check_env.py check_all
  • 如果库未安装 → 必须获得用户确认后才能安装
  • 如果已安装 → 继续下一步

3. 水印检测

使用 Python 脚本检测文件中的水印:

python scripts/detect_watermark.py \x3C文件路径>

检测内容包括:

  • 水印类型(Pattern/图像/文本)
  • 水印位置
  • 保存水印预览图到指定位置

必须向用户展示检测结果并确认是否开始去除水印。

4. 去除水印

获得用户确认后执行:

python scripts/remove_watermark.py \x3C文件路径> [--output \x3C输出路径>]

输出规则:

  • 如果用户指定输出路径 → 保存到指定位置
  • 如果用户未指定 → 保存到原文件同级目录
  • 命名格式:\x3C原文件名>_no_watermark.\x3C扩展名>

5. 验证结果

去除完成后自动验证:

  • 检查输出文件是否存在
  • 检查水印是否已移除
  • 向用户展示验证结果

脚本说明

scripts/check_env.py

检查 Python 环境和所需库的安装状态。

scripts/detect_watermark.py

检测 PDF 文件中的水印,生成预览图。

scripts/remove_watermark.py

执行水印去除操作。

安全确认原则

⚠️ 以下操作必须获得用户明确确认后才能执行:

  1. 安装 Python
  2. 安装 Python 库(pip install)
  3. 删除或修改任何文件
  4. 修改系统配置文件
  5. 开始执行水印去除操作

示例对话

用户: 帮我去除这个 PDF 的水印

助手:

  1. 检测到您需要去除水印,让我先检查环境...
  2. ✓ Python 已安装 (3.x.x)
  3. ⚠ 缺少库 pypdf,需要安装吗?(y/n)
  4. [用户确认后安装]
  5. ✓ 环境准备完成
  6. 检测到水印:CodeCV 简历(Pattern 类型)
  7. 预览图已保存:xxx_watermark_preview.png
  8. 确认开始去除水印吗?(y/n)
  9. [用户确认后执行]
  10. ✓ 水印已去除,文件保存至:xxx_no_watermark.pdf
安全使用建议
This package appears to do what it says and does not request secrets or network access, but the source/homepage is unknown. Before installing or running: (1) review the included scripts yourself or in a sandboxed environment, (2) back up original PDFs (the tool writes new files and could overwrite if names collide), (3) confirm the tool prompts and you explicitly allow any pip installs, (4) be aware of legal/ethical concerns — removing watermarks may violate copyright or terms of service. If you want higher assurance, run the scripts in an isolated VM or container and inspect the code line-by-line (the code here is small and readable).
功能分析
Type: OpenClaw Skill Name: watermark-remover Version: 1.0.0 The skill bundle is a legitimate tool for removing watermarks from PDF files using the pypdf and PyMuPDF libraries. The instructions in SKILL.md emphasize safety by requiring explicit user confirmation for environment changes (pip installs) and file modifications. While scripts/remove_watermark.py contains a minor Python coding error (variable shadowing in the main function that would cause a crash during verification), there is no evidence of malicious intent, data exfiltration, or unauthorized access.
能力评估
Purpose & Capability
Name, description, SKILL.md and included scripts (check_env.py, detect_watermark.py, remove_watermark.py) align: all scripts operate on the provided PDF path and implement detection and removal logic. No unrelated binaries, cloud credentials, or config paths are requested.
Instruction Scope
SKILL.md limits actions to local environment checks, optional pip installs (with explicit user confirmation), watermark detection, user confirmation, removal, and verification. Scripts only read/write files referenced by the user and output previews/results. The instructions explicitly require user consent before installations or modifying files.
Install Mechanism
No install spec is present (instruction-only skill). The scripts may call pip (via provided install commands shown by check_env.py) if the user consents; there are no downloads from remote URLs or archive extraction steps in the skill metadata.
Credentials
The skill requires no environment variables, credentials, or config paths. The only environment information surfaced by the scripts is Python executable/version and library presence (used to decide whether to prompt for installs), which is proportional to the task.
Persistence & Privilege
always is false and the skill does not request persistent system presence or modify other skills/configurations. It writes output files to the same directory (or as specified) which is expected behavior for file-processing tools.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install watermark-remover
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /watermark-remover 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the watermark-remover skill for removing watermarks from PDF files. - Supports batch processing of single or multiple PDFs. - Implements a strict step-by-step confirmation workflow: environment check → library installation confirmation → watermark detection → user confirmation before removal. - Automatically generates watermark preview images and displays results for user validation. - Ensures all environment changes and file modifications occur only after explicit user approval.
元数据
Slug watermark-remover
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Watermark Remover 是什么?

去除 PDF 文件中的水印。使用场景:用户请求去除 PDF 文件的水印时触发。支持单个或多个文件批量处理。严格遵循确认流程:环境检查→库安装确认→水印检测→去除确认。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 526 次。

如何安装 Watermark Remover?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install watermark-remover」即可一键安装,无需额外配置。

Watermark Remover 是免费的吗?

是的,Watermark Remover 完全免费(开源免费),可自由下载、安装和使用。

Watermark Remover 支持哪些平台?

Watermark Remover 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Watermark Remover?

由 TechhnicistSmallWhite(@techhnicistsmallwhite)开发并维护,当前版本 v1.0.0。

💬 留言讨论