shdskill04

Batch merge to single PDF skill: merges multiple files (supports images, PDF, Word, Excel, PPT) into one PDF file, with drag-and-drop ordering and options to customize output location and filename.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shdskill04" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-37e6dc273eb30bd0f5a86993af99c1199cb238ef6a837447f60ffbc9acaf08ac. Verify the upstream source and version against https://skillhub.cn/skills/user_9355e276/shdskill04 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Batch merge to single PDF skill: merges multiple files (supports images, PDF, Word, Excel, PPT) into one PDF file, with drag-and-drop ordering and options to customize output location and filename.

0 Downloads

Introduction source: third_party · user_9355e276 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: shdskill04
description: 将多个文件(支持图片、PDF、Word、Excel、PPT)批量合并为一个PDF文件。支持拖拽排序、自定义输出位置和文件名。

全能PDF合并工具技能

功能概述

本技能可以将多种格式的文件合并成一个PDF文档,支持:

  • 图片格式:JPG, JPEG, PNG, BMP, GIF, TIFF, WEBP
  • 文档格式:PDF, DOC, DOCX, TXT
  • 表格格式:XLS, XLSX, CSV
  • 演示格式:PPT, PPTX

触发指令

用户可以通过以下方式触发此技能:

基础用法:

  • "把这些文件合并成一个PDF"
  • "将选中的文件合并为PDF"
  • "合并PDF"

高级用法:

  • "把 [文件列表] 合并成PDF,保存到 [路径],命名为 [文件名]"
  • "合并这些文件为PDF,按 [顺序] 排列"
  • "将 [文件夹路径] 中的所有图片合并为一个PDF"

工作流程

1. 文件收集

  • 接收用户提供的文件列表(支持拖拽上传或指定路径)
  • 如果用户指定文件夹路径,自动扫描该文件夹下所有支持的文件
  • 按照用户指定的顺序排列,或按文件名排序

2. 格式转换(按需)

文件类型 转换方式
图片 直接转换为PDF页面(保持原比例)
PDF 直接导入,保持原格式
Word (DOC/DOCX) 使用文档转换引擎转为PDF
Excel (XLS/XLSX) 转换为PDF(每个工作表作为单独页面或连续排列)
PPT (PPT/PPTX) 转换为PDF(每张幻灯片作为一页)
TXT/CSV 转换为PDF(保持文本格式)

3. PDF合并

  • 将所有转换后的PDF页面按顺序合并为一个完整的PDF文件
  • 可选功能:添加页码、页眉页脚、书签

4. 输出保存

  • 默认保存路径:用户指定的位置,或当前工作目录
  • 默认文件名:合并文档_[时间戳].pdf(时间戳格式:YYYYMMDD_HHMMSS)
  • 用户可自定义输出路径和文件名

使用示例

示例1:批量合并图片

用户输入:"把这三张图片合并成一个PDF"

  • 文件:photo1.jpg, photo2.png, photo3.bmp
  • 输出:合并文档_20260721_143526.pdf

示例2:混合文件合并

用户输入:"将 report.docx、data.xlsx、slide.pptx 和 cover.pdf 合并成一个PDF,保存到 D:\Reports"

  • 自动转换各文件为PDF
  • 按指定顺序合并
  • 输出:D:\Reports\合并文档_20260721_143526.pdf

示例3:文件夹批量处理

用户输入:"把 C:\Documents\Project 文件夹里所有文件合并成一个PDF"

  • 扫描文件夹内所有支持的文件
  • 按文件名排序后合并
  • 输出:合并文档_20260721_143526.pdf

示例4:自定义输出

用户输入:"合并选中的5个文件为PDF,保存到桌面,命名为 项目报告.pdf"

  • 输出:C:\Users\Admin\Desktop\项目报告.pdf

参数配置

用户可通过指令指定以下参数:

参数 说明 示例
文件列表 要合并的文件(支持拖拽) file1.pdf, file2.jpg
文件夹路径 批量导入文件夹内所有文件 C:\Documents
输出路径 保存PDF的位置 D:\PDF输出
输出文件名 PDF文件名(不含扩展名) 项目报告
排序方式 文件排列顺序 按名称/按类型/自定义
页面大小 输出PDF页面尺寸 A4/A3/Letter/自适应
方向 页面方向 纵向/横向/自适应

错误处理

错误情况 处理方式
未选择任何文件 提示:"请至少选择一个文件或指定一个文件夹"
文件格式不支持 跳过该文件并提示:"[文件名] 格式不支持,已跳过"
文件损坏或无法读取 提示:"[文件名] 无法读取,请检查文件是否损坏"
输出路径不存在 自动创建目标文件夹
磁盘空间不足 提示:"磁盘空间不足,请清理后重试"
权限不足 提示:"没有写入权限,请检查目标路径"

转换质量设置

文件类型 默认设置 可选优化
图片 保持原始分辨率 可设置压缩质量(1-100)
Word 保持原有排版 可选择是否嵌入字体
Excel 每个工作表一页 可选择合并所有工作表到一页
PPT 每张幻灯片一页 可选择是否包含备注

高级功能

批量处理

  • 支持同时处理多个文件,自动识别格式
  • 支持通配符匹配(如 *.jpg)

智能识别

  • 自动检测文件编码(TXT/CSV)
  • 自动旋转图片方向(根据EXIF信息)

优化选项

  • 压缩模式:减小输出文件大小
  • 高质量模式:保持最高分辨率
  • 标准模式:平衡质量和大小

跨端适配说明

平台 实现方式
PC端 使用 Python + PyMuPDF + python-docx + openpyxl + python-pptx
移动端 使用 Work Buddy 内置 PDF 合并引擎
云端 通过 API 调用在线转换服务

性能建议

  • 建议单次合并文件数量:≤ 100 个
  • 建议单个文件大小:≤ 50MB
  • 超大文件合并时,会显示进度条提示

输出结果反馈

成功合并后,返回以下信息:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决多格式文件合并为PDF的高频办公痛点
  • 功能闭环完整,从输入到输出路径清晰
  • 受众广泛,学生、职场人士均有明确需求
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,支持基础与高级用法
  • 边界清晰,不易与其他Skill混淆
  • 参数指令具体,支持路径、文件名等自定义
Structure and Standards95/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档中未设置显式的 When to Use 章节,但 skill_body 内有触发指令说明

    Recommendation: 建议增加显式的 When to Use 章节以提升规范性

Highlights

  • Phase/步骤划分清晰,逻辑完整
  • 提供4个端到端使用示例,覆盖典型场景
  • frontmatter 完整,单文件长度适中
Execution Reliability88/100

Highlights

  • 工具来源明确,列出具体技术栈实现
  • 异常处理全面,覆盖文件不支持、损坏、权限等场景
  • 有性能建议和限制说明,提升执行成功率
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.