x-post
Post to X (Twitter) - tweets, media, threads with history tracking. Use when the user wants to post, tweet, or share something on X/Twitter.
Best use case
x-post is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Post to X (Twitter) - tweets, media, threads with history tracking. Use when the user wants to post, tweet, or share something on X/Twitter.
Teams using x-post should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/x-post/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How x-post Compares
| Feature / Agent | x-post | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Post to X (Twitter) - tweets, media, threads with history tracking. Use when the user wants to post, tweet, or share something on X/Twitter.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# X (Twitter) Posting Skill Post content to X (formerly Twitter) including text tweets, media posts, and threads. ## Setup Check If credentials are not configured, guide the user: ```bash 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 ``` ## Commands All commands run from the skill directory. ### Post a text tweet ```bash cd ~/.claude/skills/x-post && node x-post.js tweet "Your tweet text here" ``` ### Post with media (image/video) ```bash cd ~/.claude/skills/x-post && node x-post.js media /absolute/path/to/image.jpg "Your tweet text" ``` ### Post a thread (multiple tweets) Create a temp JSON file with array of tweets, then: ```bash 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"]` ### Reply to a tweet by ID ```bash 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" ``` ### Reply with screenshot 1. Capture: screencapture -w ~/.claude/skills/x-post/screenshots/temp.png 2. Reply: node x-post.js reply-media <tweet_id> <screenshot> "caption" ### Continue a named thread ```bash 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" ``` ### Screenshot terminal and tweet ```bash cd ~/.claude/skills/x-post && node x-post.js snap "Your caption" ``` User will be prompted to click the window to capture. ### View history ```bash cd ~/.claude/skills/x-post && node x-post.js history cd ~/.claude/skills/x-post && node x-post.js threads ``` ## Guidelines - **Character limit**: 280 chars (Premium users may have extended limits) - **Media**: JPG, PNG, GIF, MP4 supported - **Thread naming**: Use `--name "name"` to track threads for later continuation - **Tweet IDs**: From `https://x.com/user/status/1234567890` the ID is `1234567890` ## When User Asks to Post 1. Help craft content within character limits 2. Run the appropriate command from the skill directory 3. Share the resulting tweet URL with them 4. If starting a thread they may want to continue later, use `--name` to track it
Related Skills
agentpmt-tool-post-on-discord-channel-a58379
Use AgentPMT external API to run the Post On Discord Channel tool with wallet signatures, credits purchase, or credits earned from jobs.
medium-posts-creator
Transform arbitrary text into well-structured Medium article drafts following a four-part structure: three variations of article title, Benefits from solution, Problem description, and Solution itself. Use when user requests: creating a Medium article from text, writing a blog post about a topic, transforming content into a Medium draft, or any request to transform text into a publishable article format. Includes Medium formatting guidelines, optional writing style suggestions, and enhancement tips for SEO, CTAs, and engagement.
postmortem-writing
Write effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents, or improving incident response proce...
postmark-automation
Automate Postmark email delivery tasks via Rube MCP (Composio): send templated emails, manage templates, monitor delivery stats and bounces. Always search tools first for current schemas.
posthog-automation
Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations. Always search tools first for current schemas.
postgresql
Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features
PostgreSQL Performance Optimization
Production-grade PostgreSQL query optimization, indexing strategies, performance tuning, and modern features including pgvector for AI/ML workloads. Master EXPLAIN plans, query analysis, and database design for high-performance applications
postgresql-optimization
PostgreSQL database optimization workflow for query tuning, indexing strategies, performance analysis, and production database management.
postgresql-docker
PostgreSQL in containers - Docker, Kubernetes, production configs
postgres-best-practices
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
neon-postgres
Expert patterns for Neon serverless Postgres, branching, connection pooling, and Prisma/Drizzle integration Use when: neon database, serverless postgres, database branching, neon postgres, postgres serverless.
distributed postgres
Build with Aurora DSQL - manage schemas, execute queries, and handle migrations with DSQL-specific requirements. Use when developing a scalable or distributed database/application or user requests DSQL.