x-post
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Post to X (Twitter) from the command line. Text, images, and video.
3installs
Added on
NPX Install
npx skill4agent add rameerez/claude-code-startup-skills x-postTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Post to X using the CLI tool at .
~/.claude/skills/x-post/x-post.pySetup
Requires Python packages:
pip install xdk requests_oauthlibCredentials file at (JSON):
~/.claude/skills/x-post/x.keyjson
{
"api_key": "...",
"api_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}Commands
Post text:
bash
python ~/.claude/skills/x-post/x-post.py post "Your tweet text"Post with image:
bash
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/image.jpgPost with video:
bash
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/video.mp4Check profile:
bash
python ~/.claude/skills/x-post/x-post.py meRules
- Always show the user the exact tweet text before posting and get confirmation
- Never post without explicit user approval
- Video uploads use chunked upload (INIT/APPEND/FINALIZE) and may take a minute for processing
- The script auto-detects media type from file extension