← 返回 Skills 市场
johnsonklose

pdf-compress-tool

作者 JohnsonKlose · GitHub ↗ · v1.0.2 · MIT-0
macoslinuxwindows ✓ 安全检测通过
185
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install pdf-compress-tool
功能描述
Compress PDF files to a target size or by percentage, using a Ghostscript + pikepdf + QPDF multi-stage pipeline.
安全使用建议
This skill appears to do what it says: compress PDFs using pikepdf/Ghostscript/qpdf. Before installing or running it: (1) review the included compress_pdf.py (you already have it) to verify behavior — the script is local and readable; (2) be aware the script will try to run pip install pikepdf at runtime, which fetches a package from PyPI — if you prefer, preinstall pikepdf in a controlled virtualenv or system environment instead of letting the script auto-install; (3) run the tool on non-sensitive/test PDFs first to confirm results; (4) ensure Ghostscript and qpdf are installed from trusted package sources when needed; and (5) if you require stronger isolation, execute the script in a sandbox/container or VM so runtime dependency installation cannot affect your host environment.
功能分析
Type: OpenClaw Skill Name: pdf-compress-tool Version: 1.0.2 The pdf-compress-tool is a legitimate utility designed to compress PDF files using a multi-stage pipeline involving pikepdf, Ghostscript, and QPDF. While the script performs high-privilege actions such as executing external binaries via subprocess.run and auto-installing the 'pikepdf' library via pip, these behaviors are transparently documented and directly support the tool's stated purpose. There is no evidence of data exfiltration, unauthorized network access, persistence mechanisms, or malicious prompt injection in the SKILL.md or compress_pdf.py files.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included compress_pdf.py are consistent: the tool compresses PDFs using pikepdf, Ghostscript, and qpdf. Requiring python3 and recommending ghostscript/qpdf is proportional to the described functionality.
Instruction Scope
SKILL.md instructs the agent to run the included script and to install the listed tools; it does not ask the agent to read unrelated files, harvest environment variables, or transmit data to external endpoints beyond installing dependencies. The runtime instructions and script behavior are narrowly scoped to file compression and dependency checks.
Install Mechanism
There is no formal install spec; the script will attempt to auto-install the Python dependency pikepdf at runtime via pip (subprocess.run [sys.executable, '-m', 'pip', 'install', 'pikepdf']). Auto-installing from PyPI is expected for a Python tool but is a point of caution because it fetches and executes third‑party code.
Credentials
The skill requests no environment variables, no credentials, and no config paths. Its runtime actions (checking PATH for gs/qpdf, running subprocesses) are consistent with its purpose and do not access unrelated secrets.
Persistence & Privilege
The skill is not always-enabled and does not request permanent or system-wide privileges. It does not modify other skills or system-wide agent settings. Autonomous invocation is allowed by default but is not combined with other concerning flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pdf-compress-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pdf-compress-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Version 1.0.2 of pdf-compress-tool - No file changes detected from the previous version. - No updates to features, documentation, or dependencies. - Functionality and usage remain unchanged from the last release.
v1.0.1
- Added Windows to the list of supported operating systems. - Refined dependency requirements: python3 is now the only required dependency; ghostscript and qpdf are marked as optional. - Updated installation instructions and added a platform-specific dependency table. - Dependency guidance now includes Windows install commands and links. - The script now auto-detects your platform to suggest appropriate installation commands if dependencies are missing.
v1.0.0
Initial release of pdf-compress-tool. - Compress PDF files by target size or percentage. - Utilizes a three-stage pipeline: pikepdf, Ghostscript, and QPDF. - Offers batch processing for directories. - Supports adjustable quality levels with protection against over-compression. - Automatically detects and adapts to available dependencies (Ghostscript, QPDF, pikepdf).
元数据
Slug pdf-compress-tool
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

pdf-compress-tool 是什么?

Compress PDF files to a target size or by percentage, using a Ghostscript + pikepdf + QPDF multi-stage pipeline. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 185 次。

如何安装 pdf-compress-tool?

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

pdf-compress-tool 是免费的吗?

是的,pdf-compress-tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

pdf-compress-tool 支持哪些平台?

pdf-compress-tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。

谁开发了 pdf-compress-tool?

由 JohnsonKlose(@johnsonklose)开发并维护,当前版本 v1.0.2。

💬 留言讨论