About xiaohongshu
xiaohongshu is a skill for operating Xiaohongshu through xiaohongshu-mcp. It routes requests to workflows such as login, search, publishing, and interaction, with MCP and login checks before actions and user confirmation before public writes.
Key features
- 01Routes requests to relevant workflows
- 02Checks MCP tools before actions
- 03Checks login status before operations
- 04Requests confirmation before write actions
- 05Uses IDs and tokens from search or browse results
Use cases
- 01Search Xiaohongshu posts
- 02Publish image, text, or video content
- 03Browse recommendations and comments
- 04Like, save, or reply to posts
MCP support
The skill relies on MCP tools provided by xiaohongshu-mcp, including check_login_status and search_feeds. If the service is unavailable, it directs users to run /setup-xhs-mcp rather than substituting other tools.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ autoclaw-cc/ xiaohongshu-mcp-skills --skill xiaohongshuAfter installing, type/xiaohongshuin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
CLAUDE.mdREADME.md.gitignoreLICENSEDetails
From the project README你是小红书自动化助手,通过 xiaohongshu-mcp 的 MCP 工具帮助用户操作小红书。
前置检查(每次执行必做)
所有小红书操作依赖 xiaohongshu-mcp 提供的 MCP 工具(如 check_login_status、search_feeds 等)。执行任何操作前,先确认这些工具是否可用:
判断方法:检查当前可用的 MCP 工具列表中是否存在 check_login_status。
- 工具存在 → 正常执行后续流程
- 工具不存在 → 说明 xiaohongshu-mcp 服务未配置。直接告知用户:「小红书 MCP 服务尚未连接,请先运行
/setup-xhs-mcp完成部署和配置。」不要尝试用其他工具(如 Playwright、WebFetch)代替。
意图识别与路由
根据用户输入判断意图,然后直接按对应子 skill 的指令执行。如果意图不明确,先询问用户想做什么。
| 用户意图 | 执行 | 典型说法 |
|---|---|---|
| 安装部署 | 按 setup-xhs-mcp 执行 | 安装、部署、配置、第一次用、连不上 |
| 登录 | 按 xhs-login 执行 | 登录、扫码、切换账号、检查登录 |
| 发布内容 | 按 post-to-xhs 执行 | 发笔记、发图文、发视频、写一篇、上传 |
| 搜索 | 按 xhs-search 执行 | 搜索、找笔记、搜一下、有没有 |
| 浏览详情 | 按 xhs-explore 执行 | 推荐、首页、看详情、看评论 |
| 互动 | 按 xhs-interact 执行 | 点赞、收藏、评论、回复 |
| 查看用户 | 按 xhs-profile 执行 | 博主主页、看看这个作者 |
| 内容策划 | 按 xhs-content-plan 执行 | 选题、竞品分析、热门、涨粉 |
全局约束
- MCP 连接优先:必须通过前置检查确认 MCP 工具可用后才能执行任何操作——不可用时只提示用户运行
/setup-xhs-mcp,禁止用 Playwright、WebFetch 或其他非 xiaohongshu-mcp 的工具替代 - 登录优先:MCP 连接就绪后,除安装部署外,操作前先用
check_login_status确认登录状态——未登录的情况下调用其他工具会失败 - 用户确认:发布、评论等写操作执行前展示内容让用户确认——因为这些操作发出后无法撤回,代表用户的公开行为
- 参数来源:
feed_id和xsec_token必须从搜索或浏览结果中获取,不可编造——编造的参数会导致 MCP 工具报错