返回顶部
x

xdropXdrop文件传输

Use this skill when the user wants to send or fetch files through an Xdrop server from the terminal, asks to automate encrypted Xdrop share-link workflows, provides an Xdrop `/t/:transferId#k=...` link to download and decrypt locally, or needs Xdrop CLI flags such as `--quiet`, `--json`, `--expires-in`, `--output`, or `--api-url`, even if they do not explicitly mention the skill name.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,125
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

xdrop

Xdrop

使用此技能目录内的捆绑脚本。

可用脚本

  • - scripts/upload.mjs — 将本地文件或目录上传至Xdrop服务器并打印分享链接
  • scripts/download.mjs — 下载Xdrop分享链接,在本地解密并保存文件

环境要求:

  • - Bun
  • 本地文件系统访问权限
  • 目标Xdrop服务器的网络访问权限

上传

bash
bun scripts/upload.mjs --server [...]

相关情况下优先使用以下标志:

  • - --quiet:抑制进度输出,保持标准输出干净
  • --json:返回transferId、shareUrl和expiresAt
  • --expires-in :选择支持的过期时间
  • --api-url :覆盖默认的/api/v1
  • --name :设置传输显示名称
  • --concurrency :限制每个文件的并行上传数

实用示例:

bash
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt

如需验证,可先上传一个临时小文件,然后确认公共传输API或浏览器能打开返回的链接。

下载

需要完整的分享链接,包含#k=...。缺少片段密钥则无法解密传输。

bash
bun scripts/download.mjs

相关情况下优先使用以下标志:

  • - --output :选择目标目录
  • --quiet:抑制进度输出,保持标准输出干净
  • --json:返回transferId、outputRoot和保存的文件路径
  • --api-url :覆盖默认的/api/v1

实用示例:

bash
bun scripts/download.mjs http://localhost:8080/t/abc123#k=...
bun scripts/download.mjs --output ./downloads http://localhost:8080/t/abc123#k=...
bun scripts/download.mjs --quiet --json --output ./downloads http://localhost:8080/t/abc123#k=...

默认情况下,下载器写入./xdrop-目录,并保留清单文件的相对路径。

注意事项

  • - 缺少#k=...片段的下载链接无法解密。请索取完整的原始分享URL。
  • 当其他命令或调用者需要捕获标准输出时,请使用--quiet。进度日志默认输出到标准错误,但最终结果仍然重要。

安全护栏

  • - 当其他命令或脚本需要捕获标准输出时,优先使用--quiet。
  • 下载时保持完整分享链接片段不变。
  • 除非用户明确要求,否则不要使用手动临时命令绕过脚本内置的路径清理或传输清理行为。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xdrop-1775997241 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xdrop-1775997241 技能

通过命令行安装

skillhub install xdrop-1775997241

下载

⬇ 下载 xdrop v1.0.0(免费)

文件大小: 10.87 KB | 发布时间: 2026-4-13 12:38

v1.0.0 最新 2026-4-13 12:38
Initial release of xdrop skill.

- Upload and download files or directories to/from an Xdrop server via CLI scripts.
- Supports share-link workflows with encryption; downloads require full share link with `#k=...`.
- Includes CLI flags: `--quiet`, `--json`, `--expires-in`, `--output`, `--api-url`, and others.
- Provides usage examples, gotchas, and guardrails for safe, automated file transfers.
- Requires Bun, network, and filesystem access.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部