Video Downloadのロゴ

Video Download

コミュニティ
maystudios
video-download

yt-dlpを使って、Instagram、YouTube、TikTok、Twitter/X、Facebookなど1,000以上のプラットフォームから動画をMP4ファイルとしてダウンロードします。ブラウザーのCookieやCookieファイルを自動で切り替えて、YouTubeのボット検出(「Sign in to confirm you're not a bot」、LOGIN_REQUIRED)から手動操作なしで復旧します。SNSや動画プラットフォームのURLから動画を1本以上ダウンロード、保存、取得したい場合に使用してください。単一動画とプレイリスト全体に対応し、解像度を設定して指定フォルダーに保存できます。

Add to TypingMind

概要

公開者maystudios
リポジトリclaude-skills
スキル名video-download
スター
30
フォーク
3
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    maystudiosがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Video Download」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/maystudios/claude-skills/tree/main/video-download
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/maystudios/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/video-download .claude/skills/video-download
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでVideo Downloadを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にVideo Downloadを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Video Downloadは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Video Download Skill

Wraps yt-dlp with automatic recovery for YouTube anti-bot challenges.

Tool

scripts/download.py — installs yt-dlp on first run, merges video+audio to MP4, auto-rotates strategies on bot detection, uses a download-archive for safe resume.

Workflow

  1. Collect all URLs from the user's request.
  2. Determine output directory (current working directory if unspecified).
  3. Decide single-video vs playlist mode:
    • User says "this video" / single URL → leave default (single-video).
    • User says "playlist" / "all videos" / passes a playlist?list= URL → add --playlist.
  4. Run the script. If YouTube bot detection hits, the script auto-rotates strategies.
  5. Report which files were saved and which strategy worked.

Usage

bash
# Single video, current directory
python scripts/download.py "https://www.youtube.com/watch?v=..."

# Multiple URLs to a folder
python scripts/download.py "URL1" "URL2" -o "/path/to/output"

# Full playlist as 720p MP4
python scripts/download.py "https://www.youtube.com/playlist?list=..." --playlist -o "./out"

# Force a specific browser for cookies (skips auto-rotation)
python scripts/download.py "URL" --cookies-from-browser chrome

# Force a manual cookies.txt file
python scripts/download.py "URL" --cookies "~/Downloads/www.youtube.com_cookies.txt"

# Higher quality
python scripts/download.py "URL" --max-height 1080

Flags

FlagDefaultNotes
-o, --outputcwdOutput directory
--max-height720Max video height (e.g. 1080, 480)
--playlistoffDownload full playlist; default is single-video
--cookies-from-browserautoForce one browser; skips auto-rotation
--cookiesautoForce one cookies.txt file; skips auto-rotation
--no-archiveoffDisable .download-archive.txt resume tracking

Auto-Recovery Strategy Chain

When a request fails with bot-detection markers (Sign in to confirm, LOGIN_REQUIRED), the script automatically advances through these strategies in order, stopping at the first one that succeeds:

  1. No auth + throttle — Default. Sleep intervals between requests.
  2. Player client rotation — default,tv,mweb,web_safari. Bypasses softer blocks.
  3. Browser cookies rotation — Tries chrome → edge → firefox → brave → vivaldi → opera, only browsers actually installed on the system.
  4. Cookies file discovery — Picks the newest valid cookies file from ~/Downloads/www.youtube.com_cookies.txt, youtube*cookies*.txt, cookies.txt (< 7 days old to be considered fresh).

If all 4 strategies fail, the script prints a context-aware recovery walkthrough (see "Recovery instructions for the user" below).

If the user explicitly passes --cookies-from-browser or --cookies, the chain is skipped and only that source is used (useful when the user already knows what works).

Recovery instructions for the user

When all strategies fail, the script auto-prints a step-by-step guide. Surface the most relevant subset to the user verbatim — it is concrete and actionable.

The guide branches based on what the script saw:

  • Cookies file found but rejected (file is stale): tell the user to re-export cookies right now, since YouTube invalidates cookies aggressively once a bot-block triggers.
  • No cookies file found: walk the user through the first-time export.
  • Otherwise: just list alternatives (close browser, change network, wait).

Cookie export walkthrough (the part the user will likely need)

  1. Install a cookie export browser extension:

  2. Open https://www.youtube.com in that browser, signed in to a Google account.

  3. Click the extension's toolbar icon:

    • "Get cookies.txt LOCALLY" → "Export As" → Netscape format → use the "Current Site" option so only youtube.com cookies are included.
    • Firefox "cookies.txt" → "Current Site" → Save.
  4. Save the file to the OS default Downloads folder. Any of these names work (auto-detected, newest wins):

    • www.youtube.com_cookies.txt (extension default — easiest)
    • youtube.com_cookies.txt
    • cookies.txt
  5. Re-run the same download command. Strategy 4 picks the file up automatically.

When to recommend each alternative

  • Close the browser (Chrome / Edge): fastest fix on Windows, where App-Bound Encryption locks the cookie database while the browser runs. Costs the user their open tabs unless "Continue where you left off" is enabled.
  • Different network (mobile hotspot, VPN): bypasses an IP-level block. Fastest if the user already has a VPN.
  • Wait it out: YouTube IP blocks lift on their own, usually within 24 h. Recommend only if no other option fits.

Resume / Re-Run Safety

--download-archive .download-archive.txt is enabled by default. Already-downloaded videos are skipped on re-runs, so it's safe to re-run after partial failure or when adding more URLs to the same folder. Pass --no-archive to disable.

Output Filename Pattern

  • Single video: {title} [{id}].mp4
  • Playlist: {NNN} - {title} [{id}].mp4 (zero-padded index keeps order in file managers)

--windows-filenames is always on, so files are safe across OSes.

Authentication Notes

  • Auto-rotation handles most cases without user input.
  • --cookies-from-browser chrome requires Chrome closed on Windows (App-Bound Encryption locks the cookie DB while Chrome is running).
  • If Chrome must stay open, recommend the user export cookies via the "Get cookies.txt LOCALLY" Chrome extension and drop the file in ~/Downloads/. The script picks it up automatically on next run.

Supported Platforms

YouTube (single + playlists), Instagram, TikTok, Twitter/X, Facebook, Vimeo, Reddit, and 1000+ more via yt-dlp.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Video Download」では何ができますか?

yt-dlpを使って、Instagram、YouTube、TikTok、Twitter/X、Facebookなど1,000以上のプラットフォームから動画をMP4ファイルとしてダウンロードします。ブラウザーのCookieやCookieファイルを自動で切り替えて、YouTubeのボット検出(「Sign in to confirm you're not a bot」、LOGIN_REQUIRED)から手動操作なしで復旧します。SNSや動画プラットフォームのURLから動画を1本以上ダウンロード、保存、取得したい場合に使用してください。単一動画とプレイリスト全体に対応し、解像度を設定して指定フォルダーに保存できます。

TypingMindでVideo Downloadを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Video Downloadはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにVideo Downloadをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/maystudios/claude-skills/tree/main/video-downloadを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Video Downloadを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Video Downloadで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもVideo Downloadを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Video Download」は無料ですか?

はい。maystudiosがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇