baoyu-post-to-x

Automate posting text, images, and videos to Twitter via Chrome DevTools Protocol.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun, x-cdp, x-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of posting content, including text, images, and videos, to X (Twitter) using a real Chrome browser, bypassing anti-bot detection.

Core Features & Use Cases

  • Post Creation: Supports regular posts with images/videos and X Articles (long-form Markdown).
  • Real Chrome Execution: Uses real Chrome with Chrome DevTools Protocol (CDP) to interact with the website, bypassing anti-automation measures.
  • Use Case: If a user wants to post a tweet with an image or share a long-form article on Twitter, this Skill can handle the entire process automatically.

Quick Start

Use the "baoyu-post-to-x" skill to post a tweet with an image. Provide the text and image path as arguments: baoyu-post-to-x "Your tweet text" --image /path/to/image.jpg

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 Twitter without triggering anti-bot detection?

Automating Twitter posts without triggering anti-bot detection requires using a real Chrome browser via the Chrome DevTools Protocol (CDP). This approach interacts with the website natively to fill forms and submit content, bypassing standard anti-automation measures.

What is the best way to post long-form articles to X using browser automation?

Posting long-form articles to X is handled by automating Chrome to submit X Articles using Markdown. This real browser interaction submits the content directly through the website interface, ensuring the long-form post is formatted correctly.

How do I post a tweet with an image using Chrome DevTools Protocol?

To post a tweet with an image using CDP, you provide the text and the image path as arguments to the automation script. The tool then drives the real Chrome browser to upload the image and submit the post.

Do I need bun runtime to automate Twitter content posting?

Yes, you need the bun runtime to execute this Twitter content posting automation. The implementation relies on bun to run the necessary packages, including x-cdp and x-utils, for browser control and utility functions.

Can I post videos to Twitter using real Chrome execution?

Yes, you can post videos to Twitter using real Chrome execution. The automation supports regular posts containing images and videos by driving the real browser via CDP to handle the upload and submission process.

Why use real Chrome with CDP for Twitter post automation instead of API wrappers?

Using real Chrome with CDP for Twitter post automation bypasses anti-bot detection by mimicking genuine user interaction. Unlike standard API wrappers, this method handles authentication and form submission through the actual website interface.