# Ra Video Download

Download source video or audio from Douyin, YouTube, Bilibili, Twitter/X, Xiaohongshu...

- Repository: https://github.com/Pluviobyte/rnskill (1706 stars)
- Category: Media
- License: see repository
- Last updated: 2026-09-21
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add Pluviobyte/rnskill --skill ra-video-download -g -a claude-code -y`
Codex: `npx skills add Pluviobyte/rnskill --skill ra-video-download -g -a codex -y`
Cursor: `npx skills add Pluviobyte/rnskill --skill ra-video-download -g -a cursor -y`
Gemini CLI: `npx skills add Pluviobyte/rnskill --skill ra-video-download -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add Pluviobyte/rnskill`

## Description

Download source video or audio from Douyin, YouTube, Bilibili, Twitter/X, Xiaohongshu, and other yt-dlp-supported URLs into the content-creation workspace. Use when the user says 下载视频, 下载音频, 保存这个链接, 把源视频拉下来, or when another video workflow needs a local source file before transcription, frame analysis, editing, reference replication, or archiving.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 视频下载

Download source media only. Do not transcribe, rewrite, edit, or publish it.

## Storage rules

- Keep source URLs, source titles, source metadata, and downloaded reference media inside `01-内容生产/视频工作台/.internal/` by default.
- Use `01-内容生产/视频工作台/制作中/<日期-主题>/原始素材/` only when the caller explicitly names a production project and the media is an approved production input.
- Never place source information in a handoff, finished script, final archive, or public document.
- Never overwrite an existing file. Let the downloader add a stable suffix or stop.

## Workflow

1. Confirm that the URL is source media and that downloading it is within the user's request.
2. Run the bundled downloader. It uses this order:
   - Douyin: TikHub media URL, then `yt-dlp` with browser cookies, then plain `yt-dlp`.
   - Other supported sites: plain `yt-dlp`, optionally with browser cookies when required.
3. Inspect the returned local path and media probe. A successful HTTP response alone is not delivery.
4. Require a playable audio or video stream and a non-zero duration. Report the local path, duration, dimensions, and selected download method.
5. If every route fails, preserve the concise failure log and state the missing prerequisite. Do not claim that the video was downloaded.

## Command

Use the Python interpreter that can import `tikhub` for the best Douyin path. In this workspace, prefer `/opt/homebrew/bin/python3` when available.

```bash
/opt/homebrew/bin/python3 scripts/download_media.py '<url>'
```

Useful options:

```bash
# Explicit production input directory
/opt/homebrew/bin/python3 scripts/download_media.py '<url>' --output-dir '01-内容生产/视频工作台/制作中/<日期-主题>/原始素材/<项目>'

# Extract audio only
/opt/homebrew/bin/python3 scripts/download_media.py '<url>' --audio-only

# Use an authenticated browser profile for a protected public page
/opt/homebrew/bin/python3 scripts/download_media.py '<url>' --cookies-from-browser chrome
```

The rest: https://github.com/Pluviobyte/rnskill/blob/HEAD/skills/ra-video-download/SKILL.md
