baoyu-post-to-weibo

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

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill baoyu-post-to-weibo-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-post-to-weibo
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/baoyu-post-to-weibo
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill baoyu-post-to-weibo-virahitvin8

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 lacks an open posting API for regular users and actively blocks automated bots. This Skill drives a real Chrome browser through the Chrome DevTools Protocol to compose regular posts and long-form headline articles while bypassing anti-bot 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 weibo.com. - Headline Articles: Convert Markdown files (with frontmatter, images, and Mermaid diagrams) into Weibo 头条文章, automatically filling title (32-char limit), summary (44-char limit), cover image, and inline images via clipboard paste. - Anti-Detection Workflow: Uses real paste keystrokes and a persistent Chrome profile so sessions stay logged in; content is filled for the user to review and publish manually. - Use Case: A content creator writes a blog post in Markdown and asks the agent to publish it as a Weibo headline article with a cover image and embedded figures, without manually copying content into the editor. ## Quick Start Ask the agent to post "Hello Weibo!" with an attached photo 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 lets you review and publish manually.

How to publish a Markdown article as a Weibo headline article?

Pass your Markdown file to the weibo-article.ts script, optionally with --cover, --title, and --summary flags. It converts the Markdown to HTML, opens the Weibo article editor, and fills title, summary, content, and images automatically.

Does Weibo automation work without an official API?

Yes, this approach drives a real Chrome browser via the Chrome DevTools Protocol instead of an API. It uses real paste keystrokes and a persistent profile to bypass anti-bot detection, but requires a one-time manual login.

What are the limits for Weibo headline article titles and summaries?

Titles are limited to 32 characters and summaries (导语) to 44 characters. The script truncates overly long titles at word boundaries and regenerates overly long summaries from the article content.

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

This happens when a previous CDP Chrome instance is stuck or unreachable. Kill only the Chrome processes using the baoyu-skills profile with a remote debugging port, wait two seconds, and retry the command.

Can I use this Weibo posting tool on Linux or Windows?

Yes, the scripts are cross-platform and support macOS, Linux, and Windows. Clipboard operations use Swift on macOS, wl-copy or xclip on Linux, and PowerShell on Windows.