Back to Skills

baoyu-post-to-weibo

Posts content to Weibo (微博). Supports regular posts with text, images, and videos, and headline articles (头条文章) with Markdown input via Chrome CDP. Use when user asks to "post to Weibo", "发微博", "发布微博", "publish to Weibo", "share on Weibo", "写微博", or "微博头条文章".

15,411stars1,774forksUpdated 4/20/2026

Security Assessment

Safe(100/100)
Security Score100/100

About baoyu-post-to-weibo

The baoyu-post-to-weibo skill enables automated posting to Weibo (微博) using a real Chrome browser session, effectively bypassing common anti-bot detection mechanisms. It is designed to streamline the process of publishing content such as text, images, videos, and long-form headline articles directly to the platform. By leveraging Chrome DevTools Protocol (CDP), the skill ensures that interactions mimic real user behavior, allowing users to prepare posts programmatically while still retaining manual control over the final publishing step.

This skill supports two primary content types: regular posts and headline articles. Regular posts can include text along with up to 18 combined image and video files, while headline articles accept Markdown input for long-form content creation. The system includes multiple scripts for handling posting, article publishing, clipboard operations, and simulating paste actions. It also supports configurable Chrome profiles and reads optional preferences from an EXTEND.md file if available. Execution is handled through the bun runtime (or npx fallback), and all scripts are organized within a dedicated scripts directory for clarity and modularity.

Typical use cases include content creators, marketers, and developers who want to automate or assist with publishing workflows on Weibo while maintaining authenticity through real browser interaction. It is particularly useful for users who frequently post multimedia content or draft long-form articles in Markdown. The skill is also suitable for integration into broader automation pipelines where controlled, semi-automated social media publishing is required.

FAQ

How do I publish a regular post with images or videos?

Use the weibo-post.ts script with the required text argument and optional --image or --video flags. You can include multiple files up to a total of 18.

Do posts get published automatically?

No. The script opens a real Chrome browser with the content pre-filled, allowing you to review and manually publish the post.

What are the system requirements for using this skill?

You need Google Chrome or Chromium installed, along with the bun runtime (or npx as a fallback). You must also log in to Weibo manually on the first run.

Can I customize the Chrome profile used for posting?

Yes. You can specify a custom Chrome profile directory using the --profile parameter or configure a default profile via EXTEND.md.

Does this skill support long-form article publishing?

Yes. It includes a script for publishing headline articles using Markdown input via Chrome CDP.

All Files

9 files
SKILL.md6.7 KB
View
scripts/bun.lock23.2 KB
View
scripts/md-to-html.ts4.8 KB
View
scripts/package.json0.2 KB
View
scripts/weibo-post.ts9.6 KB
View
scripts/copy-to-clipboard.ts11.9 KB
View
scripts/paste-from-clipboard.ts5.5 KB
View
scripts/weibo-utils.ts4.5 KB
View
scripts/weibo-article.ts45.6 KB
View

Install baoyu-post-to-weibo

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill