/twitter-tools:twitter-to-reelfrom Twitter Tools
Convert Twitter/X posts into Instagram Reels format. Screenshots tweets, crops to show username/caption/media, creates a 9:16 vertical canvas with matching background color, and overlays downloaded video content. Works alongside twitter-media-downloader skill. Use when user wants to repurpose Twitter content for Instagram, TikTok, or other vertical video platforms.
Ships in Twitter Tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Convert Twitter/X posts into Instagram Reels format (9:16 vertical video).
Python dependencies are installed automatically via PEP 723 inline metadata when using uv run.
Playwright and FFmpeg must be installed separately:
# Install Playwright globally via uv tool
uv tool install playwright
# Install Chromium browser for Playwright
playwright install chromium
# FFmpeg - Ubuntu/Debian
apt-get install ffmpeg
# FFmpeg - macOS
brew install ffmpeg
Note: Using
uv tool install playwrightmakes theplaywrightCLI available globally, which is required for installing browser binaries.
Create a reel from a tweet URL (video auto-downloaded):
uv run scripts/create_reel.py "https://x.com/user/status/123" -o output.mp4
Or provide a video file explicitly:
uv run scripts/create_reel.py "https://x.com/user/status/123" video.mp4 -o output.mp4
Full pipeline from tweet URL to finished reel:
uv run scripts/create_reel.py "TWEET_URL" [VIDEO_FILE] [options]
Options:
| Option | Description |
|---|---|
-o, --output | Output file path (default: reel_output.mp4) |
--theme | Force theme: light, dark, or auto (default: auto) |
--position | Tweet position: top, center, bottom (default: top) |
--padding | Padding around tweet in pixels (default: 40) |
--no-cleanup | Keep intermediate files |
--cookies | Path to cookies.txt for auth |
--browser | Browser to extract cookies from (recommended: firefox) |
--no-auto-download | Disable automatic video download (require explicit video path) |
--debug | Enable verbose debug output for troubleshooting |
Note: Using
--browser firefoxis recommended as it automatically extracts cookies from your browser session. This applies to both tweet screenshots and video downloads.
Screenshot a tweet without video overlay:
uv run scripts/screenshot_tweet.py "TWEET_URL" -o screenshot.png
Options:
| Option | Description |
|---|---|
-o, --output | Output file path |
--theme | Force light or dark theme |
--width | Browser viewport width (default: 550) |
--full | Capture full tweet thread |
--cookies | Cookies file for protected tweets |
Compose video onto an existing screenshot:
uv run scripts/compose_video.py screenshot.png video.mp4 -o reel.mp4
Simply provide the tweet URL - video is downloaded automatically:
uv run scripts/create_reel.py "https://x.com/NASA/status/123456" -o nasa_reel.mp4
With authentication for protected tweets:
uv run scripts/create_reel.py "https://x.com/user/status/123" --browser firefox -o reel.mp4
If you want more control, download separately first:
# First download the video
uv run python ../twitter-media-downloader/scripts/download.py "https://x.com/user/status/123" -o ./downloads
# Then create the reel
uv run scripts/create_reel.py "https://x.com/user/status/123" ./downloads/*.mp4 -o reel.mp4
Or provide a video file directly:
uv run scripts/create_reel.py "https://x.com/NASA/status/123456" my_video.mp4 -o reel.mp4
Dark theme with bottom positioning:
uv run scripts/create_reel.py "https://x.com/user/status/123" \
--theme dark --position bottom -o my_reel.mp4
uv run scripts/screenshot_tweet.py "https://x.com/user/status/123" -o tweet.png
--browser firefox (recommended) or --cookies for protected accounts--theme light or --theme dark--durationuv tool install playwright && playwright install chromium--debug flag for verbose output to diagnose issuesLICENSE.txt (opens in a new tab)scripts/compose_video.py (opens in a new tab)scripts/create_reel.py (opens in a new tab)scripts/screenshot_tweet.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_compose_video.py (opens in a new tab)scripts/tests/test_create_reel.py (opens in a new tab)scripts/tests/test_screenshot_tweet.py (opens in a new tab)scripts/tests/test_utils.py (opens in a new tab)scripts/utils.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub bossjones/boss-skills --plugin twitter-tools