Downloading youtube video
Download YouTube videos to local files with uvx yt-dlp. Use when asked to save a YouTube URL as local media, choose output directory or filename, handle JS challenges, or export audio-only files.From its SKILL.md
npx -y skills add soasme/Violyra --skill downloading-youtube-videoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
Download YouTube Video
Use uvx yt-dlp so downloads run without a global yt-dlp installation.
For YouTube links, default to Node runtime + remote EJS components to avoid false "video not available" failures.
Recommended Default Command
Use this command first for YouTube URLs:
uvx yt-dlp --js-runtimes node --remote-components ejs:github -P assets/downloads -o "%(title)s [%(id)s].%(ext)s" "<youtube-url>"
Workflow
-
Create output directory:
mkdir -p assets/downloads -
Download with the default command:
uvx yt-dlp --js-runtimes node --remote-components ejs:github -P assets/downloads -o "%(title)s [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=pZ7H3XuEFkQ" -
Prefer MP4 output for combined video + audio:
uvx yt-dlp --js-runtimes node --remote-components ejs:github -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/b" --merge-output-format mp4 -P assets/downloads -o "%(title)s [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=pZ7H3XuEFkQ"
Audio Only
Extract and convert to MP3:
uvx yt-dlp --js-runtimes node --remote-components ejs:github -x --audio-format mp3 -P assets/audio -o "%(title)s [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=pZ7H3XuEFkQ"
Authentication Fallback
Pass browser cookies when a URL requires login or age verification:
uvx yt-dlp --js-runtimes node --remote-components ejs:github --cookies-from-browser chrome -P assets/downloads -o "%(title)s [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=pZ7H3XuEFkQ"
Troubleshooting
- If output shows
No supported JavaScript runtime could be found, add--js-runtimes node. - If output shows
This video is not availablefor a known-working URL, retry with--remote-components ejs:github. - If the video is age-restricted or login-gated, add
--cookies-from-browser <browser>(for examplechrome).
Output Contract
- Save downloaded files locally in the selected directory.
- Preserve original extension unless
--merge-output-formator--audio-formatis set. - Print the final local path in terminal output.
Logging
Log to {project_dir}/logs/production.jsonl. See skills/lib/logging-guide.md for schema.
On invocation — key inputs: url, output_dir, format (video/audio/both)
On completion — key outputs: video_path, audio_path, duration_s