Skip to content
TakoAPI
Back to skills

baoyu-post-to-x

by liuhedev

Web & Frontend Development
1.6kDownloads reported by clawskills.sh
2Stars
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

Posts content and articles to X (Twitter).

Description

What This Skill Does

Posts text, images, videos, and long-form Markdown articles to X (Twitter) using a real Chrome browser via CDP. Supports regular tweets, video posts, quote tweets, and X Articles. Session persists after first manual login.

Uses real Chrome with CDP instead of the X API, bypassing anti-automation restrictions without needing API credentials.

When to Use It

  • Posting a thread with images after writing a blog post
  • Publishing a long-form article to X Premium from a Markdown file
  • Quoting a tweet with an added comment during a live discussion
  • Sharing a product demo video clip directly from the terminal
  • Automating social media posting from a CI or agent workflow

Example Workflow

INPUT

User asks: post this article.md to X with cover image cover.jpg

AGENT
  1. 1

    Check for EXTEND.md preferences at project and user-level paths

  2. 2

    Resolve SKILL_DIR path to locate x-article.ts script

  3. 3

    Run script in preview mode: npx -y bun x-article.ts article.md --cover cover.jpg

  4. 4

    Confirm preview looks correct, then run with --submit flag

OUTPUT

Article published to X with cover image; URL returned by script

Requirements

  • Google Chrome or Chromium installed
  • X (Twitter) account with manual login on first run
  • X Premium subscription (for X Articles only)
  • bun runtime installed

Installation

clawhub install liuhedev/baoyu-post-to-x

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links