mcpField
X
xhs-analyze

xhs-analyze

github.com/chenxiachanProductivity42754 installsUpdated 11w ago
Repository

About xhs-analyze

xhs-analyze analyzes saved Xiaohongshu posts for people who want to organize topics, knowledge, or tutorial steps. It can filter notes by keyword or review the collection as a whole to summarize themes and areas of interest.

Key features

  1. 01Read saved Markdown notes
  2. 02Search filenames and content by keyword
  3. 03Extract key steps from tutorials
  4. 04Organize knowledge and summarize themes

Use cases

  1. 01Combine steps from multiple guides
  2. 02Organize key points from educational posts
  3. 03Review collection themes and areas of interest

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/chenxiachan/xhs-claude-skills --skill xhs-analyze

After installing, type/xhs-analyzein Claude Code to confirm it loaded.

Details

From the project README

用户希望对已提取的小红书收藏做 AI 分析。

常量定义

  • Obsidian 保存目录: ~/Documents/Obsidian Vault/xhs

输入

用户查询: $ARGUMENTS

流程

步骤 1:加载数据

读取 <Obsidian 保存目录> 下所有 .md 文件(排除 img/video 子目录)。

如果用户指定了关键词,在文件名和内容中搜索匹配的帖子。 如果参数为空,读取全部帖子进行总览分析。

步骤 2:AI 分析

根据内容类型和用户意图,选择合适的分析方式:

如果是教程/攻略类内容:

  • 提炼核心步骤为编号清单
  • 如有多篇同类内容,做对比总结

如果是知识/科普类内容:

  • 提炼关键知识点
  • 整理为结构化笔记

总览分析(无参数时):

  • 收藏内容的主题分布
  • 高频标签和关注领域
  • 推荐可以深入整理的主题
步骤 3:输出格式

用清晰的中文 Markdown 格式输出分析结果。

Comments

Markdown supported