x-post · rameerez — Claude Code skill: what it does, how to install
Publishes tweets with text, pictures, and video to X directly from your terminal. Handy for shipping release announcements without opening a browser.
npx skills add rameerez/claude-code-startup-skills --skill x-post -a claude-codeWhat x-post does
The skill triggers a local Python script at ~/.claude/skills/x-post/x-post.py to interact with the X API. It requires Python packages xdk and requests_oauthlib, alongside a credentials file located at ~/.claude/skills/x-post/x.key. Without valid API tokens stored in that JSON file, every request will fail immediately.
The script handles plain text updates, image attachments, and video uploads, detecting file types from extensions automatically. Video files rely on chunked upload steps, meaning larger video posts may take up to a minute to process. It also includes a me subcommand to inspect the authorized profile.
Safety instructions prevent unapproved posts: the agent must display the exact text draft and obtain explicit user consent before calling the publish command.
What it helps with
- publish release notes to X directly from your coding session
- attach screenshots or demo videos to tweets from the command line
- verify the active X account credentials via the CLI profile check
- preview and confirm draft tweet copy before sending it live
Example prompts for the agent
- Post a tweet saying 'Shipped version 2.0' with
./preview.pngattached - Publish this update to X with video
./demo.mp4 - Check my current X profile info using x-post
How to install x-post
1Skills CLI (Vercel)
npx skills add rameerez/claude-code-startup-skills --skill x-post -a claude-code2Manually: put the files in place
~/.claude/skills/x-post/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/x-post/
1Skills CLI (Vercel)
npx skills add rameerez/claude-code-startup-skills --skill x-post -a codex2Manually: put the files in place
.agents/skills/x-post/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add rameerez/claude-code-startup-skills --skill x-post -a cursor2Manually: put the files in place
.cursor/skills/x-post/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install rameerez/claude-code-startup-skills x-post2Manually: put the files in place
.github/skills/x-post/SKILL.md1Skills CLI (Vercel)
npx skills add rameerez/claude-code-startup-skills --skill x-post -a gemini-cli2Platform CLI
gemini skills install https://github.com/rameerez/claude-code-startup-skills --path skills/x-postManually: put the files in place
.devin/skills/x-post/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add rameerez/claude-code-startup-skills --skill x-post -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about x-post
How to install x-post in Claude Code?
Run npx skills add rameerez/claude-code-startup-skills --skill x-post -a claude-code in your terminal.
What does x-post do?
It lets an agent post text, images, and videos to X (Twitter) and view profile details through a command-line script.
What prerequisites does x-post require?
You need pip install xdk requests_oauthlib and a JSON file at ~/.claude/skills/x-post/x.key containing your API keys and tokens.
Source text
SKILL.md · MIT
---
name: x-post
description: Post to X (Twitter) from the command line. Text, images, and video.
argument-hint: "post \"Your tweet text\" [--media /path/to/file]"
allowed-tools: Bash, Read
model: claude-haiku-4-5-20251001
---
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):
```json
{
"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.jpg
```
**Post with video:**
```bash
python ~/.claude/skills/x-post/x-post.py post "Your tweet text" --media /path/to/video.mp4
```
**Check profile:**
```bash
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
© rameerez · MIT · rameerez/claude-code-startup-skills
Similar skills
All skills for Marketing and content →x-post by other authors comes first.