← 返回 Skills 市场
ctz168

Sendfile Skill

作者 SamAI.cc · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
23
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install sendfile
功能描述
Send files to users in chat by creating a temporary public download link via aitun tunnel. Perfect for AI agents that need to deliver generated files (docume...
使用说明 (SKILL.md)

SendFile - Deliver Files to Users via Temporary Public Link

When to Use

Use this skill when:

  • You generated a file (document, image, report, spreadsheet, code, etc.) and need to send it to the user
  • The user asks to download a file you created
  • You need to share a local file with the user in a chat conversation
  • The chat platform does not support direct file uploads, or the file is too large
  • You want to give the user a direct download link they can open in any browser

Do NOT use this skill when:

  • The content can be displayed inline as text in the chat (just paste it)
  • The file is already hosted at a public URL (share the existing URL instead)
  • The file contains sensitive secrets or credentials (avoid exposing via public links)

Instructions

Step 1: Locate the file

Identify the file you want to send. This is typically a file you just generated:

  • A document: .pdf, .docx, .pptx, .xlsx
  • An image: .png, .jpg, .svg
  • A code archive: .zip, .tar.gz
  • Any other file the user requested

Verify the file exists:

ls -lh /path/to/your/file.ext

Step 2: Start a local file server

Start a simple HTTP server in the directory containing the file:

# If the file is at /path/to/output/report.pdf
cd /path/to/output
python3 -m http.server 8080 &
FILE_PID=$!
sleep 1

Step 3: Create a tunnel

Use aitun to expose the local server to the internet:

aitun -p 8080 &
AITUN_PID=$!
sleep 3

The output will contain the public URL, e.g.:

  • https://aitun.cc/abc123

Step 4: Build the download link

Append the filename to the public URL to create a direct download link:

https://aitun.cc/abc123/report.pdf

Step 5: Send the link to the user

Deliver the download link to the user in the chat:

Your file is ready for download: https://aitun.cc/abc123/report.pdf

This link is temporary and will expire in 24 hours. Download it soon.

Step 6: Clean up

After the user confirms they have downloaded the file, stop the servers:

kill $AITUN_PID 2>/dev/null
kill $FILE_PID 2>/dev/null

CLI Reference

The aitun command (installed via pip install aitun) accepts these flags:

Flag Description
-p PORT Local service port (default: 8080)
-k TOKEN Auth token for registered subdomain (omit for free tunnel)
--host HOST Local service address (default: localhost)
--tcp-ports PORTS TCP forwarding ports, comma-separated (e.g., 22,3306; requires -k)
--p2p Enable P2P direct connection (default: enabled)
--no-p2p Disable P2P, force server relay mode
--daemon Run as background daemon
--stop Stop running daemon

Notes

  • Free tunnels use proxy address mode (path-based URL like aitun.cc/abc123), NOT subdomains
  • Free tunnels expire after 24 hours, auto-renewed on restart
  • Traffic can go through P2P direct connection or server relay, both are encrypted end-to-end
  • For a permanent subdomain (e.g., files.aitun.cc), register at https://aitun.cc
  • The download link works in any browser on any device — no installation required for the user
  • Only one file server can run on the same port; if you need to serve files from different directories, use different ports
安全使用建议
Install only if you are comfortable with the skill creating public links to local content. Use a dedicated temporary folder containing only the intended file, avoid confidential data, and stop the server or tunnel immediately after the transfer.
能力评估
Purpose & Capability
Creating a temporary public link is coherent with a file-sharing skill, and no scanner or VirusTotal evidence shows malware, deception, credential theft, or destructive behavior.
Instruction Scope
The runtime instructions reportedly serve the directory containing the target file and expose it through a public link, which can make neighboring files or symlinks reachable if the directory is not isolated.
Install Mechanism
No concerning install-time persistence, package takeover, or hidden installation behavior was identified from the supplied evidence.
Credentials
Publishing local files to the public internet is high-impact for privacy; the instructions do not appear to require an explicit sensitivity check or clearly warn that anyone with the link may access the content while the server is running.
Persistence & Privilege
The behavior appears temporary rather than persistent, but it starts a local HTTP server/public tunnel that should be stopped promptly after use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sendfile
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sendfile 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - send files to users via aitun tunnel temporary download links
元数据
Slug sendfile
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Sendfile Skill 是什么?

Send files to users in chat by creating a temporary public download link via aitun tunnel. Perfect for AI agents that need to deliver generated files (docume... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 23 次。

如何安装 Sendfile Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sendfile」即可一键安装,无需额外配置。

Sendfile Skill 是免费的吗?

是的,Sendfile Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Sendfile Skill 支持哪些平台?

Sendfile Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sendfile Skill?

由 SamAI.cc(@ctz168)开发并维护,当前版本 v1.0.0。

💬 留言讨论