Agent skill · Content & Marketing

baoyu-post-to-x

Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Codex, honor explicit requests for the Codex Chrome plugin/@chrome by using the Chrome Extension workflow; otherwise use Chrome Computer Use when available and fall back to real Chrome CDP scripts only when allowed. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".

JimLiugithub.com/JimLiuGitHub ↗
claude-codecodexships scriptsMIT
Install
npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-x --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 16
SKILL.md size: 17 KB
Bundled scripts: yes
Version: 1.58.1
Path: skills/baoyu-post-to-x/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 24,562
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the 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 **Script Reference**: | Scr

What's inside
Steps it walks through
  1. Script Directory
  2. Execution Mode Selection (Required)
  3. Codex Chrome Plugin Mode
  4. Preferences (EXTEND.md)
  5. Prerequisites
  6. Pre-flight Check (Optional)
  7. References
  8. Chrome Computer Use Mode
  9. CDP Script Mode (Fallback)
  10. Post Type Selection
  11. Regular Posts
  12. Video Posts
  13. Quote Tweets
  14. X Articles
Ships with 15 files
  • references/articles.md
  • references/regular-posts.md
  • scripts/bun.lock
  • scripts/check-paste-permissions.ts
  • scripts/copy-to-clipboard.ts
  • scripts/md-to-html.test.ts
  • scripts/md-to-html.ts
  • scripts/package.json
  • scripts/paste-from-clipboard.ts
  • scripts/x-article.ts
  • scripts/x-browser.ts
  • scripts/x-quote.ts
  • scripts/x-utils.test.ts
  • scripts/x-utils.ts
  • scripts/x-video.ts
Commands it runs
pkill -f "Chrome.*remote-debugging-port" 2>/dev/null; pkill -f "Chromium.*remote-debugging-port" 2>/dev/null; sleep 2
More from baoyu-skills
All skills →
About this skill
What does the baoyu-post-to-x skill do?

Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Codex, honor explicit requests for the Codex Chrome plugin/@chrome by using the Chrome Extension workflow; otherwise use Chrome Computer Use when available and fall back to real Chrome CDP scripts only when allowed. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".

How do I install it?

Run `npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-x --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From JimLiu/baoyu-skills, a repository with 24,562 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going