X-Publisher
Publish tweets to X (Twitter) using the official Tweepy library. Supports text-only tweets, tweets with images or videos, and returns detailed publish results including tweet ID and URL. Requires X API credentials (API Key, API Secret, Access Token, Access Token Secret).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alphafactor/x-publisherWhat This Skill Does
The X-Publisher skill is a specialized OpenClaw agent tool designed to streamline social media management by integrating directly with the official X (formerly Twitter) API via the Tweepy library. It allows your agent to perform authenticated posting, enabling seamless automation of text, image, and video content publication. This skill handles the complexities of media uploading, authentication protocols, and error management, returning structured JSON results that verify post success, provide unique tweet URLs, and confirm precise timestamps.
Installation
To integrate this skill into your environment, use the OpenClaw hub CLI by executing: clawhub install openclaw/skills/skills/alphafactor/x-publisher. After installation, ensure you have the Tweepy library installed (pip3 install tweepy). You must then provision your X API credentials (API Key, Secret, Access Token, and Secret) and export them as environment variables in your terminal profile (e.g., ~/.zshrc or ~/.bashrc) to ensure the agent can securely authenticate against the platform.
Use Cases
This skill is perfect for automated social media marketing, content syndication, and real-time monitoring alerts. Use it to automatically tweet updates from internal dashboards, announce newly generated AI research or project results, or keep followers updated with consistent media-rich content without manual intervention. It serves as an essential bridge between your local data processing workflows and your public digital identity.
Example Prompts
- "X-Publisher, post a new update saying 'We just launched the new version of OpenClaw!' and attach the graph image from /results/final_plot.png."
- "Check if my X account is still authorized using the verify tool, then publish this short video from /videos/demo.mp4 with the caption 'Check out our new UI'."
- "Summarize the recent project analysis and post it to my Twitter account as a text-only update."
Tips & Limitations
When using X-Publisher, be mindful of platform constraints: you are limited to a maximum of 4 images or 1 video per post. Media files must adhere to file size limits—5MB for images and 512MB for video. Additionally, be aware of X’s rate limits; the API typically restricts users to 300 posts every 15 minutes. Always test your configuration with the verify command before scheduling automated posts to ensure your credentials have sufficient permissions and have not expired. Keep your environment variables secure and never hardcode keys directly into your scripts.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alphafactor-x-publisher": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, file-read
Related Skills
todo
**macOS Only** - Manage macOS Reminders app via AppleScript. Full-featured reminder management: add, list, complete, delete, search, create lists, and more. **Note: This skill is macOS-only**, requiring the native Reminders app. Use cases: - Create reminders with due dates and priorities - List reminders from specific lists or incomplete ones - Mark reminders as complete/uncomplete - Delete reminders - Search reminders by title or content - Create new reminder lists - View today's due reminders
Wechat Connect
Install OpenClaw's official WeChat plugin and complete account pairing via QR code scan. Triggers when the user says "install WeChat plugin", "connect WeChat", or "WeChat QR code". No command-line interaction required.
Ghost
Skill by alphafactor
Crypto Market
Cryptocurrency market data and price alert monitoring tool based on CCXT. Supports multiple exchanges, real-time price tracking, and configurable price/volatility alerts. Use when the user needs to monitor crypto prices or set up trading alerts. Default exchange is Binance.
Tushare Pro
Fetch Chinese stock and futures market data via Tushare API. Supports stock quotes, futures data, company fundamentals, and macroeconomic indicators. Use when the user needs financial data from Chinese markets. Requires TUSHARE_TOKEN environment variable.