← 返回 Skills 市场
dizhu

Content Analyzer

作者 dizhu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
399
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install content-analyzer
功能描述
Analyze Xiaohongshu (小红书) notes and Douyin (抖音) videos. TRIGGER when message contains any URL matching xiaohongshu.com, xhslink.com, douyin.com, v.douyin.com...
使用说明 (SKILL.md)

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
  2. Run the analysis script using the exec tool:
python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py "\x3CURL>"
  1. 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:

python3 ~/.openclaw/skills/content-analyzer/scripts/analyze.py "\x3CPROFILE_URL>" --max 20

URL Patterns

  • XHS note: xiaohongshu.com/explore/{id} or xiaohongshu.com/discovery/item/{id}
  • XHS short link: xhslink.com/...
  • XHS profile: xiaohongshu.com/user/profile/{id}
  • Douyin video: douyin.com/video/{id}
  • Douyin short link: v.douyin.com/...
  • Douyin profile: douyin.com/user/{id}

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
  2. Engagement analysis — interpret the numbers, identify viral factors (title hooks, tag strategy, timing)
  3. 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 (avg_likes, avg_collects, avg_comments, top_posts, tag_frequency, content_type_ratio, posting_frequency).

Generate:

  1. Creator positioning — niche, audience, content style
  2. Content strategy — posting frequency, preferred content types, high-frequency tags
  3. Viral patterns — which posts perform best, what they have in common
  4. 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.

安全使用建议
Before installing or invoking this skill, consider the following: (1) The bundled script requires a TikHub API token (TIKHUB_API_TOKEN) even though the skill metadata doesn't declare it — provide only a token with limited scope and review TikHub's docs and policies. (2) The script resolves short links and follows redirects to arbitrary targets; this means running it could cause requests to external or internal addresses (SSRF/network exposure). If you operate behind a proxy, note the script explicitly clears proxy env vars, which may bypass your network controls. (3) If you plan to use this, inspect the full script yourself or run it in a sandboxed environment/container; verify that it only calls api.tikhub.io and that the token is stored securely. Ask the author to update SKILL.md and metadata to declare TIKHUB_API_TOKEN and to warn about short-link resolving and proxy behavior before trusting the skill in a sensitive environment.
功能分析
Type: OpenClaw Skill Name: content-analyzer Version: 1.0.0 The content-analyzer skill is designed to fetch and summarize social media data from Xiaohongshu and Douyin using the TikHub API (api.tikhub.io). The Python script (scripts/analyze.py) correctly implements URL parsing, short-link resolution, and data aggregation, while the SKILL.md provides clear, non-malicious instructions for the AI agent. The script's access to ~/.openclaw/openclaw.json is limited to retrieving its own API token, and no evidence of data exfiltration, command injection, or unauthorized system modification was found.
能力评估
Purpose & Capability
The skill's purpose is to analyze Xiaohongshu and Douyin content via the TikHub API, which aligns with the code's HTTP calls to api.tikhub.io. However, SKILL.md declares no required credentials or config, while the script reads a TikHub token from the TIKHUB_API_TOKEN environment variable or from ~/.openclaw/openclaw.json. The missing declaration is an incoherence: a TikHub token is necessary for the stated purpose but not declared in the skill metadata.
Instruction Scope
SKILL.md tells the agent to execute the bundled script at an absolute path. The script will (1) resolve short links by following redirects to arbitrary final URLs and (2) make outbound HTTP requests to TikHub endpoints. Resolving arbitrary short links means the skill will initiate requests to user-provided URLs (possible SSRF/network scanning of internal hosts). The SKILL.md's 'Risk Control' claims read-only behavior, but it does not warn about following redirects to arbitrary domains or the network implications of clearing proxy env vars.
Install Mechanism
There is no external install/download step — this is an instruction-only skill with a bundled Python script. No external archives or unknown installers are fetched during install, which lowers supply-chain risk. The script is run locally from the skill path.
Credentials
The script requires a TikHub API token (TIKHUB_API_TOKEN) but the skill metadata lists no required env vars or primary credential. The script also attempts to read ~/.openclaw/openclaw.json to find a token, which accesses a user config file not declared in the metadata. Additionally, the script clears common proxy environment variables before making requests, which overrides user or sysadmin proxy settings and can bypass monitoring controls.
Persistence & Privilege
The skill is not marked 'always: true' and does not request persistent system privileges. It executes a local script when invoked. The only noteworthy behavior is that the script clears proxy-related environment variables in its process, which affects outbound networking for that execution but does not persist changes to the system.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install content-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /content-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
小红书、抖音内容分析,支持单贴分析和创作者账号画像
元数据
Slug content-analyzer
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Content Analyzer 是什么?

Analyze Xiaohongshu (小红书) notes and Douyin (抖音) videos. TRIGGER when message contains any URL matching xiaohongshu.com, xhslink.com, douyin.com, v.douyin.com... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 399 次。

如何安装 Content Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install content-analyzer」即可一键安装,无需额外配置。

Content Analyzer 是免费的吗?

是的,Content Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Content Analyzer 支持哪些平台?

Content Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Content Analyzer?

由 dizhu(@dizhu)开发并维护,当前版本 v1.0.0。

💬 留言讨论