Agent skill

Download X Video

by swyxio in swyxio/skills

Download video from X/Twitter posts using yt-dlp. An agent skill from swyxio/skills.

MITAuto-check passedWriting & Content

Install Download X Video

skills CLI
$ npx skills add swyxio/skills --skill download-x-video -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install swyxio/skills download-x-video --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/swyxio/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/download-x-video .claude/skills/download-x-video && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
download-x-video
GitHub stars
176
Token cost
~256 tokens
SKILL.md length
61 words
Files
2 (incl. scripts)
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

Download video from X/Twitter posts using yt-dlp. An agent skill from swyxio/skills.

  • The user wants to download this X video
  • SKILL.md covers Prerequisites, Usage, How It Works and Troubleshooting
  • Runs Python scripts from its folder; calls python3, yt-dlp and brew; reaches x.com
  • Save this tweet video

What it does

Download X Video is an agent skill from swyxio/skills. Download video from X/Twitter posts using yt-dlp. Use when the user wants to "download this X video", "save this tweet video", "grab video from Twitter", or provides an x.com/twitter.com status URL with a video. Handles HLS streams and uses --print aftermove:filepath for reliable path detection.

Its SKILL.md is about 260 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/download_x_video.py`).

It sits in Writing & Content, covering Social media posts and Video production. It works with X (Twitter). The repository describes itself as: Agent skills for Claude Code and other AI agents. The licence is MIT.

When your agent uses it

  • The user wants to download this X video
  • Save this tweet video
  • Grab video from Twitter
  • Provides an x.com/twitter.com status URL with a video

Example prompts

  • “download this X video”
  • “save this tweet video”
  • “grab video from Twitter”
  • “/download-x-video”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 038ef34. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • yt-dlp
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Download X Video loads about 256 tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 61 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~256

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from swyxio/skills at commit 038ef34, republished under its MIT licence (© swyxio). 61 words, ~256 tokens.

Download SKILL.mdSave it as .claude/skills/download-x-video/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
download-x-video
description
Download video from X/Twitter posts using yt-dlp. Use when the user wants to "download this X video", "save this tweet video", "grab video from Twitter", or provides an x.com/twitter.com status URL with a video. Handles HLS streams and uses --print after_move:filepath for reliable path detection.

Download X/Twitter Video

Download video from X/Twitter posts via yt-dlp.

Prerequisites

  • yt-dlp: brew install yt-dlp

Usage

bash
python3 scripts/download_x_video.py "https://x.com/user/status/123/video/1" [/output/dir]

Prints the downloaded file path to stdout.

How It Works

  • Uses yt-dlp with --print after_move:filepath for reliable path detection
  • Handles Twitter's HLS streaming format (fragmented MP4)
  • Output template: x_video_<tweet_id>.<ext> in the specified directory

Troubleshooting

yt-dlp auth errors

If Twitter requires login, yt-dlp may need cookies:

bash
yt-dlp --cookies-from-browser chrome "https://x.com/..."

© swyxio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in download-x-video of swyxio/skills.

  • SKILL.md
  • scripts/download_x_video.py

Open the folder on GitHubat commit 038ef34

Compare with similar skills

Download X Video next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Download X Video compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Download X Video this skillswyxio/skills176—~256Automated safety check: PassMIT
Podcast Pipelineericosiu/ai-marketing-skills3.6k1 repos~2.6kAutomated safety check: PassMIT
Eva Feature Screenshotvvedantb/eva101—~3.2kAutomated safety check: NotesMIT
Hook Writer Smsblacktwist/social-media-skills560—~3.7kAutomated safety check: PassMIT
AI Social Media ContentNeverSight/learn-skills.dev2171 repos~1.8kAutomated safety check: PassNone
Wjs Tweeting From Articlesjianshuo/claude-skills131—~1.3kAutomated safety check: PassMIT

Similar skills

  • Podcast Pipeline

    ericosiu/ai-marketing-skills

    Podcast-to-Everything content pipeline. An agent skill from ericosiu/ai-marketing-skills.

    3.6k GitHub starsUsed in 1 repo~2.6k tokens
    Writing & ContentAuto-check passed
  • Grab a single clean HD screenshot of a new eva feature from the real running app (Playwright at deviceScaleFactor 2, 1280 layout captured crisp at 2560×1440, dev overlays hidden) and write a tweet…

    101 GitHub stars~3.2k tokensUpdated today
    Media & CreativeAuto-check: notes
  • Hook Writer Sms

    blacktwist/social-media-skills

    When the user wants help writing opening lines, hooks, first sentences, video hooks, thumbnails titles, or pin titles that grab attention.

    560 GitHub stars~3.7k tokensUpdated 5 mo ago
    Writing & ContentAuto-check passed
  • AI Social Media Content

    NeverSight/learn-skills.dev

    Create AI-powered social media content for TikTok, Instagram, YouTube, Twitter/X.

    217 GitHub starsUsed in 1 repo~1.8k tokens
    Writing & ContentAuto-check passed
  • Wjs Tweeting From Articles

    jianshuo/claude-skills

    A skill your agent uses when the user wants to post a daily X/Twitter tweet inspired by one of their recently-published 微信公众号 articles.

    131 GitHub stars~1.3k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Wjs X Improving Content

    jianshuo/claude-skills

    A skill your agent uses when 王建硕 wants to systematically improve his X (Twitter) content by iterating on the content-generation prompt (prompts/x/prompt.md, used by the every-6h tweet Action) and…

    131 GitHub stars~1.1k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed

More from swyxio/skills

All 89 skills in this repo
  • Programmatic Agents

    swyxio/skills

    Run a selected coding-agent CLI programmatically, with latency, error, usage, cost, and trace logging.

    176 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Design, implement, audit, or refresh protected username and handle namespaces for public products.

    176 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • New Mac Setup

    swyxio/skills

    Fully automated new Mac setup for fullstack web developers and AI engineers.

    176 GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • Youtube API

    swyxio/skills

    Manage YouTube videos programmatically via the YouTube Data API v3 — upload video files, upload custom thumbnails, update video metadata (titles, descriptions, tags), and query video/channel info…

    176 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Batch YouTube Studio upload workflow for videos sourced from Airtable, Google Drive, Loom, YouTube, or local files.

    176 GitHub stars~1.5k tokensUpdated today
    Auto-check: warnings
  • Reconstruct and visually analyze paired agent, game, or policy trajectories to determine whether changed actions produced their intended effects.

    176 GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Works with

Questions about Download X Video

What does Download X Video do?

Download video from X/Twitter posts using yt-dlp. An agent skill from swyxio/skills. Download X Video is an agent skill from swyxio/skills. Download video from X/Twitter posts using yt-dlp.

When should I use Download X Video?

Download X Video fits situations like: the user wants to download this X video; save this tweet video; grab video from Twitter; provides an x.com/twitter.com status URL with a video.

How do I install Download X Video in Claude Code?

Run `npx skills add swyxio/skills --skill download-x-video -a claude-code`. Or copy the skill folder (download-x-video in swyxio/skills) into .claude/skills/download-x-video in your project. Claude Code loads it when a task matches its description.

How do I install Download X Video in Codex?

Run `npx skills add swyxio/skills --skill download-x-video -a codex`. Or copy the skill folder (download-x-video in swyxio/skills) into .agents/skills/download-x-video in your project. Codex loads it when a task matches its description.

Can I use Download X Video in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add swyxio/skills --skill download-x-video -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/download-x-video, .gemini/skills/download-x-video, .github/skills/download-x-video and .opencode/skills/download-x-video in your project.

What does Download X Video need to run?

Going by SKILL.md and its folder, Download X Video needs Python for the scripts in its folder and the command-line tools its instructions call (python3, yt-dlp and brew). Our summary lists: Python 3.

Does Download X Video access the network?

SKILL.md names 1 domain. In commands or code: x.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Download X Video safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Download X Video use?

Download X Video is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Download X Video use?

About 256 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Download X Video?

Skills that share tags, products or a category with Download X Video: Podcast Pipeline (ericosiu/ai-marketing-skills, 3.6k stars), Eva Feature Screenshot (vvedantb/eva, 101 stars), Hook Writer Sms (blacktwist/social-media-skills, 560 stars) and AI Social Media Content (NeverSight/learn-skills.dev, 217 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Download X Video?

swyxio (a GitHub user) maintains it in swyxio/skills, which has 176 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 5, 2026.

Source: swyxio/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.