Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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.

AutomationIntermediate24,7492,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_N placeholder via the X editor's Insert → Media upload 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 Publish or Post without 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 .md as 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

  1. Image tweet: "Tweet 'New feature shipped 🚀' with this screenshot" → types the text, pastes the image, waits for upload, then asks before posting.
  2. Long-form article: "Publish article.md as 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.
  3. 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Prerequisites: Google Chrome (or Chromium) and the bun runtime. Install bun with brew install oven-sh/bun/bun (macOS) or npm install -g bun.
  2. Clone the repo: git clone https://github.com/JimLiu/baoyu-skills.git
  3. Copy the skill into your skills folder: mkdir -p ~/.claude/skills && cp -r baoyu-skills/skills/baoyu-post-to-x ~/.claude/skills/
  4. (macOS) Enable System Settings → Privacy & Security → Accessibility for your terminal app so clipboard paste keystrokes work. (Linux: install xdotool for X11 or ydotool for Wayland.)
  5. Restart Claude Code, then run the environment check: bun ~/.claude/skills/baoyu-post-to-x/scripts/check-paste-permissions.ts
  6. On first run, log in to X manually in the Chrome window that opens; the session is saved for later.
  7. Now just ask "post this to X…". Always review the draft yourself before approving the final publish click.