← 返回 Skills 市场
daguniang

PDF Simple Tool

作者 daguniang · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
183
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install pdf-simple-tool
功能描述
PDF splitting and PDF-to-Word conversion tools implemented in Node.js.
使用说明 (SKILL.md)

PDF Simple Tool Skill

This skill provides two main actions for working with PDF files:

  1. split_pdf – Extract a page range from a PDF into a new PDF.
  2. pdf_to_word – Convert a PDF into a simple Word (.docx) document.

Install

cd skills/pdf-simple-tool/node/ 执行命令: npm install

Actions

split_pdf

When the user asks to split a PDF by page range (for example, "把这个 PDF 的第 3-5 页拆出来" / "split pages 3–5"), call the Node implementation:

  • Entry: skills/pdf-simple-tool/node/index.js
  • Function: splitPdf(inputPath, outputPath, fromPage, toPage)

Inputs

  • inputPath (string): The absolute path to the source PDF.
  • outputPath (string): The absolute path where the new PDF will be written.
  • fromPage (integer): Start page (1-based).
  • toPage (integer): End page (1-based, inclusive).

Example behavior:

  • If the user says: "帮我把 /Users/xingxing/.openclaw/workspace/test.pdf 的第 1-3 页拆成一个 PDF 文件", map this to:
    • inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"
    • outputPath = "/Users/xingxing/.openclaw/workspace/test_p1-3.pdf"
    • fromPage = 1
    • toPage = 3

pdf_to_word

When the user asks to convert a PDF to Word (for example, "把这个 PDF 转成 Word" / "convert to docx"), call the Node implementation:

  • Entry: skills/pdf-simple-tool/node/index.js
  • Function: pdfToWord(inputPath, outputPath)

Inputs

  • inputPath (string): The absolute path to the source PDF.
  • outputPath (string): The absolute path where the Word file (.docx) will be written.

Example behavior:

  • If the user says: "把 /Users/xingxing/.openclaw/workspace/test.pdf 转成 Word", map this to:
    • inputPath = "/Users/xingxing/.openclaw/workspace/test.pdf"
    • outputPath = "/Users/xingxing/.openclaw/workspace/test.docx"

Notes

  • Implementation code lives in skills/pdf-simple-tool/node/index.js and uses:
    • pdf-lib for PDF manipulation.
    • pdf-parse + docx for PDF-to-Word conversion.
  • You are responsible for wiring these actions into your agent so that natural language requests are converted into the appropriate function calls with the correct paths and page ranges.
安全使用建议
This skill appears to do exactly what it says: split PDFs and produce a simple .docx of extracted text. Before installing, consider: 1) run npm install and usage in an isolated/sandboxed environment (or inspect node_modules) to limit risk from third-party packages; 2) review the package-lock or run npm audit if you need to check dependency supply-chain issues; 3) be mindful that the agent will need filesystem access to any absolute paths you pass (don’t point it at sensitive files you don’t want processed); 4) if you prefer a specific npm registry, ensure your npm config is set before running npm install (the lockfile references an npm mirror). If those cautions are acceptable, the skill is coherent and suitable for local PDF tasks.
功能分析
Type: OpenClaw Skill Name: pdf-simple-tool Version: 1.2.0 The skill provides legitimate PDF splitting and PDF-to-Word conversion functionality using standard Node.js libraries (pdf-lib, pdf-parse, and docx). The implementation in node/index.js is straightforward, performing file reads and writes as expected for the stated purpose, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the included code: index.js implements splitPdf and pdfToWord using pdf-lib, pdf-parse, and docx. Required resources (none) align with a local file-processing tool.
Instruction Scope
SKILL.md tells the agent to call the Node functions with absolute input/output paths and to run npm install in the skill folder. The runtime behavior is limited to reading the specified PDF and writing output files; there are no instructions to read other unrelated system state or transmit data externally. Caveat: the skill necessarily requires the agent to be allowed to read arbitrary filesystem paths the user requests, so ensure the agent is only asked to access files you permit.
Install Mechanism
There is no platform-level install spec (instruction-only), but the skill includes a Node project and SKILL.md instructs running npm install. The package-lock references packages resolved from an npm mirror (registry.npmmirror.com) — common in some regions but worth noting; running npm install will fetch third-party packages, so audit dependencies or run in an isolated environment if you have concerns.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The libraries used are standard PDF and docx processing packages; there is no disproportionate secret access requested.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or global agent settings. It only reads and writes the files specified as input/output and has an optional CLI entrypoint for local testing.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pdf-simple-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pdf-simple-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Initial release: split PDF page ranges and convert PDF to Word via Node.js.
v1.1.0
Initial release: split PDF page ranges and convert PDF to Word via Node.js.
元数据
Slug pdf-simple-tool
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

PDF Simple Tool 是什么?

PDF splitting and PDF-to-Word conversion tools implemented in Node.js. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 183 次。

如何安装 PDF Simple Tool?

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

PDF Simple Tool 是免费的吗?

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

PDF Simple Tool 支持哪些平台?

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

谁开发了 PDF Simple Tool?

由 daguniang(@daguniang)开发并维护,当前版本 v1.2.0。

💬 留言讨论