Yt Dlp Cliのロゴ

Yt Dlp Cli

コミュニティ
tmchow
yt-dlp-cli

yt-dlp。YouTubeやその他のストリーミングサイトのURLから動画をダウンロード、音声を抽出、字幕を取得、クリップを作成、またはアーカイブしたい場合や、yt-dlpで403、ボットチェック、360pのみの問題が発生した場合に使用してください。ローカルファイルの編集・変換、保存せずに視聴・要約すること、検索、一般的なダウンロードには使用しないでください。

Add to TypingMind

概要

公開者tmchow
リポジトリagent-skills
スキル名yt-dlp-cli
スター
67
フォーク
4
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

yt-dlp-cli - agent workflow

Result: After a user asks to download, extract, clip, subtitle, or archive media from a yt-dlp-supported URL, the agent has either produced the correct file(s) on disk and reported path/size/identity, or stopped on an explicit blocker (missing binary, auth required, rights unclear, playlist too large, YouTube bot wall).

Next consumer: The user (file on disk) and any later skill that transcribes/edits that file.

Done: File exists at the stated path, matches the requested job (video vs audio vs clip vs playlist range), and the agent reported what it did and how it verified. Or a named blocker with the next safe action.

Intent (changes the approach): Agents can already invoke yt-dlp <url> and they do it badly. This skill exists to close those failure modes, not to teach the CLI. Do not write a flag encyclopedia. Do not hide yt-dlp behind a Python wrapper.

Autonomy envelope

Invoking this skill authorizes local inspection, downloading the requested streaming-site URL, writing the resulting file(s) under the chosen destination, and running required local ffmpeg postprocessing for the requested media shape. It does not authorize downloading an unbounded playlist/channel, reading browser cookies or auth files, bypassing unclear rights, or supplying user-only inputs. Stop for confirmation only when rights are unclear, scope expands to a full playlist/channel without an agreed range/archive, cookies/auth are needed, or the next input can only come from the user.

Quote every URL in shell commands. Treat a watch URL as one video unless the user explicitly asked for the playlist; keep --no-playlist on single-video jobs. Check ffmpeg -version before merged video/audio, audio extraction or conversion, subtitle embedding, clips, or SponsorBlock postprocessing; missing ffmpeg is a blocker for those shapes.

Default download

For a single requested video, run this command first:

bash
yt-dlp --no-playlist -P "<dir>" -o "%(title).200B [%(id)s].%(ext)s" --merge-output-format mp4 --print after_move:filepath "<url>"

Use the path printed by --print after_move:filepath as the authoritative handoff path. Verify that file exists and is non-empty; for video, verify duration and resolution with ffprobe or equivalent.

Deltas from the default

  • Height cap: add -f "bv*[height<=1080]+ba/b[height<=1080]" and change only the numeric cap. Use yt-dlp --no-playlist -F "<url>" first only when the user requested a specific format ID or the first run returns the wrong shape; never invent format IDs.
  • Audio-only: replace --merge-output-format mp4 with -x; add --audio-format <format> only when the user requested a container/codec such as mp3 or m4a.
  • Subtitles: for subtitle-only jobs, replace media download/postprocessing with --skip-download --write-subs --sub-langs "<langs>". For video plus subtitles, keep the default download and add --write-subs --sub-langs "<langs>". Add --write-auto-subs only when generated captions are acceptable, and --embed-subs only when embedded subtitles are requested.
  • Output layout: change only -P "<dir>" and -o "<template>". Keep %(id)s in the template unless the user requested a different stable naming scheme.
  • SponsorBlock: add --sponsorblock-remove <categories> only for categories the user requested or approved.

Pinned fragile routes

For playlist or channel archive work, first confirm the range or archive scope. Then use an archive file so reruns skip completed entries:

bash
yt-dlp -I "1-10" --download-archive "<dir>/download-archive.txt" -P "<dir>" -o "%(playlist_title).120B/%(playlist_index)s - %(title).200B [%(id)s].%(ext)s" --print after_move:filepath "<playlist-or-channel-url>"

Keep -I for item ranges; remove it only after the user confirmed a full archive. The archive file is part of the handoff because it prevents duplicate downloads on rerun.

For clips or time sections, use --download-sections and verify the resulting duration against the requested span:

bash
yt-dlp --no-playlist --download-sections "*00:01:30-00:02:10" -P "<dir>" -o "%(title).200B [%(id)s] clip.%(ext)s" --merge-output-format mp4 --print after_move:filepath "<url>"

Change only the timestamps unless the user requested a different section.

Ordered hatch

Run the pinned default or fragile route first. If it exits non-zero, returns the wrong media shape, reports a bot/auth/version mismatch, or shows only 360p where higher formats should exist, take this order:

  1. Preserve the command, exit status, and stderr.
  2. Update yt-dlp, verify yt-dlp --version, then retry a low-cost inspection with yt-dlp --no-playlist -F "<url>" or yt-dlp --no-playlist --print ... "<url>".
  3. For wrong shape or site-specific syntax drift, consult live yt-dlp --help / yt-dlp -h and adjust the smallest delta needed.
  4. For YouTube 403, "confirm you're not a bot", missing higher qualities, nsig errors, PO-token paths, or header-sensitive HLS failures, read references/youtube-auth.md in full before retrying.
  5. Stop with a blocker when rights, scope, auth, user-only input, or a missing binary prevents safe completion.

Report

The report may omit secondary detail, but it must preserve command, exit status, output path and size, media identity when available, verification performed, and stderr or blocker. For video include duration/resolution; for audio include audio-only confirmation; for playlists/channels include item count and archive-file path.

同梱ファイル

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

よくある質問

AIスキル「Yt Dlp Cli」では何ができますか?

yt-dlp。YouTubeやその他のストリーミングサイトのURLから動画をダウンロード、音声を抽出、字幕を取得、クリップを作成、またはアーカイブしたい場合や、yt-dlpで403、ボットチェック、360pのみの問題が発生した場合に使用してください。ローカルファイルの編集・変換、保存せずに視聴・要約すること、検索、一般的なダウンロードには使用しないでください。

TypingMindでYt Dlp Cliを使うメリットは何ですか?

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

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

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

Yt Dlp Cliを使えるAIモデルはどれですか?

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

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

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

AIスキル「Yt Dlp Cli」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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