ワンクリックで
mk-youtube-get-audio
Download YouTube video audio file. Use when user wants to extract audio or download music/podcast from a video.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Download YouTube video audio file. Use when user wants to extract audio or download music/podcast from a video.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Transcribe audio to text using local whisper.cpp. Use when user wants to convert audio/video to text, get transcription, or speech-to-text.
Download YouTube video subtitles. Use when user wants to get captions or subtitles from a video.
Get latest videos, livestreams, shorts, or podcasts from a YouTube channel
Get YouTube video metadata (title, channel, duration, views, subtitle availability). Use when user wants video details or needs to check subtitle availability before summarization.
Search YouTube videos. Use when user wants to find videos by keyword or topic.
Use when publishing a new version — bumps versions across all config files, updates CHANGELOG, verifies utility sync, commits, creates PR, and tags release
| name | mk-youtube-get-audio |
| description | Download YouTube video audio file. Use when user wants to extract audio or download music/podcast from a video. |
| license | MIT |
| metadata | {"version":"1.1.2","author":"kouko","tags":["youtube","audio","download"]} |
| compatibility | {"claude-code":">=1.0.0"} |
Download video audio file (best available format, no conversion).
/mk-youtube-get-audio <URL> [output_dir] [browser] [--force]
| Parameter | Required | Default | Description |
|---|---|---|---|
| URL | Yes | - | YouTube video URL |
| output_dir | No | /tmp/monkey_knowledge/youtube/audio | Output directory for audio file |
| browser | No | auto | Browser for cookies (chrome, firefox, safari, edge, brave) |
| --force | No | false | Force re-download even if cached file exists |
/mk-youtube-get-audio https://youtube.com/watch?v=xxx - Download with auto cookie fallback/mk-youtube-get-audio https://youtube.com/watch?v=xxx ~/Music - Save to custom directory/mk-youtube-get-audio https://youtube.com/watch?v=xxx /tmp chrome - Use Chrome cookies{baseDir}/scripts/audio.sh "<URL>" "<output_dir>" "<browser>"┌─────────────────────────────┐
│ First attempt (no auth) │
└──────────────┬──────────────┘
│
┌───────┴───────┐
│ │
Success Failed
│ │
▼ ▼
[Return] ┌─────────────────────┐
│ Retry with cookies │
│ chrome → firefox → │
│ safari → edge → │
│ brave │
└──────────┬──────────┘
│
┌───────┴───────┐
│ │
Success Failed
│ │
▼ ▼
[Return] [Error]
Success:
{
"status": "success",
"file_path": "/tmp/monkey_knowledge/youtube/audio/20091025__VIDEO_ID.m4a",
"file_size": "5.2M",
"cached": false,
"video_id": "dQw4w9WgXcQ",
"title": "Video Title",
"channel": "Channel Name",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"duration_string": "3:32"
}
Cache hit (returns existing file):
{
"status": "success",
"file_path": "/tmp/monkey_knowledge/youtube/audio/20091025__VIDEO_ID.m4a",
"file_size": "5.2M",
"cached": true,
...
}
Error:
{
"status": "error",
"message": "Download failed (tried with and without cookies)"
}
Files use unified naming with date prefix: {YYYYMMDD}__{video_id}.{ext}
Example: 20091025__dQw4w9WgXcQ.m4a
When download fails (e.g., member-only or age-restricted content), the script automatically:
Supported browsers:
| Browser | Parameter | Chrome Profile Support |
|---|---|---|
| Chrome | chrome | Yes (auto-detect all profiles) |
| Firefox | firefox | Default profile only |
| Safari | safari | Default profile only |
| Edge | edge | Default profile only |
| Brave | brave | Default profile only |
cached: true)--force flag to re-download even if cached file existsAfter downloading the audio, invoke /mk-youtube-audio-transcribe with the file_path from the output:
/mk-youtube-audio-transcribe <file_path> [model] [language]
Tip: If you know the video's language from /mk-youtube-get-info, pass it as the language parameter for better model auto-selection (e.g., zh → belle-zh, ja → kotoba-ja).