Skip to main content
ClaudeWave
Skill340 repo starsupdated 1mo ago

xhs-analyze

The xhs-analyze skill processes saved Xiaohongshu (Little Red Book) posts from an Obsidian vault directory and performs AI-driven analysis including summarization, comparison, and synthesis. Use this skill when you need to extract core steps from tutorial content, identify key knowledge points from educational posts, compare multiple articles on the same topic, or generate an overview of collected content themes and frequently appearing tags.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/chenxiachan/xhs-claude-skills /tmp/xhs-analyze && cp -r /tmp/xhs-analyze/skills/xhs-analyze ~/.claude/skills/xhs-analyze
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

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

## 常量定义
- Obsidian 保存目录: `~/Documents/Obsidian Vault/xhs`

## 输入
用户查询: $ARGUMENTS

## 流程

### 步骤 1:加载数据
读取 `<Obsidian 保存目录>` 下所有 `.md` 文件(排除 img/video 子目录)。

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

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

**如果是教程/攻略类内容:**
- 提炼核心步骤为编号清单
- 如有多篇同类内容,做对比总结

**如果是知识/科普类内容:**
- 提炼关键知识点
- 整理为结构化笔记

**总览分析(无参数时):**
- 收藏内容的主题分布
- 高频标签和关注领域
- 推荐可以深入整理的主题

### 步骤 3:输出格式
用清晰的中文 Markdown 格式输出分析结果。