Skill
Content
Skill
/xhs-batch
批量提取小红书帖子,整理为本地 Markdown 知识库
Install
$ npx -y skills add chenxiachan/xhs-claude-skills --skill xhs-batch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/xhs-batch
Context preview
The summary Claude sees to decide when to auto-load this skill.
批量提取小红书帖子,整理为本地 Markdown 知识库
SKILL.md
xhs-batch.SKILL.mdname: xhs-batch description: 批量提取小红书帖子,整理为本地 Markdown 知识库 user-invocable: true argument-hint: <链接1> <链接2> ... 或粘贴多行链接 allowed-tools: Bash, Read, Write, Edit, Glob, Grep
用户希望批量提取多个小红书帖子。请按以下步骤处理:
常量定义
- Cookies 文件: `~/cookies.json`
- Obsidian 保存目录: `~/Documents/Obsidian Vault/xhs`
- Whisper 模型: `mlx-community/whisper-large-v3-turbo`
输入
用户提供的链接列表: $ARGUMENTS
流程
步骤 1:解析链接
从输入中提取所有小红书链接(支持多行、空格分隔、逗号分隔)。 每个链接提取帖子 ID 和 xsec_token。
步骤 2:检查 Cookies
检查 `~/cookies.json` 是否存在。如不存在,按 `/xhs` 的步骤 0 引导用户导出。
步骤 3:逐个提取
对每个链接,执行 `/xhs` 的完整提取流程(步骤 2-4):
- 请求页面 → 解析 __INITIAL_STATE__
- 视频帖子做语音转录
- 按 Peter Thiel 风格整理
- 保存为 `{YYYY-MM-DD} {短标题}.md`
每个帖子之间间隔 3 秒,避免触发反爬。
步骤 4:汇总报告
全部完成后,输出简短汇总:
- 成功/失败数量
- 每个帖子的文件名和一句话摘要
Ships withrednote-to-obsidian
中文 | English 一个 Claude Code 插件,把小红书帖子一键提取为简洁的 Obsidian 笔记。支持图文和视频帖子——视频优先使用平台内嵌字幕,无字幕时回退到本地 Whisper 转录;图文帖子支持 OCR 识别图片中的文字内容。不需要 MCP 服务、无头浏览器或任何后端,只用 cookies + HTTP + Claude 多模态。
Get the whole plugin
Stats
424
Stars
40
Forks
Maintained
Maintenance
MIT
License
2mo ago
Last commit
6mo ago
Created
2d ago
Added

