agentleFS
qiaoshouqingqiaoshouqing/skills/video-downloader/SKILL.md

video-downloader

Skill1 starsChanged 5 months agoMITView on GitHub

Download videos using yt-dlp. Use when user asks to download video, download audio, download subtitles, or provides a video URL from YouTube, Bilibili, Twitter, etc.

  • Installs packages

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tailored-resume-generator, algorithmic-art and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArogyaReddySkill

    tailored-resume-generator

    Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

    Also in 3 projects that use this

  • GoogleSkill

    algorithmic-art

    Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

    Also in 7 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 5 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 6 projects that use this

  • OpenAISkill

    subagent-driven-development

    Use when executing implementation plans with independent tasks in the current session

    Also in 4 projects that use this

  • OpenAISkill

    using-superpowers

    Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions

    Also in 3 projects that use this

  • +2 more from anthropics
  • +2 more from openai

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    IMPORTANT: Before any download, check and install dependencies automatically.

    line 23
  2. Distinctive:

    Run this check every time before downloading.

    line 45
  3. Very specific:

    Run the prerequisite check above.

    line 51
  4. Distinctive:

    Run the command and report:

    line 100
  5. Distinctive:

    Always confirm what will be downloaded before starting

    line 122
  6. Distinctive:

    If download fails, explain the error and suggest solutions

    line 125

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video Downloader - Download Videos with yt-dlp

Download videos, audio, or subtitles from YouTube, Bilibili, Twitter, and 1000+ other sites using yt-dlp.

When to Use

  • User asks to download a video
  • User asks to download or extract audio
  • User asks to download subtitles
  • User provides a video URL (YouTube, Bilibili, Twitter, etc.)
  • User wants to specify video quality (720p, 1080p, etc.)

Prerequisites - Auto Install

IMPORTANT: Before any download, check and install dependencies automatically.

Step 0: Check and Install Dependencies

# Check if yt-dlp is installed, install if missing
if ! command -v yt-dlp &>/dev/null; then
  echo "Installing yt-dlp..."
  brew install yt-dlp
fi

# Check if ffmpeg is installed, install if missing
if ! command -v ffmpeg &>/dev/null; then
  echo "Installing ffmpeg..."
  brew install ffmpeg
fi

# Verify installation
yt-dlp --version && echo "yt-dlp: ready"
ffmpeg -version 2>&1 | head -1 && echo "ffmpeg: ready"

Run this check every time before downloading. Install automatically without asking user.

Instructions for Agent

Step 1: Ensure Dependencies Installed

Run the prerequisite check above. If yt-dlp or ffmpeg is missing, install via brew install yt-dlp ffmpeg.

Step 2: Parse User Intent

Identify what the user wants:

User IntentKeywords
Video (default)"download", "video"
Audio only"audio", "mp3", "music", "extract audio"
Video + Subtitles"with subtitles", "embed subtitles"
Subtitles only"only subtitles", "subtitles only", "just subtitles"
Specific quality"720p", "1080p", "4k", "best", "worst"

Step 3: Build Command

Base command structure:

yt-dlp [OPTIONS] "URL"

Common options by intent:

  1. Basic video download (best quality):
yt-dlp -o "%(title)s.%(ext)s" "URL"
  1. Audio only (MP3):
yt-dlp -x --audio-format mp3 -o "%(title)s.%(ext)s" "URL"
  1. Specific quality (e.g., 720p):
yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" -o "%(title)s.%(ext)s" "URL"
  1. Video with embedded subtitles:
yt-dlp --write-subs --sub-lang en,zh-Hans,zh-Hant --embed-subs -o "%(title)s.%(ext)s" "URL"
  1. Subtitles only (no video):
yt-dlp --write-subs --write-auto-subs --sub-lang en,zh-Hans,zh-Hant --skip-download -o "%(title)s" "URL"

Step 4: Execute and Report

Run the command and report:

  • File name and location
  • File size (if available)
  • Any warnings or errors

Command Reference

TaskCommand
Best quality videoyt-dlp "URL"
Audio (MP3)yt-dlp -x --audio-format mp3 "URL"
Audio (M4A)yt-dlp -x --audio-format m4a "URL"
720p videoyt-dlp -f "bv[height<=720]+ba/b[height<=720]" "URL"
1080p videoyt-dlp -f "bv[height<=1080]+ba/b[height<=1080]" "URL"
4K videoyt-dlp -f "bv[height<=2160]+ba/b[height<=2160]" "URL"
With subtitlesyt-dlp --write-subs --embed-subs "URL"
Subtitles onlyyt-dlp --write-subs --write-auto-subs --skip-download "URL"
List formatsyt-dlp -F "URL"
Playlistyt-dlp -o "%(playlist_index)s-%(title)s.%(ext)s" "PLAYLIST_URL"

Response Guidelines

  • Always confirm what will be downloaded before starting
  • Show download progress or final result
  • Report the output file name and location
  • If download fails, explain the error and suggest solutions

Error Handling

ErrorSolution
yt-dlp: command not foundAuto-install: brew install yt-dlp
ffmpeg not foundAuto-install: brew install ffmpeg
Video unavailableCheck if URL is correct or video is region-locked
Private videoCannot download private videos without authentication
Format not availableUse yt-dlp -F URL to list available formats
No subtitles foundTry --write-auto-subs for auto-generated subtitles
brew: command not foundInstall Homebrew first: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.