Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

download-file下载文件

Agent Skill

download-file 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

13,696

周安装

565

GitHub Stars

公开资料未说明

下载量

4,475
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:download-file(下载文件)
来源仓库:https://github.com/moony320/download-file
安装命令:
openclaw skills install download-file
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install download-file

简介

支持断点续传与进度监控的大文件下载工具。

  • 适用于 HTTP/HTTPS 协议下的稳定文件获取。
  • 内置超时重试机制保障下载可靠性。download-file 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 使用前需确认目标 URL 可访问且无防盗链限制。
  • 建议限制并发数以避免带宽占用过高。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
download-file
description
Download large files from HTTP/HTTPS URLs with resume support, progress monitoring, and timeout handling
metadata

📥 Large File Downloader

When to Use

Use this skill when downloading files from HTTP/HTTPS URLs, especially large files (>100MB).

Typical scenarios:

  • Downloading software installers (DMG, EXE, ZIP)
  • Downloading large datasets
  • Downloading video/audio files
  • Downloading documents/PDFs
  • Any file download from URL

Trigger keywords:

  • "download this file"
  • "save this DMG"
  • "download from this URL"
  • "get this file"
  • "帮我下载 xxx" (Chinese)

Core Principles

⚠️ Must-Follow Best Practices

  1. Always use background execution - Never run large downloads synchronously
  2. Always set timeout - Configure reasonable timeout based on file size
  3. Always support resume - Use curl -C - for resumable downloads
  4. Always show progress - Use --progress-bar flag
  5. Always verify results - Check file size after download completes

Standard Process

Step 1: Start Download (Background Mode)

exec(
  command="curl -L -C - --progress-bar -o <destination_path> <URL>",
  background=true,
  timeout=600
)

Parameter explanation:

  • -L - Follow redirects
  • -C - - Resume partial download
  • --progress-bar - Show progress bar
  • -o - Output file path
  • background=true - Critical! Run in background to avoid timeout
  • timeout=600 - 10 minutes timeout (adjust based on file size)

Step 2: Monitor Progress

process(action="poll", sessionId="<session_id>")

Poll periodically to check download progress until completion.

Step 3: Verify Result

exec(command="ls -lh <file_path>")

Check:

  • File exists
  • File size is reasonable
  • File is complete (compare MD5/SHA if available)

Complete Examples

Example 1: Download DMG File (215MB)

User: "Download https://github.com/example/app/releases/download/v1.0/app.dmg"

Agent action:

{
  "tool": "exec",
  "command": "curl -L -C - --progress-bar -o ~/Downloads/app.dmg https://github.com/example/app/releases/download/v1.0/app.dmg",
  "background": true,
  "timeout": 600
}

Returns: {status: "running", sessionId: "xxx"}

Then poll periodically:

{
  "tool": "process",
  "action": "poll",
  "sessionId": "xxx"
}

After download completes, verify:

{
  "tool": "exec",
  "command": "ls -lh ~/Downloads/app.dmg && file ~/Downloads/app.dmg"
}

Example 2: Download Small File (<50MB)

For small files, simplified handling is acceptable:

exec(command="curl -L -o ~/Downloads/small.pdf https://example.com/small.pdf", timeout=120)

Small files can run synchronously, but still set timeout.


Timeout Reference

File SizeRecommended Timeout
< 50MB120 seconds (2 min)
50-200MB300 seconds (5 min)
200-500MB600 seconds (10 min)
500MB-1GB1200 seconds (20 min)
> 1GB1800 seconds (30 min) or more

Error Handling

Common Errors & Solutions

1. Download interrupted

# Re-run same command, curl -C - will resume automatically
curl -L -C - --progress-bar -o file.zip <URL>

2. Permission denied

# Ensure destination directory is writable
mkdir -p ~/Downloads

3. Redirect failed

# Use -L flag to follow redirects
curl -L -o file.zip <URL>

4. Network timeout

# Increase timeout or use --retry
curl -L --retry 3 --connect-timeout 30 -o file.zip <URL>

Advanced Options

Multi-threaded Download (aria2)

If aria2 is available, use multi-threading for faster downloads:

exec(
  command="aria2c -x 16 -s 16 -k 1M --continue -o ~/Downloads/file.zip <URL>",
  background=true,
  timeout=600
)

Full Flow with Progress Monitoring

# 1. Start download
exec(command="curl -L -C - --progress-bar -o ~/Downloads/file.zip <URL>", background=true, timeout=600)

# 2. Poll every 30 seconds
process(action="poll", sessionId="xxx")

# 3. Verify after completion
exec(command="ls -lh ~/Downloads/file.zip")

# 4. Optional: Calculate checksum
exec(command="md5sum ~/Downloads/file.zip")

Security Considerations

  1. Download from trusted sources only - Verify URL origin
  2. Check file type - Use file command to verify
  3. Scan for viruses - If needed, scan after download
  4. Don't overwrite important files - Check if destination exists

Related Skills

  • feishu-send-file - Send downloaded file to Feishu
  • file-read - Read downloaded file content
  • video-frames - Extract frames if video file

Troubleshooting

If download fails, follow these steps:

  1. Check network connectivity
   curl -I <URL>
  1. Check disk space
   df -h ~/Downloads
  1. View detailed error
   curl -v -o /dev/null <URL>
  1. Try alternative tool
   wget --continue <URL>

Remember: Always use background=true for large file downloads! 🎯

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.63%
按下载量换算3,787

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills