Universal Video Downloader: Using yt-dlp to let the Agent handle the downloads

Preface

When handling videos within an Agent, common practices include temporarily looking up yt-dlp parameters, manually writing cookie paths, or repeatedly trying format IDs in the conversation. When links come from YouTube, Bilibili, Douyin, or Xiaohongshu, platform rules vary; share short links require prior resolution, and failures are difficult to troubleshoot by consulting documentation.

The following introduces the “Universal Video Downloader” on SkillHub: it consolidates yt-dlp downloading, batch processing, login state management, and troubleshooting into a standardized Agent workflow. Its documentation emphasizes the isolation of cookies and managed accounts to reduce the risk of account bans caused by the misuse of login states.

What is this

“Universal Video Downloader” is a Skill designed for Coding Agents, published under the identifier @user_60decab1/claw-video-downloader and categorized under design-media on SkillHub. It solves a core problem: when a user provides a single video URL or a batch of URLs from various platforms, the Agent follows a unified process to parse, select quality, download, and merge audio/video, rather than assembling command lines from scratch every time.

Official Entry: https://api.skillhub.cn/user_60decab1/claw-video-downloader
ClawHub Skill Page (Same Name): https://clawhub.ai/user_60decab1/skills/claw-video-downloader

Verification during writing: The SkillHub frontend path skillhub.cn/skills/user_60decab1/claw-video-downloader previously returned “Skill does not exist or has been taken offline”; if the web page and CLI search results are inconsistent, prioritize the installation results in your current environment.

Core Features

Based on the public Skill description, verified capabilities include:

  1. Multi-platform Coverage: Built on yt-dlp, supporting common sites such as YouTube, Bilibili, Douyin, Xiaohongshu, Twitter/X, and Kuaishou (specific support depends on the current yt-dlp list).
  2. Single and Batch Processing: Can handle individual share links or download sequentially based on a list or batch of URLs.
  3. Quality and Merging: Designed for watermark-free, original quality scenarios; automatically merges separated audio and video streams into a complete file via the workflow.
  4. Links and Login States: Covers share link resolution; platforms requiring login are handled via cookies, with the Skill including relevant operational guides and troubleshooting.
  5. Trigger Conditions: Activated when a user provides a video URL from any platform, or when phrases like “download video”, “video download”, or specific platform download requests (YouTube, Bilibili, Douyin, Xiaohongshu, Twitter, etc.) appear.
  6. Cookie Isolation Iron Rule: Cookies used for downloading must come from the login state exported by an independent browser account; strictly forbidden to reuse cookies from MCP or daily interaction managed accounts to avoid triggering platform bans on AI-managed behavior.

Community Data (SkillHub clues): Rating 99167, approximately 694 cumulative downloads.

Installation and Activation

The Skill follows the standard SKILL.md package structure. Before installation, ensure that yt-dlp and ffmpeg are available on your local machine (the description requires yt-dlp for download and merging; specific versions depend on the instructions within the Skill).

1. Install SkillHub CLI (if not already installed)

Check the CLI via SkillHub installation documentation; if not installed, execute the full installation script:

command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Documentation URL: https://skillhub.cn/install/skillhub.md

2. Install to the current Agent’s skills directory

SkillHub requires --dir to point to the skills directory actually read by the current Agent; otherwise, it defaults to ./skills/ and will not be recognized. Common paths are as follows (excerpt from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Command line installation example (namespace and skill name consistent with the publication identifier):

skillhub install claw-video-downloader --namespace user_60decab1 --dir ~/.cursor/skills

Alternatively, you can provide the prompt below to the Agent and let it pull the package according to SkillHub installation instructions (consistent with the recommended approach for other Skills in the same community):

Please install `@user_60decab1/claw-video-downloader` according to https://skillhub.cn/install/skillhub.md.

If using the OpenClaw ecosystem, the skill with the same identifier on ClawHub usually corresponds to:

openclaw skills install @user_60decab1/claw-video-downloader

Restart or refresh the Agent after installation to include the new Skill in the skill list.

Typical Usage

The Skill is designed as “User provides link + Natural Language Intent, Agent follows built-in process,” rather than asking you to memorize the full yt-dlp parameter table. Below are conversation forms that can be directly reproduced (process details depend on the installed SKILL.md).

Single Download

  1. Send the video page or share short link, and specify requirements (e.g., original quality, save directory).
  2. Agent identifies the platform, resolves the short link if necessary, then calls yt-dlp to download; merges if audio/video are separated.
  3. Returns the local file path or handles the file according to your specified delivery method.

Example phrasing:

Please use the Universal Video Downloader to download this link to ~/Downloads, prioritizing original quality:
https://www.bilibili.com/video/BVxxxxxxxx

Platforms Requiring Login State

  1. Log in to the target site in an independent browser account used only for downloading, and export the cookies file according to the Skill’s instructions.
  2. Tell the Agent the path to these cookies, explicitly stating not to use cookies from MCP/interaction accounts.
  3. Initiate the download; if encountering 403 or unavailable formats, handle via the troubleshooting steps within the Skill (e.g., retry, list formats and reselect).

Batch Download

  1. Paste multiple URLs at once, or provide a list file path.
  2. Specify whether to unify quality, output directory, and whether to skip and continue on failure.
  3. Agent executes sequentially according to the batch process and summarizes successful and failed entries.

Applicable Scenarios and Notes

Who is it for

  • Developers or operators who frequently save tutorials, interviews, or short video materials in Agent sessions.
  • Those who want to hand over “share link parsing + cookies + yt-dlp troubleshooting” to a Skill rather than consulting documentation every time.
  • If the same publisher has a “Video to Notes” type Skill, you can download first and then proceed with the transcription pipeline (e.g., @user_60decab1/claw-video-notes, subject to SkillHub search results).

Limitations and Pitfalls

  • Platform risk control and yt-dlp compatibility vary; occasionally, yt-dlp updates or cookie adjustments may be needed; refer to the troubleshooting section within the Skill.
  • Copyright infringement or batch scraping violating platform terms is outside the scope of fair use; only download content you have the right to save.
  • Cookie Isolation is a strict rule: downloading cookies must be separated from MCP/managed interaction accounts; otherwise, there is a risk of account ban.
  • If the SkillHub page shows offline or skillhub install reports “not found”, first verify via the official API address or ClawHub page whether it has been re-listed, then retry installation.

Conclusion

“Universal Video Downloader” transforms multi-site video URLs into an executable yt-dlp workflow, highlighting share link parsing, batch downloading, login state management, and troubleshooting. It also constrains the risk of managed account misuse through Cookie isolation. For installation or updates, refer to the official address: https://api.skillhub.cn/user_60decab1/claw-video-downloader

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye