Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Bwkyd/wps-skills --skill wps-pdf-merge-splitgit clone --depth 1 https://github.com/Bwkyd/wps-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bwkyd/wps-skills/wps-pdf-merge-split)<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-pdf-merge-split"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-pdf-merge-split/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-pdf-merge-split"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-pdf-merge-split.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.01525 |
| Opus 5 | $0.00048 | $0.00763 |
| Sonnet 5 | $0.00019 | $0.00305 |
| Haiku 4.5 | $0.00010 | $0.00153 |
Grade A, and why
wps-pdf-merge-split scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF合并与拆分工具
合并多个PDF / 拆分单个PDF / 提取指定页面。
When to Use
- 多个PDF合并成一个
- 一个PDF拆分成多个
- 提取PDF中某几页
- 调整PDF页面顺序
- 用户说"把这几个PDF合在一起""把第3-5页提取出来"
When NOT to Use
- 提取PDF中的文字/表格 → 使用
wps-pdf-extract - PDF加水印 → 使用
wps-watermark
工作流程
Step 1: 确认操作
操作类型:
[1] 合并 → 多个PDF → 一个PDF
[2] 拆分 → 一个PDF → 每页一个PDF
[3] 提取 → 一个PDF → 提取指定页
[4] 重排 → 调整页面顺序
[5] 旋转 → 旋转指定页面
Step 2: 执行操作
import fitz # PyMuPDF
import os
import glob as glob_mod
class PDFTool:
"""PDF合并拆分工具"""
@staticmethod
def merge(pdf_paths, output_path):
"""合并多个PDF"""
result = fitz.open()
for path in pdf_paths:
doc = fitz.open(path)
result.insert_pdf(doc)
doc.close()
result.save(output_path)
result.close()
return os.path.abspath(output_path)
@staticmethod
def split(pdf_path, output_dir):
"""拆分为单页PDF"""
os.makedirs(output_dir, exist_ok=True)
doc = fitz.open(pdf_path)
files = []
basename = os.path.splitext(os.path.basename(pdf_path))[0]
for i in range(len(doc)):
new_doc = fitz.open()
new_doc.insert_pdf(doc, from_page=i, to_page=i)
out = os.path.join(output_dir, f'{basename}_第{i+1}页.pdf')
new_doc.save(out)
new_doc.close()
files.append(out)
doc.close()
return files
@staticmethod
def extract_pages(pdf_path, pages, output_path):
"""提取指定页面(pages为列表,从1开始)"""
doc = fitz.open(pdf_path)
result = fitz.open()
for p in pages:
result.insert_pdf(doc, from_page=p-1, to_page=p-1)
result.save(output_path)
result.close()
doc.close()
return os.path.abspath(output_path)
@staticmethod
def reorder(pdf_path, new_order, output_path):
"""重新排列页面(new_order为页码列表,从1开始)"""
doc = fitz.open(pdf_path)
result = fitz.open()
for p in new_order:
result.insert_pdf(doc, from_page=p-1, to_page=p-1)
result.save(output_path)
result.close()
doc.close()
return os.path.abspath(output_path)
@staticmethod
def rotate(pdf_path, pages, angle, output_path):
"""旋转指定页面(angle: 90/180/270)"""
doc = fitz.open(pdf_path)
for p in pages:
doc[p-1].set_rotation(angle)
doc.save(output_path)
doc.close()
return os.path.abspath(output_path)
@staticmethod
def get_info(pdf_path):
"""获取PDF信息"""
doc = fitz.open(pdf_path)
info = {
'pages': len(doc),
'title': doc.metadata.get('title', ''),
'author': doc.metadata.get('author', ''),
'file_size': os.path.getsize(pdf_path),
}
doc.close()
return info
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 197 lines · 96 tokens per session scan A e52675fd7bef
wps-pdf-merge-split is a skill published in the GitHub repository Bwkyd/wps-skills (8 stars, last pushed 4mo ago), licensed MIT. It adds 96 tokens to every session and 1,525 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
note-organizer
Use this skill whenever the user wants to organize course materials, lecture notes, PPT/PDF/DOCX files, textbooks, personal notes, senior-student notes, historical exams, review questions, standards, manuals, or scattered study resources into a structured Markdown note library. Use it even when the user only says…
tender-analysis
A workflow for reviewing tender documents, which are formal project requests that describe requirements and bidding rules. It extracts project details, technical and business conditions, deadlines, scoring rules, risks, and questions for clarification.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
markitdown
Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.
open-notebook
Self-hosted, open-source alternative to Google NotebookLM for AI-powered research and document analysis. Use when organizing research materials into notebooks, ingesting diverse content sources (PDFs, videos, audio, web pages, Office documents), generating AI-powered notes and summaries, creating multi-speaker…
pptx-posters
Create and audit editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Use when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.