baoyu-post-to-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 "微博头条文章".
This skill automates the process of publishing to Weibo by leveraging Chrome CDP to interact with the Weibo website directly. It handles authentication using stored browser sessions, ensuring reliable and secure posting without manual login each time. The skill is designed for flexibility, allowing both simple text/image posts and complex formatted articles.
Requirements
- Node.js 18 or later
- Chrome or Chromium browser installed on the system
- Existing Weibo login session in Chrome for authentication
- Environment variables or configuration for image/video file paths (if needed)
Usage
When invoked by an AI agent, the skill receives parameters:
text: The post content (required for regular posts)images: An array of local file paths or URLs for images (optional)video: A local file path or URL for video (optional)isArticle: Boolean to indicate headline article mode (default: false)markdownContent: Markdown text for headline articles (required if isArticle is true)
The agent will open Chrome, navigate to Weibo, authenticate via saved session, fill in the content, and publish.
Example
User: "发一条微博,配图太阳.jpg"
Agent: [Calls jimliu/baoyu-post-to-weibo with text: "今天天气真好!", images: ["太阳.jpg"]]
Configuration
No additional API keys or tokens are needed. The skill relies on the user's existing Chrome session with Weibo login. Ensure the CHROME_PATH environment variable points to your Chrome executable if it is not in the default location.