baoyu-post-to-weibo

Posts text, images, videos, and Markdown articles to Weibo via Chrome CDP automation.

Updated May 18, 2026
One-click install
npx skills add https://github.com/fts-pro/FTS-MMIS-AFRIKA --skill baoyu-post-to-weibo-fts-pro
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: baoyu-post-to-weibo
Source: https://github.com/fts-pro/FTS-MMIS-AFRIKA/tree/main/.agent/skills/baoyu-post-to-weibo
Command: npx skills add https://github.com/fts-pro/FTS-MMIS-AFRIKA --skill baoyu-post-to-weibo-fts-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires baoyu-chrome-cdp, baoyu-md, and includes scripts (resource) components.

What problem does it solve? Publishing content to Weibo programmatically is difficult because the platform has no open posting API for regular users and employs anti-bot detection. This Skill drives a real Chrome browser through the Chrome DevTools Protocol to compose regular posts and long-form headline articles while bypassing automation detection. ## Core Features & Use Cases - Regular Posts: Compose Weibo posts with text plus up to 18 images or videos, uploaded through the real file input on the Weibo homepage. - Headline Articles (头条文章): Convert Markdown files to HTML and fill the Weibo article editor, including title (32-char limit), summary (44-char limit), cover image, and inline images inserted via clipboard paste. - Anti-Detection Workflow: Uses real clipboard operations and paste keystrokes instead of synthetic CDP events that Weibo can detect and ignore. - Use Case: A content creator writes a blog post in Markdown and asks the agent to publish it as a Weibo headline article; the Skill opens the editor, fills all fields, inserts every image, and verifies the result before the user clicks publish. ## Quick Start Ask the agent to post "Hello Weibo!" with an attached image to your Weibo account using this skill.

Frequently Asked Questions about baoyu-post-to-weibo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I post to Weibo from the command line?▼

Run the weibo-post.ts script with bun, passing your text and optional --image or --video flags. The script opens a real Chrome window, fills the Weibo composer, and uploads media through the file input; you review and click publish manually.

How to publish a Markdown article to Weibo headline articles?▼

Pass your Markdown file to the weibo-article.ts script, optionally with --cover, --title, and --summary flags. The script converts Markdown to HTML, fills the title (max 32 chars) and summary (max 44 chars), pastes the content into the editor, and inserts each image at its placeholder.

Does this Weibo posting tool work on Linux and Windows?▼

Yes, the scripts support macOS, Linux, and Windows. Clipboard operations use Swift on macOS, wl-copy or xclip on Linux, and PowerShell on Windows, while paste keystrokes use osascript, xdotool or ydotool, and SendKeys respectively.

Why does the script fail with Chrome debug port not ready?▼

This happens when a previous CDP Chrome instance is stuck or the port is occupied. Kill only the CDP Chrome processes using the baoyu-skills profile with the remote-debugging-port flag, wait two seconds, and retry; never kill all Chrome processes.

Can the script publish Weibo posts fully automatically?▼

No, the scripts only fill content into the browser; the user must review and click the publish button manually. This design keeps the account safe and lets you verify formatting, images, and captions before anything goes live.