Skip to content
Back to skills

X Post

ASecurity

Post to X (Twitter) from the command line. Text, images, and video.

  • 28 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 28, 2026
ai-agentspythonbashapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add rameerez/claude-code-startup-skills --skill x-post --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X Post?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X Post
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rameerez-x-post/badge)](https://www.skillsdirectory.com/skills/rameerez-x-post)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Files in this skill

  • SKILL.md1.2 KB
  • x-post.py7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.