baoyu-post-to-xPosts 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".
Install via ClawdBot CLI:
clawdbot install liuhedev/baoyu-post-to-xPosts text, images, videos, and long-form articles to X via real Chrome browser (bypasses anti-bot detection).
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
SKILL_DIR${SKILL_DIR}/scripts/.ts ${SKILL_DIR} in this document with the actual pathScript Reference:
| Script | Purpose |
|--------|---------|
| scripts/x-browser.ts | Regular posts (text + images) |
| scripts/x-video.ts | Video posts (text + video) |
| scripts/x-quote.ts | Quote tweet with comment |
| scripts/x-article.ts | Long-form article publishing (Markdown) |
| scripts/md-to-html.ts | Markdown ā HTML conversion |
| scripts/copy-to-clipboard.ts | Copy content to clipboard |
| scripts/paste-from-clipboard.ts | Send real paste keystroke |
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .baoyu-skills/baoyu-post-to-x/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md" && echo "user"
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā
ā Path ā Location ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā¤
ā .baoyu-skills/baoyu-post-to-x/EXTEND.md ā Project directory ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā¤
ā $HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md ā User home ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Result ā Action ā
āāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Found ā Read, parse, apply settings ā
āāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Not found ā Use defaults ā
āāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
EXTEND.md Supports: Default Chrome profile | Auto-submit preference
bun runtimereferences/regular-posts.md for manual workflow, troubleshooting, and technical detailsreferences/articles.md for long-form article publishing guideText + up to 4 images.
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png # Preview
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png --submit # Post
Parameters:
| Parameter | Description |
|-----------|-------------|
| | Post content (positional) |
| --image | Image file (repeatable, max 4) |
| --submit | Post (default: preview) |
| --profile | Custom Chrome profile |
Text + video file.
npx -y bun ${SKILL_DIR}/scripts/x-video.ts "Check this out!" --video ./clip.mp4 # Preview
npx -y bun ${SKILL_DIR}/scripts/x-video.ts "Amazing content" --video ./demo.mp4 --submit # Post
Parameters:
| Parameter | Description |
|-----------|-------------|
| | Post content (positional) |
| --video | Video file (MP4, MOV, WebM) |
| --submit | Post (default: preview) |
| --profile | Custom Chrome profile |
Limits: Regular 140s max, Premium 60min. Processing: 30-60s.
Quote an existing tweet with comment.
npx -y bun ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "Great insight!" # Preview
npx -y bun ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "I agree!" --submit # Post
Parameters:
| Parameter | Description |
|-----------|-------------|
| | URL to quote (positional) |
| | Comment text (positional, optional) |
| --submit | Post (default: preview) |
| --profile | Custom Chrome profile |
Long-form Markdown articles (requires X Premium).
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md # Preview
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg # With cover
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --submit # Publish
Parameters:
| Parameter | Description |
|-----------|-------------|
| | Markdown file (positional) |
| --cover | Cover image |
| --title | Override title |
| --submit | Publish (default: preview) |
Frontmatter: title, cover_image supported in YAML front matter.
--submitCustom configurations via EXTEND.md. See Preferences section for paths and supported options.
Generated Mar 1, 2026
Marketing teams can schedule and post promotional content, product announcements, or event updates to X with images or videos. This skill automates posting to maintain consistent engagement and reach, using real Chrome to avoid anti-bot detection for reliable delivery.
News organizations can quickly share breaking news articles or summaries as regular posts or long-form X Articles. It supports Markdown conversion for detailed reporting, enabling rapid dissemination while bypassing automation restrictions with browser-based execution.
Influencers can post curated content, such as photos, videos, or quote tweets, to engage followers and grow their audience. The skill handles media uploads and previews, allowing creators to streamline their posting workflow without manual browser interactions.
Businesses can use this to share company news, blog posts, or industry insights via X Articles or regular tweets. It ensures professional presentation with cover images and formatted text, enhancing brand visibility and stakeholder communication.
Educators and institutions can publish tutorials, research findings, or educational articles as long-form posts on X. The Markdown support allows for structured content with images, making it easy to distribute knowledge to a broader audience.
Offer this skill as part of a SaaS platform where users pay a monthly fee for automated posting, analytics, and scheduling features. Revenue comes from tiered subscriptions based on post volume or advanced capabilities like video uploads.
Provide basic posting features for free, with premium upgrades for advanced functionalities such as X Articles, bulk posting, or priority support. Monetize through in-app purchases or one-time payments for premium add-ons.
License this skill to marketing agencies or enterprises for internal use or client services, charging a licensing fee per user or organization. Revenue is generated through custom integrations, support contracts, and scalability options.
š¬ Integration Tip
Ensure Chrome is installed and logged into X beforehand; use the preview mode to test posts before submitting to avoid errors.
Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
Fetch and summarize YouTube video transcripts. Use when asked to summarize, transcribe, or extract content from YouTube videos. Handles transcript fetching via residential IP proxy to bypass YouTube's cloud IP blocks.
Browse, search, post, and moderate Reddit. Read-only works without auth; posting/moderation requires OAuth setup.
Interact with Twitter/X ā read tweets, search, post, like, retweet, and manage your timeline.
LinkedIn automation via browser relay or cookies for messaging, profile viewing, and network actions.
Search YouTube videos, get channel info, fetch video details and transcripts using YouTube Data API v3 via MCP server or yt-dlp fallback.