baoyu-post-to-x

Post text, images, videos, and Markdown articles to X via Chrome CDP.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/sksdwl/shudan --skill baoyu-post-to-x-sksdwl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-post-to-x
Source: https://github.com/sksdwl/shudan/tree/main/workspace/skills/baoyu-post-to-x
Command: npx skills add https://github.com/sksdwl/shudan --skill baoyu-post-to-x-sksdwl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @types/node, playwright, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of posting content, including text, images, videos, and long-form articles, to X (Twitter), bypassing anti-automation measures.

Core Features & Use Cases

  • Regular Posts: Supports text posts with up to 4 images.
  • Video Posts: Enables posting text with video files.
  • Quote Tweets: Allows quoting existing tweets with a comment.
  • X Articles: Publishes long-form content from Markdown files, requiring X Premium.
  • Anti-Automation: Uses real Chrome with CDP to avoid detection.

Quick Start

Post the text "Hello world!" with an image named "photo.png" to X.

Frequently Asked Questions about baoyu-post-to-x

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate posting to X (Twitter) without triggering anti-automation blocks?

To automate posting to X while bypassing anti-automation, this Skill uses a real Chrome browser with Chrome DevTools Protocol (CDP) to mimic human interaction. You need to manually log in on the first run to establish a valid session.

Can I publish long-form X Articles from a Markdown file?

Yes, you can publish long-form X Articles directly from Markdown files. Publishing X Articles requires an active X Premium subscription, and the Skill handles the Markdown conversion and browser automation for you.

What do I need to run this X posting automation script?

To run this X posting automation, you need a Chrome browser and a bun runtime installed on your system. You must also complete a manual login through the automated browser session during the initial setup.

Does this tool support posting videos and quote tweets to X?

Yes, the tool supports posting text alongside video files and enables quote tweeting of existing tweets with a custom comment. It also supports regular text posts with up to four images attached.

Why does my X posting automation require a manual login on the first run?

A manual login on the first run is required to authenticate your X account within the real Chrome browser instance. This establishes a trusted session via CDP, which is critical for bypassing X's anti-automation detection mechanisms.