baoyu-post-to-x

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

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-post-to-x-lihanghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-post-to-x
Source: https://github.com/lihanghang/agent-daily-blog/tree/main/skills-archive/2026-03-17/baoyu-skills/skills/baoyu-post-to-x
Command: npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-post-to-x-lihanghang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires front-matter, highlight.js, marked, remark-cjk-friendly, remark-parse, remark-stringify, unified, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Posts content and articles to X (Twitter) via real Chrome browser using CDP to bypass anti-automation. Supports regular posts with text, images, and videos as well as long-form Markdown Articles to X Articles editor.

Core Features & Use Cases

  • Regular Posts: publish text, images, and videos to X.
  • X Articles: publish long-form Markdown content to X Articles editor.
  • Real Chrome CDP Interaction: interacts with X using a real browser to bypass automation detectors.
  • Use Case: When you want an AI agent to share updates with media or issue posts on X automatically.

Quick Start

Post to X by running the appropriate script (x-browser.ts for text/images, x-video.ts for video posts, or x-article.ts for long-form content) and review the result in the browser.

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 using a real Chrome browser?

Automating posts to X via real Chrome uses Chrome DevTools Protocol (CDP) to interact with the browser, bypassing anti-automation detectors. It executes scripts to handle text, images, and videos directly.

Can I publish long-form Markdown articles to X Articles automatically?

Yes, you can publish long-form Markdown articles to X Articles automatically. The skill parses Markdown content and uses CDP to input the structured content into the X Articles editor within a real Chrome instance.

Does X detect and block automated posting via CDP?

X typically detects automation, but this skill uses CDP to control a real Chrome browser instead of a headless bot. This browser-based workflow ensures authentic interaction to reliably bypass anti-automation detection.

What do I need to set up to post images and videos to X automatically?

Posting media to X automatically requires a real Chrome environment, the skill's scripts, and clipboard and file input handling. This setup enables media-rich posts through direct browser interaction.

Why use a real Chrome browser instead of the X API for automated posts?

Using a real Chrome browser via CDP provides an authentic interaction environment that bypasses strict X API limitations and anti-automation blocks. It supports publishing media-rich posts and structured Markdown Articles reliably.