agentleFS
JohnsonChenxJohnsonChenx/video-ai-toolkit/skills/youtube/SKILL.md

youtube

Skill0 starsChanged 4 months agoMITView on GitHub

Baixa vídeos (sempre em MP4) ou apenas o áudio (sempre em MP3) do YouTube e de centenas de outros sites (Vimeo, Twitter/X, Instagram, TikTok etc.) usando yt-dlp, instalando e configurando o yt-dlp/ffmpeg/Deno automaticamente se não estiverem presentes. Use esta skill SEMPRE que o usuário pedir para baixar um vídeo, baixar uma música/áudio de um vídeo, extrair MP3 de um link, baixar uma playlist, salvar um vídeo do YouTube, ou colar uma URL de vídeo pedindo download — mesmo que ele não mencione "yt-dlp". Também use quando o download falhar por yt-dlp desatualizado ou ausente.

  • Installs packages

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tiktok, linkedin and 2 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.
  • G-HunterAiSkill

    tiktok

    TikTok platform integration. Manage videos, view analytics, and track engagement.

    Also in 5 projects that use this

  • kkoppenhaverSkill

    linkedin

    Write LinkedIn posts in Keanan's voice. Use when drafting LinkedIn content, creating professional posts, or sharing builder-focused insights. Triggers include requests to "write a LinkedIn post", "draft something for LinkedIn", "help me post on LinkedIn", or any LinkedIn content creation. Generates upbeat, builder-centric content mixing practical how-tos with candid humor.

    Also in 3 projects that use this

  • OpenAISkill

    email

    Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 0

    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. Very specific:

    No Windows, o winget instala o deno.exe FORA do PATH — localize-o em %LOCALAPPDATA%\Microsoft\WinGet\Packages\DenoLand.Deno_*\deno.exe

    line 58

“Common” is measured: kept by at least 6 in 10 of the 28 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

YouTube — Download de vídeos e áudios (yt-dlp)

Skill para baixar vídeos em MP4 e áudios em MP3 com yt-dlp, cuidando da instalação e configuração do ambiente quando necessário.

Passo 1 — Verificar o ambiente (sempre, antes de baixar)

Windows (PowerShell):

Get-Command yt-dlp -ErrorAction SilentlyContinue
Get-Command ffmpeg -ErrorAction SilentlyContinue

macOS/Linux: which yt-dlp ffmpeg

Se o yt-dlp NÃO estiver instalado

pip install -U yt-dlp

Se o pip falhar com erro de SSL/certificado, a causa provável é antivírus ou proxy corporativo interceptando HTTPS (Avast, por exemplo, faz isso). Correção no Windows: pip install pip-system-certs e repetir.

Se o ffmpeg NÃO estiver instalado

O ffmpeg é obrigatório (converte MP3 e junta vídeo+áudio):

# Windows — use --source winget: a fonte msstore falha com antivírus que interceptam HTTPS
winget install --id Gyan.FFmpeg -e --source winget --accept-source-agreements --accept-package-agreements

macOS: brew install ffmpeg · Linux: sudo apt install ffmpeg

Runtime JavaScript (exigido pelo YouTube desde 2026)

Se o yt-dlp emitir o aviso "No supported JavaScript runtime could be found", o YouTube pode ocultar os melhores formatos. Correção:

  1. Instalar Deno se não existir: winget install --id DenoLand.Deno -e --source winget (macOS: brew install deno)
  2. No Windows, o winget instala o deno.exe FORA do PATH — localize-o em %LOCALAPPDATA%\Microsoft\WinGet\Packages\DenoLand.Deno_*\deno.exe
  3. Registre no config global do yt-dlp (%APPDATA%\yt-dlp\config), uma linha: --js-runtimes "deno:<caminho completo do deno.exe>"

Se o download falhar com erro de "signature", "extractor" ou HTTP 403

Quase sempre é yt-dlp desatualizado (o YouTube muda com frequência): pip install -U yt-dlp e tente de novo.

Passo 2 — Baixar

Pergunte (ou deduza do pedido) apenas o que faltar: URL, vídeo ou só áudio, e pasta de destino. Sem pasta indicada, use a pasta de Downloads do usuário.

Vídeo — sempre MP4

Prefere H.264+AAC (compatibilidade máxima); se o site entregar outro codec, remuxa o container para MP4:

yt-dlp -f "bv*[vcodec^=avc1]+ba[acodec^=mp4a]/bv*+ba/b" --merge-output-format mp4 --remux-video mp4 --no-playlist -o "<PASTA>\%(title)s.%(ext)s" "<URL>"

Áudio — sempre MP3 (melhor qualidade)

yt-dlp -x --audio-format mp3 --audio-quality 0 --no-playlist -o "<PASTA>\%(title)s.%(ext)s" "<URL>"

Playlist inteira

Remova --no-playlist e use o modelo de saída com subpasta numerada:

-o "<PASTA>\%(playlist_title)s\%(playlist_index)s - %(title)s.%(ext)s"

Atenção: URLs de vídeo dentro de playlist (watch?v=...&list=...) baixam a playlist INTEIRA sem --no-playlist. Só omita a flag se o usuário pediu a playlist explicitamente.

Observações

  • Em PowerShell os modelos %(title)s funcionam entre aspas duplas normalmente; em arquivos .bat é preciso dobrar o % (%%(title)s).
  • Para ver qualidades disponíveis antes de baixar: yt-dlp -F --no-playlist "<URL>".
  • Para validar sem baixar (teste): yt-dlp --simulate --print "%(title)s" "<URL>".
  • Este repositório também traz uma interface web local (apps/baixador/ABRIR.bat) para quem prefere clicar em vez de conversar — indique-a se o usuário pedir "um programa" de download.

Passo 3 — Confirmar

Após o download, liste o(s) arquivo(s) gerado(s) com nome, extensão e tamanho, confirmando que vídeo saiu .mp4 e áudio saiu .mp3. Lembre o usuário de baixar apenas conteúdo que tem direito de usar.

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.