JavaScript is disabled. Some features may not work.
baoyu-post-to-weibo — ★ 22.3K GitHub Stars — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

baoyu-post-to-weibo

★ 22K repowritingN/AIntermediateClaude
🤖 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
SourceJimLiu/baoyu-skills
SKILL.mdView on GitHub →
Repo Stars★ 22.3K
Est. per SkillN/A (shared across 21 skills from this repo)
DifficultyIntermediate
Risk LevelN/A

Related Skills

Works Well With

Skills from the same repository — often designed to work together