chenxiachan/xhs-batch
批量提取小红书帖子,整理为本地 Markdown 知识库
npx skills add https://github.com/chenxiachan/xhs-claude-skills --skill xhs-batch
用户希望批量提取多个小红书帖子。请按以下步骤处理:
~/cookies.json~/Documents/Obsidian Vault/xhsmlx-community/whisper-large-v3-turbo用户提供的链接列表: $ARGUMENTS
从输入中提取所有小红书链接(支持多行、空格分隔、逗号分隔)。
每个链接提取帖子 ID 和 xsec_token。
检查 ~/cookies.json 是否存在。如不存在,按 /xhs 的步骤 0 引导用户导出。
对每个链接,执行 /xhs 的完整提取流程(步骤 2-4):
{YYYY-MM-DD} {短标题}.md每个帖子之间间隔 3 秒,避免触发反爬。
全部完成后,输出简短汇总:
Take chenxiachan/xhs-batch from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.