Agent skill
youtube-video-to-audio
Download YouTube videos as audio files using yt-dlp
Install this agent skill to your Project
npx add-skill https://github.com/MacHu-GWU/sanhe-claude-code-plugins/tree/main/plugins/social-media-network/youtube/skills/youtube-video-to-audio
SKILL.md
YouTube Video to Audio
Extract and download audio from YouTube videos.
Usage
python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=VIDEO_ID"
Options
--video-url(required) - YouTube video URL to download--quality- Quality selector (default: "bestaudio[abr<=64]/worstaudio")--audio-format- Output format: mp3, aac, wav (default: mp3)--bitrate- Audio bitrate: 64K, 128K, 192K, 320K (default: 64K)--output- Custom output path (default: ~/tmp/download_audio_result.mp3)
Examples
# Basic usage (default: 64K bitrate MP3 to ~/tmp/download_audio_result.mp3)
python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=d6rZtgHcbWA"
# High quality with custom bitrate
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --quality "bestaudio" --bitrate "128K"
# Custom output location
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --output "/path/to/output.mp3"
Requirements
- Python 3.11+
- ffmpeg installed at
~/ffmpeg - yt-dlp (auto-downloaded on first run)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
command-creator
Create custom slash commands for Claude Code
release-note-writer
Generate and update release notes for sanhe-claude-code-plugins. Use when user wants to create or update release notes, document version changes, or prepare for a new release. Reads git commit history, pyproject.toml version, and follows the standardized format.
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
command-creator
Create custom slash commands for Claude Code
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
enrich-citations
Find and add authoritative source links for all facts, citations, and references in markdown documents
Didn't find tool you were looking for?