baoyu-post-to-weibo
하는 일
이 스킬은 브라우저에서 Weibo 글이나 헤드라인 기사를 채워 넣어 검토할 수 있게 합니다. Weibo에 글을 올리는 시간을 줄이고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓이미지나 동영상이 있는 텍스트 글을 Weibo에 공유하고 싶을 때.
- ✓마크다운 파일을 Weibo 헤드라인 기사로 게시하고 싶을 때.
- ✓Weibo 편집기에 직접 옮겨 붙이는 수고를 줄이고 싶을 때.
스킬 링크
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-post-to-weibo/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 글과 사진 두 장을 Weibo에 올려서 제가 검토할 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 브라우저 연결을 통해 크롬을 열고, 내용을 채워 넣습니다. 마지막 게시 단계는 사용자가 직접 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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.
자주 묻는 질문
자동으로 게시되나요?
아니요. 스크립트는 내용만 채워 넣으며, 게시는 사용자가 검토한 뒤 직접 합니다.
로그인해야 하나요?
처음에는 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 "微博头条文章".
repo: JimLiu/baoyu-skills
인기도
- GitHub 스타
- 27k
- 순위
- #9961
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
release-skills
27k버전 올리기, 변경 로그 업데이트, GitHub 릴리스나 태그 게시까지, 모든 프로젝트의 릴리스 과정을 에이전트가 안내하도록 합니다.
baoyu-article-illustrator
27k독자에게 도움이 되는 위치를 찾아 글에 삽화를 넣고, 같은 스타일로 그림을 만들도록 에이전트를 돕습니다.
baoyu-comic
27k주제를 설명하는 패널, 그림 스타일, 톤을 갖춘 교육용 만화를 만드는 방법을 에이전트에게 보여 줍니다. 전기나 튜토리얼 같은 형식이 가능합니다.
baoyu-compress-image
27k이미지를 WebP나 PNG로 바꿔 파일 크기를 줄이고, 도구를 자동으로 골라 더 빠르게 불러오도록 에이전트를 돕습니다.