downloader
npx machina-cli add skill next-open-ai/openclawx/downloader --openclawFiles (1)
SKILL.md
1021 B
Downloader Skill
Use this skill to download resources from the internet to the user's local file system.
Workflow
- Identify the URL(s) to download and the target destination directory. If no directory is specified, default to
~/Downloads/OpenClawX/and inform the user. - Ensure the destination directory exists using
bash(mkdir -p <dir>). - Use a tool like
wgetorcurlvia thebashtool:- Example:
wget -P ~/Downloads/OpenClawX/ <URL> - For multiple files, write urls to a file and use
wget -i <file>.
- Example:
- If downloading media (like video), suggest to the user to use
yt-dlpor similar tools if they are available on the system. - Check if the download succeeded (e.g., using
ls -lon the destination file). - Provide the exact path of the downloaded file(s) to the user.
Source
git clone https://github.com/next-open-ai/openclawx/blob/main/presets/workspaces/download-assistant/skills/downloader/SKILL.mdView on GitHub Overview
Downloader fetches files, images, or media from URLs using bash tools like curl or wget. It supports bulk downloads and saves results to a chosen directory, defaulting to ~/Downloads/OpenClawX/ if none is provided.
How This Skill Works
Identify the URLs and a target directory. Create the destination with mkdir -p and then download using wget or curl. For multiple files, use a list file with wget -i to fetch them in one go. After downloads, verify success with ls -l and return the exact paths.
When to Use It
- Downloading a single file from a URL to a chosen folder
- Bulk downloading many URLs listed in a file or script
- Ensuring the destination directory exists automatically before saving
- Downloading media and using yt-dlp if available to optimize formats
- Verifying downloads by listing the destination directory
Quick Start
- Step 1: Identify the URL(s) to download and the destination directory (default to ~/Downloads/OpenClawX/)
- Step 2: Create the destination directory with mkdir -p <dir>
- Step 3: Download files using wget or curl, and verify with ls -l <dir>
Best Practices
- Confirm or decide the destination directory before starting
- Use mkdir -p to safely create nested folders
- Choose clear file paths using wget -P <dir> or curl -o <path>
- For many files, maintain a list file and use wget -i <list file>
- Verify each download with a quick ls -l or a checksum check and report paths
Example Use Cases
- Download a single image to the default directory with wget -P ~/Downloads/OpenClawX/ https://example.com/image.jpg
- Bulk download PDFs from a catalog by creating urls.txt and running wget -i urls.txt -P ~/Downloads/OpenClawX/
- Fetch a video to a specific folder using curl and verify with ls -l
- Download a set of MP3s listed in music_urls.txt to /home/user/music
- After downloading, list the destination to confirm filenames and paths
Frequently Asked Questions
Add this skill to your agents