Install Baoyu Post To Weibo
Pick your agent. Every command is ready to paste.
npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-weiboThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads baoyu-post-to-weibo when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the baoyu-post-to-weibo skill”. In Codex, type $baoyu-post-to-weibo.
The skill itself
SKILL.md
Post to Weibo
Posts via a real Chrome browser (CDP), which avoids anti-bot detection. Scripts only fill content in the browser — the user reviews and publishes manually.
Script Directory
{baseDir} = this SKILL.md's directory; scripts are at {baseDir}/scripts/<script-name>.ts. Resolve ${BUN_X}: bun if installed → else npx -y bun → else suggest installing bun.
| Script | Purpose |
|---|---|
scripts/weibo-post.ts |
Regular posts (text + images) |
scripts/weibo-article.ts |
Headline article publishing (Markdown) |
scripts/copy-to-clipboard.ts |
Copy content to clipboard |
scripts/paste-from-clipboard.ts |
Send real paste keystroke |
Preferences (EXTEND.md)
First found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-post-to-weibo/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-post-to-weibo/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-post-to-weibo/EXTEND.md |
User home |
None found → use defaults. Supported: default Chrome profile.
Prerequisites
Google Chrome or Chromium; bun. First run: user logs in to Weibo manually (session persists). Works on macOS, Linux, Windows.
Post Type Selection
Unless the user specifies: Markdown file (.md) → Headline Article (头条文章); plain text / text with images → Regular Post.
Regular Posts
Text + images/videos (max 18 files total), posted on the Weibo homepage.
${BUN_X} {baseDir}/scripts/weibo-post.ts "Hello Weibo!" --image ./photo.png
${BUN_X} {baseDir}/scripts/weibo-post.ts "Watch this" --video ./clip.mp4
| Parameter | Description |
|---|---|
<text> |
Post content (positional) |
--image <path> |
Image file (repeatable) |
--video <path> |
Video file (repeatable) |
--profile <dir> |
Custom Chrome profile |
Headline Articles (头条文章)
Editor: https://card.weibo.com/article/v3/editor.
${BUN_X} {baseDir}/scripts/weibo-article.ts article.md
${BUN_X} {baseDir}/scripts/weibo-article.ts article.md --cover ./cover.jpg
| Parameter | Description |
|---|---|
<markdown> |
Markdown file (positional) |
--cover <path> |
Cover image |
--title <text> |
Override title (max 32 chars, truncated with warning if longer) |
--summary <text> |
Override summary/导语 (max 44 chars, auto-regenerated from content if longer) |
--profile <dir> |
Custom Chrome profile |
Frontmatter: title, summary, cover_image.
Markdown-to-HTML: do NOT pass any --theme when converting; use the default theme.
Script flow: opens the editor → clicks "写文章" and waits until editable → fills title and summary → pastes HTML into the ProseMirror editor → replaces image placeholders one by one (copy image → select placeholder → paste).
Post-composition check: the script then reports remaining WBIMGPH_ placeholders and expected vs actual image count. If it prints warnings, tell the user the specific issues before they publish.
Troubleshooting
Chrome debug port not ready / Unable to connect: automatically, without asking, kill only the CDP Chrome instances (with --remote-debugging-port AND the baoyu-skills profile), then retry:
pkill -f "remote-debugging-port.*baoyu-skills/chrome-profile" 2>/dev/null; sleep 2
Never kill all Chrome processes (pkill -f "Google Chrome") — the user may have regular Chrome windows open.
Extension Support
Custom configuration via EXTEND.md — see Preferences.
Tips for Baoyu Post To Weibo
- • Start a fresh session after installing so your agent picks up the new skill.
- • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
- • It is part of a pack with 22 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Baoyu Post To Weibo
What does the Baoyu Post To Weibo skill do?
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 "微博头条文章".
How do I install Baoyu Post To Weibo?
Run "npx skills add JimLiu/baoyu-skills --skill baoyu-post-to-weibo" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Baoyu Post To Weibo work in Cursor and Codex?
Yes. Baoyu Post To Weibo uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Baoyu Post To Weibo free?
Baoyu Post To Weibo is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Baoyu Post To Weibo?
Baoyu Post To Weibo is published by JimLiu in the JimLiu/baoyu-skills repository, together with 21 other skills.



