baoyu-post-to-weibo
🤖 AI Summary
Posts text, images, videos, and Markdown articles to Weibo using a real Chrome browser to bypass anti-bot detection. Run `{baseDir}/scripts/weibo-post.ts` for regular posts or `{baseDir}/scripts/weibo-article.ts` for long-form articles.
How to Install
Claude Code:
git clone --depth 1 https://github.com/JimLiu/baoyu-skills.git && cp baoyu-skills/skills/baoyu-post-to-weibo ~/.claude/skills/baoyu-post-to-weibo -r# Post to Weibo
Posts text, images, videos, and long-form articles to Weibo via real Chrome browser (bypasses anti-bot detection).
## Script Directory
**Important**: All scripts are located in the `scripts/` subdirectory of this skill.
**Agent Execution Instructions**:
1. Determine this SKILL.md file's directory path as `{baseDir}`
2. Script path = `{baseDir}/scripts/.ts`
3. Replace all `{baseDir}` in this document with the actual path
4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun
**Script Reference**:
| 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)
Check EXTEND.md in priority order — the first one 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 |
If none found, use defaults.
**EXTEND.md supports**: Default Chrome profile
## Prerequisites
- Google Chrome or Chromium
- `bun` runtime
- First run: log in to Weibo manually (session saved)
---
## Regular Posts
Text + images/videos (max 18 files total). Posted on Weibo homepage.
```bash
${BUN_X} {baseDir}/scripts/weibo-post.ts "Hello Weibo!" --image ./photo.png
${BUN_X} {baseDir}/scripts/weibo-post.ts "Watch this" --video ./clip.mp4
```
**Parameters**:
| Parameter | Description |
|-----------|-------------|
| `` | Post content (positional) |
| `--image ` | Image file (repeatable) |
| `--video ` | Video file (repeatable) |
| `--profile ` | Custom Chrome profile |
**Note**: Script opens browser with content filled in. User reviews and publishes manually.
---
## Headline Articles (头条文章)
Long-form Markdown articles published at `https://card.weibo.com/article/v3/editor`.
```bash
${BUN_X} {baseDir}/scripts/weibo-article.ts article.md
${BUN_X} {baseDir}/scripts/weibo-article.ts article.md --cover ./cover.jpg
```
**Parameters**:
| Parameter | Description |
|-----------|-------------|
| `` | Markdown file (positional) |
| `--cover ` | Cover image |
| `--title ` | Override title (max 32 chars, truncated if longer) |
| `--summary ` | Override summary (max 44 chars, auto-regenerated if longer) |
| `--profile ` | Custom Chrome profile |
**Frontmatter**: `title`, `summary`, `cover_image` supported in YAML front matter.
**Character Limits**:
- Title: 32 characters max (truncated with warning if longer)
- Summary/导语: 44 characters max (auto-regenerated from content if longer)
**Markdown-to-HTML**: Do NOT pass any `--theme` paramet
Details
| Category | Content → writing |
| Source | JimLiu/baoyu-skills |
| SKILL.md | View on GitHub → |
| Repo Stars | ★ 22.3K |
| Est. per Skill | N/A (shared across 21 skills from this repo) |
| Difficulty | Intermediate |
| Risk Level | N/A |
Related Skills
writing-beats
The user has passed (or will pass) a markdown file of raw material. If the user did not say where to
copywriting
Copywriting Purpose Produce clear, credible, and action-oriented marketing copy that aligns with use
beautiful-prose
Beautiful Prose (Claude Skill) A hard-edged writing skill for producing timeless, forceful English p
blog-writing-guide
Sentry Blog Writing Skill This skill enforces Sentry's blog writing standards across every post — wh
Works Well With
Skills from the same repository — often designed to work together
baoyu-article-illustrator
Article Illustrator Analyze articles, identify illustration positions, generate images with Type × S
baoyu-comic
Knowledge Comic Creator Create original knowledge comics with flexible art style × tone combinations
baoyu-compress-image
Image Compressor Compresses images using best available tool (sips → cwebp → ImageMagick → Sharp). S