← 返回 Skills 市场
Compress PDF
作者
CrossServiceSolutions
· GitHub ↗
· v1.0.0
1974
总下载
1
收藏
13
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)
\r \r
compress-pdf\r
\r
Purpose\r
This skill compresses a PDF by:\r
- accepting a PDF file from the user,\r
- uploading it to the Cross-Service-Solutions compression API,\r
- polling the job status until it is finished,\r
- returning the compressed file download URL.\r \r
Credentials\r
The API requires an API key used as a Bearer token:\r
Authorization: Bearer \x3CAPI_KEY>\r \r How the user gets an API key:\r- They can sign up and get their key at:\r https://login.cross-service-solutions.com/register\r
- Or they can provide an API key directly to the bot.\r \r Rule: never echo or log the API key.\r \r
API endpoints\r
Base URL:\r
https://api.xss-cross-service-solutions.com/solutions/solutions\r \r Create compression job:\rPOST /api/29\rmultipart/form-dataparameters:\rfile(PDF Dokument) — required — PDF file\rimageQuality— required — number 0..100 (default 75)\rdpi— required — number 72..300 (default 144)\r \r Get result by ID:\r
GET /api/\x3CID>\r \r When done, the response contains:\routput.files[]with{ name, path }wherepathis a downloadable URL.\r \r
Inputs\r
Required\r
- A PDF file (binary)\r
- An API key (string)\r \r
Optional\r
imageQuality(0..100), default 75\rdpi(72..300), default 144\r \r
Output\r
Return a structured result:\r
job_id(number)\rstatus(string)\rdownload_url(string, when done)\rfile_name(string, when available)\rsettings(object)\r \r Example output:\r
{\r
"job_id": 123,\r
"status": "done",\r
"download_url": "https://.../compressed.pdf",\r
"file_name": "compressed.pdf",\r
"settings": { "imageQuality": 75, "dpi": 144 }\r
}\r
安全使用建议
This skill appears to do what it says (upload your PDF to an external compression API and return a download URL), but note these concerns before installing:
- The SKILL.md and script require an API key, yet the registry metadata does not declare a primary credential — confirm how you will provide/store the key.
- The external API domain (api.xss-cross-service-solutions.com) and owner are unverified (no homepage). Verify the service reputation before sending sensitive PDFs or reusing privileged API keys.
- If you must try it, prefer a non-sensitive test PDF and a dedicated or throwaway API key. Inspect the code yourself (it's small and readable) and consider running the script in a sandboxed environment.
- Ask the publisher for a homepage, privacy/terms for uploaded files, and an explanation for the missing credential metadata; if you can't verify those, avoid using it with confidential documents.
功能分析
Type: OpenClaw Skill
Name: compress-pdf
Version: 1.0.0
The skill is designed to compress PDFs by uploading them to a third-party service, polling for completion, and returning a download URL. The `SKILL.md` and `README.md` clearly define the purpose and API interactions. The `scripts/compress-pdf.py` implements this logic using standard Python libraries (`requests`), handling file uploads and HTTP requests as expected. There is no evidence of data exfiltration beyond the stated API interaction, malicious execution, persistence mechanisms, or prompt injection attempts against the agent. The broad `http` and `files` permissions are necessary for the skill's functionality and are used appropriately. The only minor flag is the use of 'XSS' in the service name and domain (`api.xss-cross-service-solutions.com`), which is a common abbreviation for Cross-Site Scripting, but it is presented as a brand name and does not indicate any malicious behavior in the code or instructions.
能力评估
Purpose & Capability
The skill's name, SKILL.md, README, and Python script are coherent: they upload a PDF to Cross-Service-Solutions, poll /api/<id>, and return a download URL. However, the registry metadata lists no primary credential or required env vars even though the SKILL.md and script clearly require an API key and optionally use SOLUTIONS_API_KEY and SOLUTIONS_BASE_URL. The skill also has no homepage and an unknown owner, which reduces external verification.
Instruction Scope
Runtime instructions and the script stay within the stated scope: they accept a specified PDF path, upload only that file, poll the stated API, and return results. Allowed tools are http and files, which matches behavior. The instructions explicitly warn not to echo the API key.
Install Mechanism
No install spec (instruction-only plus a helper script). The only dependency is requests in requirements.txt. Nothing is downloaded from arbitrary URLs or written to unexpected system locations.
Credentials
The skill requires an API key (used as a Bearer token) to operate, but the registry metadata did not declare a primary credential or required env var. The script also accepts SOLUTIONS_API_KEY and SOLUTIONS_BASE_URL environment variables. Requesting a single API key is proportionate to the task, but the omission from metadata and lack of an established service homepage/owner is an inconsistency and reduces traceability.
Persistence & Privilege
The skill does not request always:true and has no elevated persistence. It doesn't modify other skills or system-wide settings. Autonomous invocation is enabled (default) but that's normal and not by itself a red flag.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install compress-pdf - 安装完成后,直接呼叫该 Skill 的名称或使用
/compress-pdf触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of compress-pdf skill:
- Accepts a user PDF file and compresses it using Cross-Service-Solutions API.
- Polls job status until compression completes.
- Returns job status, compressed file download URL, file name, and compression settings.
- Requires an API key for authentication.
- Supports optional image quality and DPI settings.
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1974 次。
如何安装 Compress PDF?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install compress-pdf」即可一键安装,无需额外配置。
Compress PDF 是免费的吗?
是的,Compress PDF 完全免费(开源免费),可自由下载、安装和使用。
Compress PDF 支持哪些平台?
Compress PDF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Compress PDF?
由 CrossServiceSolutions(@crossservicesolutions)开发并维护,当前版本 v1.0.0。
推荐 Skills