Post to X (Twitter)
Composes and publishes tweets, images, videos, quote tweets and long-form Markdown Articles to X using a real, logged-in Chrome browser.
AutomationIntermediate★ 24,749⑂ 2,764AI score 8/10Last updated: Jul 4, 2026
What it does
- Triggers on requests like "post to X", "tweet this", "publish to Twitter" and drives a real Chrome browser with your existing X session to fill in the composer.
- Supports regular posts (up to 4 images), video posts, quote tweets, and X Articles (Markdown → rich long-form, requires X Premium).
- Converts Markdown to HTML, keeps an image map, and inserts each body image at its
XIMGPH_Nplaceholder via the X editor'sInsert → Mediaupload flow. - Clearly separates three browser-control modes (Codex Chrome plugin / Chrome Computer Use / CDP script fallback) and refuses to silently switch modes.
- Publish safety: it never clicks
PublishorPostwithout your explicit final confirmation in the conversation.
Who it's for
- Creators, developers and marketers who post to X regularly
- Anyone repurposing blog posts or newsletters written in
.mdas X Articles - Terminal-first users who want fewer round trips to the browser
- Less suitable if you'd rather not grant browser/keyboard automation permissions.
Examples
- Image tweet: "Tweet 'New feature shipped 🚀' with this screenshot" → types the text, pastes the image, waits for upload, then asks before posting.
- Long-form article: "Publish
article.mdas an X Article with cover.jpg" → sets title and cover, pastes rich HTML body, inserts content images in order, opens Preview, then asks for publish approval. - Quote tweet: "Quote this tweet URL with the comment 'this paragraph is the real point'" → opens the quote composer and fills the comment.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-post-to-x folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-post-to-x/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-post-to-x ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Prerequisites: Google Chrome (or Chromium) and the bun runtime. Install bun with
brew install oven-sh/bun/bun(macOS) ornpm install -g bun. - Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git - Copy the skill into your skills folder:
mkdir -p ~/.claude/skills && cp -r baoyu-skills/skills/baoyu-post-to-x ~/.claude/skills/ - (macOS) Enable System Settings → Privacy & Security → Accessibility for your terminal app so clipboard paste keystrokes work. (Linux: install
xdotoolfor X11 orydotoolfor Wayland.) - Restart Claude Code, then run the environment check:
bun ~/.claude/skills/baoyu-post-to-x/scripts/check-paste-permissions.ts - On first run, log in to X manually in the Chrome window that opens; the session is saved for later.
- Now just ask "post this to X…". Always review the draft yourself before approving the final publish click.
View source on GitHub ↗License: MIT