首页龙虾技能列表 › PDF Simple Tool — 技能工具

PDF Simple Tool — 技能工具

v1.2.0

PDF splitting and PDF-to-Word conversion tools implemented in Node.js.

1· 138·0 当前·0 累计
by @daguniang·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/26
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's description, instructions, and code are consistent: it implements PDF splitting and simple PDF→DOCX conversion, requires local file access and a normal npm install, and does not request credentials or contact external endpoints.
评估建议
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...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
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.
凭证需求
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.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.2.02026/3/26

Initial release: split PDF page ranges and convert PDF to Word via Node.js.

● 无害

安装命令 点击复制

官方npx clawhub@latest install pdf-simple-tool
镜像加速npx clawhub@latest install pdf-simple-tool --registry https://cn.clawhub-mirror.com

技能文档

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

  • split_pdf – Extract a page range from a PDF into a new PDF.
  • 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.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务