Post to X (Twitter) - tweets, media, threads with history tracking. Use when the user wants to post, tweet, or share something on X/Twitter.
Post content to X (formerly Twitter) including text tweets, media posts, and threads.
If credentials are not configured, guide the user:
cd ~/.claude/skills/x-post && cp .env.example .env
# User must edit .env with their X API credentials
cd ~/.claude/skills/x-post && npm install
All commands run from the skill directory.
cd ~/.claude/skills/x-post && node x-post.js tweet "Your tweet text here"
cd ~/.claude/skills/x-post && node x-post.js media /absolute/path/to/image.jpg "Your tweet text"
Create a temp JSON file with array of tweets, then:
cd ~/.claude/skills/x-post && node x-post.js thread /path/to/thread.json --name "thread-name"
Thread JSON format: ["First tweet", "Second tweet", "Third tweet"]
cd ~/.claude/skills/x-post && node x-post.js reply <tweet_id> "Your reply"
cd ~/.claude/skills/x-post && node x-post.js reply-media <tweet_id> /path/to/image.jpg "Your reply"
cd ~/.claude/skills/x-post && node x-post.js continue "thread-name" "Next tweet"
cd ~/.claude/skills/x-post && node x-post.js continue-media "thread-name" /path/to/image.jpg "Next tweet"
cd ~/.claude/skills/x-post && node x-post.js snap "Your caption"
User will be prompted to click the window to capture.
cd ~/.claude/skills/x-post && node x-post.js history
cd ~/.claude/skills/x-post && node x-post.js threads
--name "name" to track threads for later continuationhttps://x.com/user/status/1234567890 the ID is 1234567890--name to track it