X post
Post to X (Twitter) from the command line. Text, images, and video.From its SKILL.md
npx -y skills add rameerez/claude-code-startup-skills --skill x-postAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- reads credentialsReads from 1 credential source: `~/.claude/skills/x-post/x.key`.
- runs commandsInstructs the agent to run 5 commands, including `pip install xdk requests_oauthlib` and 4 more.
SKILL.md
1.2 KB, 281 tokens by cl100k_base, as published. Nobody here has run it
Post to X using the CLI tool at ~/.claude/skills/x-post/x-post.py.
Setup
Requires Python packages: pip install xdk requests_oauthlib
Credentials file at ~/.claude/skills/x-post/x.key (JSON):
{
"api_key": "...",
"api_secret": "...",
"access_token": "...",
"access_token_secret": "..."
}
Commands
Post text:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text"
Post with image:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/image.jpg
Post with video:
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/video.mp4
Check profile:
python ~/.claude/skills/x-post/x-post.py me
Rules
- 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
What ships with it: 1 file
7.7 KB alongside SKILL.md, 1 of them executable
- x-post.pyruns7.7 KB