Tooluck logoTooluck
SKILL.md

baoyu-post-to-weibo

Agent skill fromJimLiu/baoyu-skills

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 to install baoyu-post-to-weibo

install baoyu-post-to-weibo
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-post-to-weibo/

# into

~/.claude/skills/baoyu-post-to-weibo/ (all projects)

.claude/skills/baoyu-post-to-weibo/ (one project)

skills/baoyu-post-to-weibo/SKILL.md

MITFull file
1# Post to Weibo
2
3Posts via a real Chrome browser (CDP), which avoids anti-bot detection. Scripts only fill content in the browser — the user reviews and publishes manually.
4
5## Script Directory
6
7`{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.
8
9| Script | Purpose |
10|--------|---------|
11| `scripts/weibo-post.ts` | Regular posts (text + images) |
12| `scripts/weibo-article.ts` | Headline article publishing (Markdown) |
13| `scripts/copy-to-clipboard.ts` | Copy content to clipboard |
14| `scripts/paste-from-clipboard.ts` | Send real paste keystroke |
15
16## Preferences (EXTEND.md)
17
18First found wins:
19
20| Priority | Path | Scope |
21|----------|------|-------|
22| 1 | `.baoyu-skills/baoyu-post-to-weibo/EXTEND.md` | Project |
23| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-post-to-weibo/EXTEND.md` | XDG |
24| 3 | `$HOME/.baoyu-skills/baoyu-post-to-weibo/EXTEND.md` | User home |
25
26None found → use defaults. Supported: default Chrome profile.
27
28## Prerequisites
29
30Google Chrome or Chromium; `bun`. First run: user logs in to Weibo manually (session persists). Works on macOS, Linux, Windows.
31
32## Post Type Selection
33
34Unless the user specifies: Markdown file (`.md`) → Headline Article (头条文章); plain text / text with images → Regular Post.
35
36## Regular Posts
37
38Text + images/videos (max 18 files total), posted on the Weibo homepage.
39
40```bash
41…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates