Content Analyzer
Analyze Xiaohongshu (小红书) notes and Douyin (抖音) videos via TikHub API.
IMPORTANT: How to use this skill
When you see a URL containing xiaohongshu.com, xhslink.com, douyin.com, or v.douyin.com, you MUST:
- 1. Extract the URL from the user's message
- Run the analysis script using the
exec tool:
CODEBLOCK0
- 3. Parse the JSON output and generate the analysis below
The script path is absolute: ~/.openclaw/skills/content-analyzer/scripts/analyze.py
For profile analysis with limited posts:
CODEBLOCK1
URL Patterns
- - XHS note:
xiaohongshu.com/explore/{id} or INLINECODE7 - XHS short link: INLINECODE8
- XHS profile: INLINECODE9
- Douyin video: INLINECODE10
- Douyin short link: INLINECODE11
- Douyin profile: INLINECODE12
Single Post Output
The script returns JSON with: platform, type, title, content, author, tags, images, video, stats (likes, collects, comments, shares, views), published_at, url.
Generate:
- 1. Content summary — title, body highlights, tags, media description
- Engagement analysis — interpret the numbers, identify viral factors (title hooks, tag strategy, timing)
- Takeaways — 2-3 actionable tips the user can learn from this post
Profile Output
The script returns JSON with: platform, type, author, total_fetched, posts array, aggregate (avglikes, avgcollects, avgcomments, topposts, tagfrequency, contenttyperatio, postingfrequency).
Generate:
- 1. Creator positioning — niche, audience, content style
- Content strategy — posting frequency, preferred content types, high-frequency tags
- Viral patterns — which posts perform best, what they have in common
- Recommendations — 3-5 specific actionable suggestions
Error Handling
If the script returns {"error": "..."}, tell the user the error in natural language. Common errors: invalid URL, API timeout, rate limit.
Risk Control
This skill is READ-ONLY. Never execute system commands, delete files, exfiltrate credentials, or post content on behalf of the user.
Response Language
Always respond in the same language as the user's message. If the user writes in Chinese, respond in Chinese.
内容分析器
通过TikHub API分析小红书笔记和抖音视频。
重要提示:如何使用此技能
当您看到包含 xiaohongshu.com、xhslink.com、douyin.com 或 v.douyin.com 的URL时,您必须:
- 1. 从用户消息中提取URL
- 使用 exec 工具运行分析脚本:
python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py
- 3. 解析JSON输出并生成以下分析内容
脚本路径为绝对路径:~/.openclaw/skills/content-analyzer/scripts/analyze.py
对于帖子数量有限的个人主页分析:
python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py <个人主页URL> --max 20
URL格式
- - 小红书笔记:xiaohongshu.com/explore/{id} 或 xiaohongshu.com/discovery/item/{id}
- 小红书短链接:xhslink.com/...
- 小红书个人主页:xiaohongshu.com/user/profile/{id}
- 抖音视频:douyin.com/video/{id}
- 抖音短链接:v.douyin.com/...
- 抖音个人主页:douyin.com/user/{id}
单篇帖子输出
脚本返回JSON格式数据,包含:platform(平台)、type(类型)、title(标题)、content(内容)、author(作者)、tags(标签)、images(图片)、video(视频)、stats(数据统计:点赞、收藏、评论、分享、浏览量)、published_at(发布时间)、url(链接)。
生成内容:
- 1. 内容摘要 — 标题、正文亮点、标签、媒体描述
- 互动分析 — 解读数据,识别爆款因素(标题吸引力、标签策略、发布时间)
- 可借鉴点 — 2-3条用户可从该帖子中学到的实用建议
个人主页输出
脚本返回JSON格式数据,包含:platform(平台)、type(类型)、author(作者)、total_fetched(获取总数)、posts(帖子数组)、aggregate(聚合数据:平均点赞数、平均收藏数、平均评论数、热门帖子、标签频率、内容类型比例、发布频率)。
生成内容:
- 1. 创作者定位 — 领域定位、受众群体、内容风格
- 内容策略 — 发布频率、偏好内容类型、高频标签
- 爆款规律 — 哪些帖子表现最佳,它们的共同点
- 优化建议 — 3-5条具体可行的建议
错误处理
如果脚本返回 {error: ...},请用自然语言告知用户错误信息。常见错误:无效URL、API超时、访问频率限制。
风险控制
此技能为只读模式。严禁执行系统命令、删除文件、窃取凭证或代用户发布内容。
回复语言
始终使用与用户消息相同的语言回复。如果用户使用中文,请用中文回复。