Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

baoyu-post-to-x

Skill by JimLiu

Posts text, images, videos and X Articles to X (Twitter) through a real Chrome browser. It suits people who want an assistant to publish content on their own X account.

  • Score 93
  • 28k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install baoyu-post-to-x

Built from the published package, never by AI.

git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-post-to-x ~/.claude/skills/baoyu-post-to-x

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install baoyu-post-to-x in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

baoyu-post-to-x is a skill for posting content to X, formerly Twitter. It handles regular posts with images, video posts, quote tweets, and long-form X Articles written in Markdown. It works through a real Chrome browser that uses the user's existing X login.

The skill chooses one of three browser paths: the Codex Chrome plugin, Chrome Computer Use, or CDP scripts used only as a fallback. Chrome Computer Use is preferred when available. The skill never clicks Publish or Post without explicit final confirmation from the user in the current conversation. It suits people who want an assistant to publish or prepare X posts and articles from their own browser session.

Written from the project's SKILL.md and checked against it.

What it can do

  • Regular postsPosts text and images to X. Script mode accepts up to 4 images per post.
  • Video postsPosts text with a video file in MP4, MOV or WebM format.
  • Quote tweetsQuotes an existing tweet URL with an optional comment.
  • X ArticlesPublishes long-form Markdown articles with an optional cover image.
  • Markdown to HTMLConverts an article Markdown file to HTML for the X Article body.
  • Clipboard and pasteCopies images or rich HTML to the clipboard and sends a real paste keystroke.
  • Pre-flight checkChecks Chrome, the Bun runtime, and paste permissions in the local environment.

What you need

  • Google Chrome or Chromium
  • bun, or npx to run bun
  • An X account logged in through Chrome
  • X Premium for X Articles and posts over 280 characters
  • macOS, Linux or Windows

Try asking

  • Post this text with two images to X: [your text]
  • Publish my Markdown file as an X Article with a cover image
  • Quote this tweet with my comment: [tweet URL]

Good to know

  • Never clicks Publish or Post without explicit final confirmation from the user.
  • Regular posts are limited to 280 characters, or 10,000 with Premium.
  • Video length is 140 seconds for regular accounts and 60 minutes for Premium.
  • The in-app Browser is never used for X publishing.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/baoyu-post-to-x/SKILL.md, skills/baoyu-post-to-x/scripts/check-paste-permissions.ts, skills/baoyu-post-to-x/scripts/copy-to-clipboard.ts, skills/baoyu-post-to-x/scripts/md-to-html.test.ts, skills/baoyu-post-to-x/scripts/md-to-html.ts, skills/baoyu-post-to-x/scripts/paste-from-clipboard.ts, skills/baoyu-post-to-x/scripts/x-article.ts, skills/baoyu-post-to-x/scripts/x-browser.ts, skills/baoyu-post-to-x/scripts/x-quote.ts. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • references/articles.md5 KB
  • references/regular-posts.md2 KB
  • scripts/bun.lock23 KB
  • scripts/check-paste-permissions.ts8 KB
Show all 16 files
  • scripts/copy-to-clipboard.ts12 KB
  • scripts/md-to-html.test.ts5 KB
  • scripts/md-to-html.ts13 KB
  • scripts/package.json379 B
  • scripts/paste-from-clipboard.ts6 KB
  • scripts/x-article.ts31 KB
  • scripts/x-browser.ts9 KB
  • scripts/x-quote.ts9 KB
  • scripts/x-utils.test.ts2 KB
  • scripts/x-utils.ts9 KB
  • scripts/x-video.ts9 KB

Alternatives to baoyu-post-to-x

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

baoyu-post-to-x: common questions

Does it post to X without asking first?

No. The skill requires explicit final confirmation from the user before clicking Publish or Post, or passing the --submit flag.

Which Chrome session does it use?

In the Codex Chrome plugin and Chrome Computer Use modes it uses the user's existing Chrome session and X login. CDP scripts accept a custom Chrome profile with the --profile option.

Does it require X Premium?

Plain posts up to 280 characters work without Premium. X Articles require X Premium, and Premium raises the post limit to 10,000 characters.

How do I install baoyu-post-to-x?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is baoyu-post-to-x free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is baoyu-post-to-x safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to baoyu-post-to-x?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

baoyu-post-to-x Install

Add to stack

Loading.