download-x-video

Download videos from X/Twitter posts using yt-dlp with HLS support.

154|9|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/swyxio/skills --skill download-x-video
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: download-x-video
Source: https://github.com/swyxio/skills/tree/main/download-x-video
Command: npx skills add https://github.com/swyxio/skills --skill download-x-video

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yt-dlp, and includes scripts (resource) components.

What problem does it solve?

Users often cannot download videos from X/Twitter posts using standard tools, as many X videos use HLS streaming formats that require specialized handling, leading to failed downloads or inability to locate the saved file.

Core Features & Use Cases

  • HLS Stream Support: Correctly processes X/Twitter's fragmented HLS video format that standard downloaders cannot handle.
  • Automatic Path Detection: Uses yt-dlp's after_move:filepath flag and a fallback search to reliably return the exact path of the downloaded video file.
  • Use Case: If you come across a helpful tutorial or memorable clip on X that you want to access offline, this skill saves the video directly to your specified folder without manual file hunting.

Quick Start

Use the download-x-video skill to save the video from the X post link https://x.com/user/status/123/video/1 to your Downloads folder.

Frequently Asked Questions about download-x-video

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download HLS streaming videos from X or Twitter?▼

To download HLS streaming videos from X, you need a tool that handles fragmented formats like yt-dlp. This skill processes HLS streams that standard downloaders fail to capture and saves the video directly to your device.

Why does my standard video downloader fail on X/Twitter posts?▼

Standard video downloaders fail on X posts because Twitter frequently uses HLS streaming formats requiring specialized handling. This skill resolves the issue by utilizing yt-dlp to correctly process and download the fragmented HLS video content.

Can I download offline videos from private X accounts?▼

Yes, you can download offline videos from private or authenticated X accounts by providing browser cookies to yt-dlp. This allows the skill to access and extract video files from protected posts that require login.

How do I locate the saved file after downloading a Twitter video?▼

To locate the saved file after downloading a Twitter video, this skill uses yt-dlp's after_move:filepath flag for accurate final path detection. It also runs a fallback file search routine to reliably return the exact path if the initial output fails.

What is the best way to archive social media videos from X?▼

The best way to archive social media videos from X is using a specialized downloader like yt-dlp. This skill automates the extraction of X video files, ensuring reliable archival of public or authenticated content for offline access.

Does yt-dlp work with HLS video formats on Twitter?▼

Yes, yt-dlp works effectively with HLS video formats on Twitter. It correctly processes X/Twitter's fragmented HLS streams that standard tools cannot handle, enabling reliable video downloads directly to your specified folder.