Compress a user-provided PDF by uploading it to Cross-Service-Solutions, polling until completion, then returning a download URL for the compressed file.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install compress-pdf或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install compress-pdf⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/compress-pdf/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: compress-pdf description: Compress a user-provided PDF by uploading it to Cross-Service-Solutions, polling until completion, then returning a download URL for the compressed file. license: MIT compatibility: agentskills: ">=0.1.0" metadata: category: document-processing tags: - pdf - compression - cross-service-solutions provider: Cross-Service-Solutions (XSS) allowed-tools: - http - files ---
This skill compresses a PDF by: 1) accepting a PDF file from the user, 2) uploading it to the Cross-Service-Solutions compression API, 3) polling the job status until it is finished, 4) returning the compressed file download URL.
The API requires an API key used as a Bearer token:
Authorization: Bearer
How the user gets an API key:
https://login.cross-service-solutions.com/register
Rule: never echo or log the API key.
Base URL:
https://api.xss-cross-service-solutions.com/solutions/solutions
Create compression job:
POST /api/29
multipart/form-data parameters:
- file (PDF Dokument) — required — PDF file
- imageQuality — required — number 0..100 (default 75)
- dpi — required — number 72..300 (default 144)
Get result by ID:
GET /api/
When done, the response contains:
output.files[] with { name, path } where path is a downloadable URL.
imageQuality (0..100), default 75
dpi (72..300), default 144
Return a structured result:
job_id (number)
status (string)
download_url (string, when done)
file_name (string, when available)
settings (object)
Example output:
{
"job_id": 123,
"status": "done",
"download_url": "https://.../compressed.pdf",
"file_name": "compressed.pdf",
"settings": { "imageQuality": 75, "dpi": 144 }
}安装 Compress PDF 后,可以对 AI 说这些话来触发它
Help me get started with Compress PDF
Explains what Compress PDF does, walks through the setup, and runs a quick demo based on your current project
Use Compress PDF to compress a user-provided PDF by uploading it to Cross-Service-Solut...
Invokes Compress PDF with the right parameters and returns the result directly in the conversation
What can I do with Compress PDF in my documents & notes workflow?
Lists the top use cases for Compress PDF, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/compress-pdf/ 目录(个人级,所有项目可用),或 .claude/skills/compress-pdf/(项目级)。重启 AI 客户端后,用 /compress-pdf 主动调用,或让 AI 根据上下文自动发现并使用。
Compress PDF 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Compress PDF 可免费安装使用。请查阅仓库了解许可证信息。
Compress a user-provided PDF by uploading it to Cross-Service-Solutions, polling until completion, then returning a download URL for the compressed file.
Compress PDF 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Compress PDF
Identifies repetitive steps in your workflow and sets up Compress PDF to handle them automatically