x-post
Post to X (Twitter) from the command line. Text, images, and video.
How do I install this agent skill?
npx skills add https://github.com/rameerez/claude-code-startup-skills --skill x-postIs this agent skill safe to install?
- Gen Agent Trust Hubwarn
This skill allows posting to X (Twitter) but depends on a non-standard Python package ('xdk') whose provenance is unclear. While the skill includes user-confirmation safety rules, the use of an unverifiable library for handling API credentials warrants caution.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2/2 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/rameerez/claude-code-startup-skills/x-post">View x-post on skillZs</a>