Agent skill

Youtube Downloader

by OpenMinis in OpenMinis/MinisSkills

Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell.

MITAuto-check passedMedia & Creative

Install Youtube Downloader

skills CLI
$ npx skills add OpenMinis/MinisSkills --skill youtube-downloader -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenMinis/MinisSkills youtube-downloader --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenMinis/MinisSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/youtube-downloader .claude/skills/youtube-downloader && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
youtube-downloader
GitHub stars
446
Token cost
~1.8k tokens
SKILL.md length
895 words
Files
3 (incl. scripts)
Skills in repo
49
Repo updated
First seen
Licence
MIT

At a glance

Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell.

  • Works in 6 steps: Check status → Install dependencies → Ask the user two questions → …
  • The user shares a YouTube URL and wants to download
  • SKILL.md covers How This Skill Works, First Run — Onboarding, Normal Operation and Quality Reference, plus 1 more section
  • Runs Shell scripts from its folder; calls sh, pip and apk; reaches youtube.com

What it does

Youtube Downloader is an agent skill from OpenMinis/MinisSkills. Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell. Trigger when the user shares a YouTube URL and wants to download, save, rip, extract, or convert it — to video or audio (MP3/M4A). Also trigger for phrases like "download this video", "save this YouTube", "rip audio from", "grab this video", or when a YouTube link is shared with intent to save it locally. Works with youtube.com/watch, youtu.be/, and youtube.com/shorts/ URLs.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/yt-config.sh` and `scripts/yt-download.sh`). Compatibility notes: requires yt-dlp, ffmpeg

It sits in Media & Creative, covering Video production. It works with YouTube, FFmpeg, Linux and iOS. The repository describes itself as: Skills collection for Minis. The licence is MIT.

When your agent uses it

  • The user shares a YouTube URL and wants to download
  • Convert it — to video
  • Audio (MP3/M4A)
  • Phrases like download this video

Example prompts

  • “download this video”
  • “save this YouTube”
  • “rip audio from”
  • “/youtube-downloader”

Requirements

  • Python 3
  • A Bash shell
  • Compatibility (from SKILL.md): requires yt-dlp, ffmpeg

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Check status
  2. Install dependencies
  3. Ask the user two questions
  4. Set up Files mount (if user chose option 1)
  5. Save config
  6. Offer a test download

What it can do on your machine

Read from SKILL.md and the folder at commit ae8c5db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • sh
    • pip
    • apk

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • youtube.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    requires yt-dlp, ffmpeg

    From compatibility in the SKILL.md frontmatter.

Context cost

Youtube Downloader loads about 1.8k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 895 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from OpenMinis/MinisSkills at commit ae8c5db, republished under its MIT licence (© OpenMinis). 895 words, ~1,819 tokens.

Download SKILL.mdSave it as .claude/skills/youtube-downloader/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
youtube-downloader
description
Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell. Trigger when the user shares a YouTube URL and wants to download, save, rip, extract, or convert it — to video or audio (MP3/M4A). Also trigger for phrases like "download this video", "save this YouTube", "rip audio from", "grab this video", or when a YouTube link is shared with intent to save it locally. Works with youtube.com/watch, youtu.be/, and youtube.com/shorts/ URLs.
compatibility
requires yt-dlp, ffmpeg

YouTube Downloader

Download YouTube videos or extract audio. Files are named after the video title, saved to the user's preferred location, and remuxed to play correctly as video on iOS.

How This Skill Works

This skill runs yt-dlp + ffmpeg inside the Minis Linux sandbox (iSH). Two iSH-specific workarounds are required:

  1. Manual DASH merge: yt-dlp's built-in video+audio merger crashes in iSH. For high-quality formats (1080p, 1440p), the script downloads video and audio separately using -k (keep video), lets the merger fail, then merges them with a direct ffmpeg call.

  2. iOS container fix: YouTube's MP4 files use the mp42 brand, which iOS may treat as audio-only. The script remuxes to M4V (for H.264) or standard mp4 (for AV1/VP9) with +faststart so iOS Files plays them as video.

First Run — Onboarding

On the FIRST time this skill triggers, run onboarding before downloading anything.

Step 1: Check status
bash
sh /var/minis/skills/youtube-downloader/scripts/yt-config.sh status

If onboarded: true, skip to Normal Operation. If onboarded: false (or config doesn't exist), continue onboarding.

Step 2: Install dependencies

If yt-dlp: no or ffmpeg: no in the status output, install them:

bash
apk add yt-dlp ffmpeg py3-pip
pip install --upgrade --break-system-packages yt-dlp

The pip upgrade is essential — Alpine's yt-dlp package is stale and YouTube's player changes frequently. This takes ~30 seconds.

Step 3: Ask the user two questions

Present as a friendly numbered list. Wait for answers.

Question 1 — Quality preference:

What quality do you want by default?

  1. 1080p video — Full HD, best balance of quality and size (default)
  2. 1440p video — 2K, highest quality, large files (~300 MB per 10 min)
  3. 720p video — HD, smaller file size
  4. Audio only — best for music/podcasts, smallest file
  5. Ask me every time — no default, I'll pick per video

Question 2 — Where to save:

Where should I save your downloads?

  1. iOS Files app (Downloads folder) — appears in Files → Downloads
  2. iOS Photos (YouTube Downloads album) — appears in Photos
  3. Keep in Minis — stays in the app's attachments folder
Step 4: Set up Files mount (if user chose option 1)

Check if the Downloads mount already exists via the status command. If downloads_mount: yes, skip. If downloads_mount: no, tell the user:

To save videos to your Files app, I need you to mount your Downloads folder:

  1. Tap this link: Mount External Folders
  2. Tap "Add Mount"
  3. Navigate to the folder you want (e.g., iCloud Drive → Downloads, or On My iPhone → Downloads)
  4. Name it "Downloads"
  5. Come back here and tell me when you're done

After the user confirms, re-run the status check to verify downloads_mount: yes.

Step 5: Save config
bash
sh /var/minis/skills/youtube-downloader/scripts/yt-config.sh set quality "<chosen_quality>"
sh /var/minis/skills/youtube-downloader/scripts/yt-config.sh set save_mode "<chosen_save_mode>"
sh /var/minis/skills/youtube-downloader/scripts/yt-config.sh complete
  • Quality: "1080p", "1440p", "720p", "360p", "audio", or "" (empty string for "ask every time")
  • save_mode: "files", "photos", or "minis"
Step 6: Offer a test download

Tell the user setup is complete. Offer to download a short test video at 360p so they can verify the flow:

bash
sh /var/minis/skills/youtube-downloader/scripts/yt-download.sh "https://www.youtube.com/watch?v=aqz-KE-bpKQ" 360p <save_mode>

Replace <save_mode> with whatever the user chose (files, photos, or minis). 360p is used for the test because it's the most reliable quality — higher quality works the same way once configured.

Confirm the file appeared where they expected. Then proceed with whatever they originally asked for.


Show full SKILL.md (385 more words)Show less

Normal Operation

bash
sh /var/minis/skills/youtube-downloader/scripts/yt-download.sh "<URL>" [quality] [save_mode]
  • Quality is optional — if omitted, uses the saved default from config
  • save_mode is optional — if omitted, uses the saved default from config (files, photos, or minis)
  • If the user specified a quality in their message ("just the audio", "1440p", etc.), use that
  • If the user specified where to save ("save to photos", "put it in files"), pass that as save_mode
After download, report to the user

The script prints one of three status lines. Read it and tell the user:

  • If SAVED_TO_FILES: "Saved to your Files app → Downloads folder. Pull to refresh if you don't see it yet."
  • If SAVED_TO_PHOTOS: "Saved to the 'YouTube Downloads' album in your Photos app."
  • If KEPT_IN_ATTACHMENTS: The file is at /var/minis/attachments/<filename>. Display it inline and tell the user it's available in Minis.
  • Always include the video title and file size.

Quality Reference

QualityFormatApprox size (10-min video)Reliability
1080pDASH H.264 + AAC, manually merged~256 MB✅ Works (M4V container)
1440pDASH AV1 or VP9 + AAC, manually merged~300-460 MB✅ Works (mp4 container)
720pMP4 pre-merged (format 22)~80 MB✅ Always works
360pMP4 pre-merged (format 18)~27 MB✅ Always works
audioM4A 128kbps (format 140)~10 MB✅ Always works

DASH formats (1080p, 1440p) download video and audio separately, then merge with ffmpeg (yt-dlp's built-in merger fails in iSH). H.264 streams go into the Apple M4V container; AV1/VP9 streams go into standard mp4. Both play as video on iOS. All video downloads are remuxed with +faststart and the correct container brand.


Troubleshooting

403 Forbidden on DASH streams: YouTube transiently blocks DASH downloads when using the android vr client fallback (no JS runtime available). Retry — it usually works within 1-2 attempts. Pre-merged formats (360p, 720p) bypass this entirely.

"No supported JavaScript runtime": iSH has no Deno/Node, so yt-dlp can't do YouTube's nsig extraction. Pre-merged formats (18, 22) and audio (140) work without JS. DASH formats work via the android vr client fallback but may intermittently 403.

yt-dlp out of date: YouTube breaks extraction often. Run pip install --upgrade --break-system-packages yt-dlp.

Downloads mount disappears: The mount may disconnect if iCloud sync state changes. Run yt-config.sh status to check. If broken, guide the user to re-mount via Mount External Folders.

Large files: 1440p files can exceed 450 MB. If the app crashes or becomes unstable, stick to 1080p or lower.

© OpenMinis, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in youtube-downloader of OpenMinis/MinisSkills.

  • SKILL.md
  • scripts/yt-config.sh
  • scripts/yt-download.sh

Open the folder on GitHubat commit ae8c5db

Compare with similar skills

Youtube Downloader next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Youtube Downloader compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Youtube Downloader this skillOpenMinis/MinisSkills446—~1.8kAutomated safety check: PassMIT
Video Clipping ReferenceRightNow-AI/openfang18k—~4.1kAutomated safety check: WarnApache-2.0
Ffmpeg Skillkajisho5/ffmpeg-skill1.9k—~7.4kAutomated safety check: PassMIT
Explainroovincentsch/explainroo515—~439Automated safety check: PassMIT
Video Clip Extractorlinzzzzzz/openclip569—~2.8kAutomated safety check: WarnMIT
Record Demolibnativeapi/nativeapi166—~2.9kAutomated safety check: PassMIT

Similar skills

  • Video Clipping Reference

    RightNow-AI/openfang

    Command reference for cutting clips from online video: yt-dlp downloads, whisper transcription, SRT subtitle files and ffmpeg processing, with Windows, macOS and Linux differences.

    18k GitHub stars~4.1k tokensUpdated 3 mo ago
    Media & CreativeAuto-check: warnings
  • Ffmpeg Skill

    kajisho5/ffmpeg-skill

    Edit video and audio with local FFmpeg from natural-language requests: cut, trim, join, resize/reframe (9:16, 1:1), speed change, captions and subtitles (SRT/ASS, animated, karaoke), logos and text…

    1.9k GitHub stars~7.4k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Explainroo

    vincentsch/explainroo

    Make an explainer video (MP4) with a voice-over using explainroo.

    515 GitHub stars~439 tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • Video Clip Extractor

    linzzzzzz/openclip

    Processes videos to identify engaging moments, generate transcripts, and create highlight clips with artistic titles and custom cover images.

    569 GitHub stars~2.8k tokensUpdated 1 mo ago
    Media & CreativeAuto-check: warnings
  • Record Demo

    libnativeapi/nativeapi

    Record a demo video of a desktop app — launch it, play a scripted scenario with smooth synthetic mouse input, and capture the screen (cursor and click highlights included) straight to an…

    166 GitHub stars~2.9k tokensUpdated today
    Media & CreativeAuto-check passed
  • Watch

    mathiaschu/watch

    Watch a video from YouTube, Instagram, X/Twitter, Vimeo, TikTok or any of ~1800 yt-dlp sites (or a local path).

    142 GitHub stars~4k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: warnings

More from OpenMinis/MinisSkills

All 49 skills in this repo
  • Android UI Automation

    OpenMinis/MinisSkills

    Automate Android apps that have no public API or web version by driving the UI layer through the Accessibility Service.

    446 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Codex On Ish

    OpenMinis/MinisSkills

    Install and run OpenAI Codex CLI inside the Minis/iSH Alpine sandbox on iOS, where rustls TLS and async sockets are broken.

    446 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Evidence Chain Builder

    OpenMinis/MinisSkills

    Score a claim against the evidence behind it. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed
  • Hyperframes CLI

    OpenMinis/MinisSkills

    HyperFrames CLI and Minis rendering. An agent skill from OpenMinis/MinisSkills.

    446 GitHub stars~3.5k tokensUpdated 3 days ago
    Auto-check passed
  • Whenpeak

    OpenMinis/MinisSkills

    Predict when a person's brain works best from their sleep, using the WhenPeak performance-intelligence API, and turn it into concrete scheduling advice.

    446 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Openstreetmap Marker

    OpenMinis/MinisSkills

    Generate a mobile-first, immersive, Amap(Gaode)-style custom landmark marker HTML map for travel itinerary planning, place showcasing, location sharing, etc.

    446 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed

Questions about Youtube Downloader

What does Youtube Downloader do?

Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell. Youtube Downloader is an agent skill from OpenMinis/MinisSkills. Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell.

When should I use Youtube Downloader?

Youtube Downloader fits situations like: the user shares a YouTube URL and wants to download; convert it — to video; audio (MP3/M4A); phrases like download this video.

How do I install Youtube Downloader in Claude Code?

Run `npx skills add OpenMinis/MinisSkills --skill youtube-downloader -a claude-code`. Or copy the skill folder (youtube-downloader in OpenMinis/MinisSkills) into .claude/skills/youtube-downloader in your project. Claude Code loads it when a task matches its description.

How do I install Youtube Downloader in Codex?

Run `npx skills add OpenMinis/MinisSkills --skill youtube-downloader -a codex`. Or copy the skill folder (youtube-downloader in OpenMinis/MinisSkills) into .agents/skills/youtube-downloader in your project. Codex loads it when a task matches its description.

Can I use Youtube Downloader in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenMinis/MinisSkills --skill youtube-downloader -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/youtube-downloader, .gemini/skills/youtube-downloader, .github/skills/youtube-downloader and .opencode/skills/youtube-downloader in your project.

What does Youtube Downloader need to run?

Going by SKILL.md and its folder, Youtube Downloader needs a shell for the scripts in its folder and the command-line tools its instructions call (sh, pip and apk). Our summary lists: Python 3; A Bash shell. Compatibility (from SKILL.md): requires yt-dlp, ffmpeg.

Does Youtube Downloader access the network?

SKILL.md names 1 domain. In commands or code: youtube.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Youtube Downloader safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Youtube Downloader use?

Youtube Downloader is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Youtube Downloader use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Youtube Downloader?

Skills that share tags, products or a category with Youtube Downloader: Video Clipping Reference (RightNow-AI/openfang, 18k stars), Ffmpeg Skill (kajisho5/ffmpeg-skill, 1.9k stars), Explainroo (vincentsch/explainroo, 515 stars) and Video Clip Extractor (linzzzzzz/openclip, 569 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Youtube Downloader?

OpenMinis (a GitHub organization) maintains it in OpenMinis/MinisSkills, which has 446 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.

Source: OpenMinis/MinisSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.