baoyu-post-to-x
Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".
Why use this skill?
Post text, images, videos, and long-form articles to X automatically using OpenClaw. Bypasses anti-bot detection with real Chrome browser automation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/liuhedev/baoyu-post-to-xWhat This Skill Does
The baoyu-post-to-x skill is a sophisticated browser-automation tool designed to interface with X (formerly Twitter) through a real Chrome instance. Unlike traditional API integrations that are restricted by rate limits or complex developer account requirements, this skill utilizes the Chrome DevTools Protocol (CDP) to simulate human behavior, effectively bypassing aggressive anti-bot detection measures. It supports a wide range of content types including standard text tweets, multi-image posts, video uploads, quote tweets, and long-form Markdown-based X Articles. By automating the browser, it ensures that your interactions remain within the 'natural' user flow.
Installation
To begin using this skill, ensure you have the bun runtime installed and a functional Google Chrome or Chromium installation. Use the following command in your terminal:
clawhub install openclaw/skills/skills/liuhedev/baoyu-post-to-x
Upon the first execution, you must perform a manual login to your X account within the provided browser window. The skill will then securely persist your session cookies, allowing subsequent automated posts to occur without repeated authentication. You can customize behaviors via an EXTEND.md file located either in your project directory or user home folder.
Use Cases
- Content Scheduling: Automate the distribution of your blog posts or technical documentation to your audience.
- Social Media Management: Post high-quality images and video content directly from your local development pipeline.
- Knowledge Sharing: Convert complex Markdown documents into long-form X Articles with perfect formatting.
- Workflow Integration: Trigger posts directly from your AI agent as part of a larger project lifecycle.
Example Prompts
- "Post the content from my project report as a long-form X Article using the markdown file in my docs folder."
- "Tweet the following text about our latest release and attach the screenshot found in the images directory."
- "Can you share a video update on X with the caption: 'Look at what we just built today!'?"
Tips & Limitations
- Persistence: Always perform your initial login in a headless-free environment to ensure session tokens are saved correctly.
- Formatting: When posting articles, ensure your Markdown is clean, as the
md-to-htmlconverter performs best with standard syntax. - Rate Limits: While the browser-based approach bypasses API limits, X still enforces account-level rate limits; avoid excessive spamming to prevent temporary account flagging.
- Environment: If the skill fails to launch, verify that your local Chrome installation is in the system PATH.
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-liuhedev-baoyu-post-to-x": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution