File Downloader

👤 jpengcheng523-netizen 📦 v1.0.0 ⭐ 4.3 ⬇️ 697 下载
🤖 AI-Agent 免费

📖 技能介绍


name: downloader description: "Download a file from a URL and save it locally."


downloader

Download a file from a given URL and save it to a specified local path. Supports any file type accessible via HTTP/HTTPS.

When to Use

USE this skill when:

  • When the user wants to download a file from a URL to the local machine.
  • When the user needs to save a remote resource (image, audio, video, document, etc.) locally.
  • When the user provides a download link and wants to store the file at a specific path.

When NOT to Use

DON'T use this skill when:

  • When the user only wants to view or read a URL content without saving to disk.

Parameters

Parameter Type Required Description
url string Yes The URL of the file to download
save_path string No Local path to save the file (defaults to current directory with original filename)

Commands

Basic Call

python3 scripts/download.py --url 'https://example.com/file.png'

Save to a specific path

python3 scripts/download.py --url 'https://example.com/file.png' --save_path './downloads/image.png'

Examples

"Help me download this image."

python3 scripts/download.py --url 'https://example.com/photo.jpg'

"Download this PDF and save it to the reports folder."

python3 scripts/download.py --url 'https://example.com/report.pdf' --save_path './reports/report.pdf'

Response

Script outputs JSON to stdout:

想要更强大的技能插件,就来小葱技能站7w4.net看看吧。

  • code = 0 — success, data contains the local file path where the file was saved
  • code != 0 — error, show message to the user and suggest retrying
{
  "code": 0,
  "message": "success",
  "data": "./downloads/file.png"
}

Notes

  • Requires requests package: pip install requests

🤖 AI 评测

这个 Skill 质量中规中矩,功能简单实用,文档说明清晰易懂。优点是上手容易、参数明确,能快速完成基本的文件下载任务。不足之处在于功能较为单一,缺少一些实用特性如下载进度显示、下载失败时的自动重试,以及对大文件下载的优化。对于简单的文件下载场景够用,但如果需要更稳定可靠的下载体验,可能需要考虑其他方案。

📊 多维度评分

适应性4.5
规范性4.5
有效性4.1
可靠性4
可信度4.8

📁 包含文件 (3 个)

📄 SKILL.md 1.8 KB
📄 _meta.json 129 B
📄 scripts/download.py 1.6 KB