baoyu-post-to-x

Originally fromyelban/baoyu-skills.tw
Installation
Summary

Post text, images, videos, and long-form articles to X via real Chrome browser automation.

  • Supports four post types: regular posts with images, video posts, quote tweets, and long-form Markdown articles (X Premium required)
  • Uses real Chrome with Chrome DevTools Protocol to bypass anti-bot detection; session persists after first manual login
  • Scripts fill content into the browser compose window; user reviews and publishes manually
  • Requires bun runtime and Google Chrome or Chromium; includes optional pre-flight environment check for accessibility, clipboard, and paste keystroke permissions
SKILL.md

Post to X (Twitter)

Posts text, images, videos, and long-form articles to X via a real Chrome browser.

In Codex, do not conflate these browser paths:

  • Codex Chrome plugin / @chrome / Chrome Extension: use the bundled chrome:Chrome skill and its Node REPL browser client. This is required whenever the user says "Codex Chrome plugin", "Codex 自带的 Chrome 插件", @chrome, or similar.
  • Chrome Computer Use: use mcp__computer_use__.* against the visible Google Chrome UI only when the user asks for Computer Use or no Chrome-plugin preference is stated and Computer Use is available.
  • CDP script mode: use only as a fallback when the selected mode is unavailable or the user explicitly asks for CDP/script mode.

Script Directory

Important: All scripts are located in the scripts/ subdirectory of this skill.

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as {baseDir}
  2. Script path = {baseDir}/scripts/<script-name>.ts
  3. Replace all {baseDir} in this document with the actual path
  4. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun
Related skills

More from jimliu/baoyu-skills

Installs
19.0K
GitHub Stars
18.1K
First Seen
Jan 19, 2026