Task Objectives
- This skill is used for: an intelligent full process from content acquisition to multi-platform publishing
- Capabilities include:
- Automatically identify user requirement scenarios
- Intelligently orchestrate skill invocation chains
- Web content collection and conversion
- Intelligent image matching for articles
- Xiaohongshu graphic-text generation
- Trending content creation
- Automatic multi-platform publishing
- Trigger condition: the user raises a content creation or publishing related need
Core Features
1. Intelligent Scenario Recognition
The system automatically analyzes user input and identifies the following scenarios:
| Scenario Code | Scenario Name | Trigger Keywords | Skill Chain |
|---|---|---|---|
| A1 | Collect and Publish | "collect + publish", "scrape + push" | url-to-markdown → format → illustrator → publish |
| A2 | Collect and Add Images | "collect + add images", "scrape + insert images" | url-to-markdown → illustrator |
| A3 | Collect and Convert to Xiaohongshu | "collect + Xiaohongshu", "web page to Xiaohongshu" | url-to-markdown → xhs-images |
| B1 | Trending Article Generation | "trending + article", "viral + WeChat Official Account" | wechat-hotspot-publisher |
| B2 | Trending Graphic-Text Generation | "trending + Xiaohongshu", "viral + graphic-text" | wechat-hotspot → xhs-images |
| B3 | Trending Multi-Platform Publishing | "trending + multi-platform" | wechat-hotspot → multi-publish |
| C1 | Article Image Matching | "add images", "insert images", "add pictures" | article-illustrator |
| C2 | Convert to Xiaohongshu Graphic-Text | "convert to Xiaohongshu", "generate graphic-text" | xhs-images |
| C3 | Multi-Platform Publishing | "publish to", "push to" | format → publish |
| D1 | Collect Web Page Only | "collect", "scrape", "save web page" | url-to-markdown |
| D2 | Add Images Only | "add images" (standalone) | article-illustrator |
| D3 | Xiaohongshu Graphic-Text Only | "Xiaohongshu graphic-text" (standalone) | xhs-images |
| D4 | Publish Only | "publish" (standalone) | publish |
For detailed recognition rules, see:references/scenario-detection.md
2. Automatic Parameter Collection
The system automatically collects required parameters according to the scenario:
- URL: web page address (for collection scenarios)
- Keywords: trending topic keywords (for trending scenarios)
- File Path: Markdown file path (for optimization scenarios)
- Platform List: target publishing platforms (WeChat/Xiaohongshu/X/Bilibili)
- Style Preference: Xiaohongshu graphic-text style (optional)
- Whether Login Is Required: whether the web page requires login (optional)
3. Real-Time Progress Feedback
Progress is fed back in real time during execution:
✓ 场景识别:A1 - 采集并发布
✓ 参数收集完成
→ 步骤1/4:采集网页内容...
✓ 步骤1/4:内容已采集(3500字)
→ 步骤2/4:格式优化...
✓ 步骤2/4:格式已优化
→ 步骤3/4:生成配图...
✓ 步骤3/4:已生成3张配图
→ 步骤4/4:发布到微信公众号...
✓ 步骤4/4:已推送到草稿箱
✅ 任务完成!
Operation Steps
Standard Process
-
User describes the requirement
- The user describes the task to be completed in natural language
- Example: "Collect this article and publish it to the WeChat Official Account"
-
Scenario Recognition
- The system analyzes the user input and identifies the scenario code
- Determine the skill chain to be invoked
- Reference:references/scenario-detection.md
-
Parameter Collection
- The system extracts parameters from the user input (URL, keywords, etc.)
- If anything is missing, ask the user to provide it
- Confirm that all required parameters have been collected
-
Workflow Execution
- Execute each step in the order of the skill chain
- Provide progress feedback after each step is completed
- Use the output of the previous step as the input of the next step
- Reference:references/workflow-templates.md
-
Result Summary
- Display the final result
- Provide the file path or publishing link
- Ask whether adjustments are needed
Optional Branches
Branch A: The user is unsure of the requirement
- The system displays the list of available scenarios
- The user selects or describes the specific requirement
- The system executes the corresponding workflow based on the selection
Branch B: Incomplete parameters
- The system lists the missing parameters
- The user provides the missing parameters
- Continue executing the workflow
Branch C: Execution failed
- The system reports the reason for the failure
- Provide suggested solutions
- Ask whether to retry or adjust the parameters
Scenario Details
Scenario A: Web Content Collection and Recreation
A1: Collect and Publish
User Requirement: "Collect this article and publish it to the WeChat Official Account"
Execution Flow:
- Use
baoyu-url-to-markdownto collect web content - Use
baoyu-format-markdownto optimize the format - Use
article-illustratorto generate accompanying images - Use
wechat-publisherto publish to the WeChat draft box
Output:
- The optimized Markdown file
- Accompanying image files (imgs/ directory)
- WeChat draft box link
A2: Collect and Add Images
User Requirement: "Collect this article and add images"
Execution Flow:
- Use
baoyu-url-to-markdownto collect web content - Use
article-illustratorto generate accompanying images
Output:
- Markdown file with accompanying images
- Accompanying image files (imgs/ directory)
A3: Collect and Convert to Xiaohongshu
User Requirement: "Convert this webpage into Xiaohongshu image-text content"
Execution Flow:
- Use
baoyu-url-to-markdownto collect web content - Use
baoyu-xhs-imagesto generate Xiaohongshu image-text content
Output:
- Xiaohongshu image-text series (1-10 images)
- Analysis document and outline
Scenario B: Hot Topic Content Creation
B1: Hot Topic Article Generation
User Requirement: "Generate a WeChat Official Account article based on AI hot topics"
Execution Flow:
- Use
wechat-hotspot-publisherto collect hot topics and generate an article - Automatically generate the title, cover, accompanying images, and tags
- Push to the WeChat Official Account draft box
Output:
- Complete HTML-formatted article
- WeChat Draft Box link
B2: Hot Topic Image-Text Generation
User Request: "Generate Xiaohongshu image-text based on AI hot topics"
Execution Flow:
- Use
wechat-hotspot-publisherto collect hot topics and generate content - Use
baoyu-xhs-imagesto convert to Xiaohongshu image-text
Output:
- Xiaohongshu image-text series (1-10 images)
- Original article content
B3: Hot Topic Multi-Platform Publishing
User Request: "Generate content based on AI hot topics, publish to WeChat and Xiaohongshu"
Execution Flow:
- Use
wechat-hotspot-publisherto collect hot topics and generate articles - Use
baoyu-xhs-imagesto convert to Xiaohongshu image-text - Publish to each platform separately
Output:
- WeChat Official Account Draft Box link
- Xiaohongshu image-text series
- Publishing status for each platform
Scenario C: Original Content Optimization and Publishing
C1: Article Illustrations
User Request: "Add illustrations to this article"
Execution Flow:
- Use
article-illustratorto analyze the article and generate illustrations
Output:
- Markdown file with illustrations
- Illustration files (imgs/ directory)
C2: Convert to Xiaohongshu Image-Text
User Request: "Convert this article to Xiaohongshu image-text"
Execution Flow:
- Use
baoyu-xhs-imagesto generate Xiaohongshu image-text
Output:
- Xiaohongshu image-text series (1-10 images)
- Analysis document and outline
C3: Multi-Platform Publishing
User Request: "Publish this article to WeChat and X"
Execution Flow:
- Use
baoyu-format-markdownto optimize formatting - Publish to each platform separately
Output:
- Publishing status and links for each platform
Scenario D: Single Function Call
D1: Collect Webpage Only
User Request: "Collect this webpage"
Execution Flow:
- Use
baoyu-url-to-markdownto collect webpage content
Output:
- Markdown file
D2: Illustrations Only
User Request: "Add illustrations to the article"
Execution Flow:
- Use
article-illustratorto generate illustrations
Output:
- Markdown file with illustrations
- Illustration files
D3: Xiaohongshu Image-Text Only
User Request: "Generate Xiaohongshu image-text"
Execution Flow:
- Use
baoyu-xhs-imagesto generate image-text
Output:
- Xiaohongshu image-text series
D4: Publish Only
User Request: "Publish to WeChat"
Execution Flow:
- Use the corresponding platform's publishing skill
Output:
- Publishing status and links
Resource Index
Core Documents
- Scenario Recognition Rules - Detailed scenario recognition algorithms and rules
- Workflow Templates - Complete workflow definitions for each scenario
- Skill Integration Instructions - Invocation methods and parameter descriptions for sub-skills
- Platform Configuration Instructions - Configuration requirements and precautions for each platform
- Quick Reference Card - Quick lookup for common scenarios and commands
- Troubleshooting Guide - Common issues and solutions
Usage Examples
- Scenario A1 Example - Complete example of collecting and publishing
- Scenario B1 Example - Complete example of trending article generation
- Scenario C2 Example - Complete example of converting to Xiaohongshu image-text
Sub-skill Documentation
- baoyu-url-to-markdown
- article-illustrator
- baoyu-xhs-images
- wechat-hotspot-publisher
- content-creation-publisher
Prerequisites
Environment Dependencies
# 检查Node.js
node --version
# 检查Chrome
chrome --version
# 检查Python
python --version
Account Preparation
-
WeChat Official Account(Optional)
- Registered Official Account
- or configure API credentials
-
X/Twitter Account(Optional)
- Registered X account
- Stay logged in in the browser
-
Xiaohongshu Account(Optional)
- Registered Xiaohongshu account
-
Bilibili Account(Optional)
- Registered Bilibili account
Configuration File (Optional)
# 创建配置文件
~/.baoyu-skills/.env
# 配置内容(可选)
WECHAT_APP_ID=your_app_id
WECHAT_APP_SECRET=your_app_secret
Usage Examples
Example 1: Collect articles and publish to WeChat
用户:"采集这篇文章并发布到微信公众号"
URL: https://example.com/article
系统识别:场景A1
执行流程:
✓ 场景识别:A1 - 采集并发布
✓ 参数收集:URL已获取
→ 步骤1/4:采集网页内容...
✓ 步骤1/4:内容已采集(3500字)
→ 步骤2/4:格式优化...
✓ 步骤2/4:格式已优化
→ 步骤3/4:生成配图...
✓ 步骤3/4:已生成3张配图
→ 步骤4/4:发布到微信公众号...
✓ 步骤4/4:已推送到草稿箱
✅ 任务完成!
文件:url-to-markdown/example.com/article.md
配图:imgs/illustration-*.png(3张)
微信:已推送到草稿箱,请登录后台查看
Example 2: Trending content creation and multi-platform publishing
用户:"根据AI热点生成一篇文章,发布到微信和小红书"
系统识别:场景B3
执行流程:
✓ 场景识别:B3 - 热点多平台发布
→ 收集参数:请提供关键词
用户:"AI工具"
✓ 参数收集:关键词已获取
→ 步骤1/3:采集热点并生成文章...
✓ 步骤1/3:已生成文章《AI工具的未来:10个必知趋势》
→ 步骤2/3:转换为小红书图文...
✓ 步骤2/3:已生成5张小红书图文
→ 步骤3/3:多平台发布...
✓ 步骤3/3:发布完成
✅ 任务完成!
微信:已推送到草稿箱
小红书:图文已生成(5张),请手动发布
文件:xhs-images/ai-tools/01-cover.png 至 05-ending.png
Example 3: Article illustrations
用户:"给这篇文章配图"
文件:article.md
系统识别:场景C1
执行流程:
✓ 场景识别:C1 - 文章配图
✓ 参数收集:文件路径已获取
→ 步骤1/1:分析文章并生成配图...
✓ 步骤1/1:已生成4张配图
✅ 任务完成!
文件:article.md(已更新)
配图:imgs/illustration-*.png(4张)
配图位置:第2、4、6、8段后
Example 4: Web page to Xiaohongshu
用户:"把这个网页转成小红书图文"
URL: https://example.com/tutorial
系统识别:场景A3
执行流程:
✓ 场景识别:A3 - 采集转小红书
✓ 参数收集:URL已获取
→ 步骤1/2:采集网页内容...
✓ 步骤1/2:内容已采集(2800字)
→ 步骤2/2:生成小红书图文...
✓ 步骤2/2:已生成6张小红书图文
✅ 任务完成!
文件:xhs-images/tutorial/01-cover.png 至 06-ending.png
风格:notion(知识卡片风格)
布局:dense(高信息密度)
Precautions
1. Scenario Recognition
- The system will identify the scenario as accurately as possible, but user confirmation may be required
- If the identification is inaccurate, the user can explicitly specify the scenario
- Complex requirements may need to be split into multiple scenarios
2. Parameter Collection
- The system will automatically extract parameters from user input
- Missing parameters will be actively asked from the user
- Users can provide all parameters at once when describing the requirement
3. Execution Efficiency
- A complete workflow may take 3-10 minutes
- The system will provide real-time progress feedback
- Execution can be interrupted at any time
4. Platform Limitations
- Publishing to WeChat Official Account requires account login
- Xiaohongshu image-text requires manual upload
- Publishing to X/Twitter requires browser login status
5. Content Quality
- Manual review of content before publishing is recommended
- Ensure compliance with platform specifications
- Pay attention to copyright and originality
6. Technical Limitations
- Some websites may have anti-crawler mechanisms
- The network environment may affect collection and publishing
- Chrome dependencies may affect some features
Advanced Features
Custom Workflow
Users can customize the skill invocation order:
用户:"采集这篇文章,先配图,再转小红书,最后发布到微信"
系统识别:自定义工作流
执行流程:
1. baoyu-url-to-markdown(采集)
2. article-illustrator(配图)
3. baoyu-xhs-images(转小红书)
4. wechat-publisher(发布)
Batch Processing
Supports batch processing of multiple content items:
用户:"采集这5篇文章并发布到微信"
URLs: [url1, url2, url3, url4, url5]
系统识别:批量场景A1
执行流程:
对每个URL执行场景A1工作流
Scheduled Publishing
Supports setting scheduled publishing:
用户:"采集这篇文章,明天上午10点发布到微信"
系统识别:场景A1 + 定时发布
执行流程:
1. 立即执行采集和配图
2. 设置定时任务,明天10点发布
Troubleshooting
Issue 1: Scene Recognition Error
Symptoms: The scene recognized by the system does not match the user's intent
Solution:
- The user explicitly specifies the scene code (e.g., "execute scene A1")
- The user describes the requirement in more detail
- Check the scene recognition rules documentation
Issue 2: Parameter Collection Failure
Symptoms: The system cannot extract the required parameters
Solution:
- The user explicitly provides the parameters in the description
- Answer the system's parameter inquiry
- Check whether the parameter format is correct
Issue 3: Skill Invocation Failure
Symptoms: A certain skill fails to execute
Solution:
- Check the error message
- Check whether the environment dependencies are satisfied
- Check the troubleshooting documentation for the corresponding skill
- Try invoking the skill separately for testing
Issue 4: Publishing Failure
Symptoms: Content cannot be published to the platform
Solution:
- Check the account login status
- Confirm that the content complies with platform specifications
- Check the network connection
- Check the platform configuration documentation
Issue 5: Execution Timeout
Symptoms: The workflow execution takes too long
Solution:
- Check the network connection
- Simplify the workflow (reduce steps)
- Process content in batches
- Increase the timeout setting
Changelog
v1.0.0(2026-02-09)
- ✅ Created the intelligent content creation and publishing system
- ✅ Integrated 5 core skills
- ✅ Implemented support for 14 scenes
- ✅ Supports 4 publishing platforms
- ✅ Provides intelligent scene recognition
- ✅ Implemented automatic parameter collection
- ✅ Provides real-time progress feedback
🚀 Complete the entire process from content acquisition to multi-platform publishing in one sentence!