/xhs-interact
对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。
$ npx -y skills add autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-interact --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-interact
Context preview
The summary Claude sees to decide when to auto-load this skill.
对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。
SKILL.md
xhs-interact.SKILL.mdname: xhs-interact description: | 对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。
输入判断
根据用户意图路由:
- 点赞/取消点赞 → 点赞流程
- 收藏/取消收藏 → 收藏流程
- 发表评论 → 评论流程
- 回复评论 → 回复流程
约束
- 评论和回复执行前展示内容让用户确认(评论以用户身份公开发表,无法撤回)
- 点赞和收藏可直接执行(操作可逆,MCP 服务有幂等处理)
- 所有操作都需要 `feed_id` + `xsec_token`(来自搜索或详情结果,编造会导致报错)
执行流程
点赞
调用 `like_feed`:
- `feed_id`(string,必填)
- `xsec_token`(string,必填)
- `unlike`(bool,可选)— true 取消点赞,默认 false 点赞
已点赞时再点赞会自动跳过,反之同理。
收藏
调用 `favorite_feed`:
- `feed_id`(string,必填)
- `xsec_token`(string,必填)
- `unfavorite`(bool,可选)— true 取消收藏,默认 false 收藏
已收藏时再收藏会自动跳过,反之同理。
发表评论
调用 `post_comment_to_feed`:
- `feed_id`(string,必填)
- `xsec_token`(string,必填)
- `content`(string,必填)— 评论内容
发送前展示评论内容让用户确认。
回复评论
调用 `reply_comment_in_feed`:
- `feed_id`(string,必填)
- `xsec_token`(string,必填)
- `comment_id`(string,可选)— 目标评论 ID
- `user_id`(string,可选)— 目标评论作者 ID
- `content`(string,必填)— 回复内容
`comment_id` 和 `user_id` 至少提供一个。
发送前展示回复内容让用户确认。
失败处理
| 场景 | 处理 | |---|---| | 未登录 | 引导使用 xhs-login | | 缺少 feed_id/xsec_token | 提示先搜索或浏览获取笔记信息 | | 笔记不可评论 | 告知用户该笔记已关闭评论 |
基于 xiaohongshu-mcp 的 Agent Skills 集合,为小红书提供完整的自动化操作能力。兼容 Agent Skills 开放标准,支持 OpenClaw、Claude Code 等平台。
Other skills on xiaohongshu-mcp-skills.
- /post-to-xhs
发布内容到小红书,支持图文笔记和视频笔记。自动判断发布类型,校验标题和素材,用户确认后发布。 当用户想在小红书发布内容时使用——包括发笔记、发图文、发视频、上传图片、写一篇小红书、把内容发到红书上、种草笔记、好物分享等,即使用户只说"帮我发一下"但上下文明确是小红书也应触发。
Open skill - /setup-xhs-mcp
安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程。 当用户第一次使用小红书功能、提到安装/部署/配置小红书、环境搭建、MCP 服务连接失败、或 check_login_status 等 MCP 工具不可用时使用。
Open skill - /xhs-content-plan
小红书内容策划助手:搜索分析热门内容和竞品,帮助规划内容方向、选题、标签策略。 当用户想做小红书运营规划时使用——内容策划、选题灵感、竞品分析、爆款分析、热门话题研究、怎么做小红书、涨粉策略等。
Open skill - /xhs-explore
浏览小红书推荐流、查看笔记详情和评论。 当用户想看推荐内容、刷首页、查看某条笔记的详情/评论、或已有 feed_id 想获取完整内容时使用。
Open skill - /xhs-login
管理小红书登录状态:检查是否已登录、二维码扫码登录、重置登录切换账号。 当用户提到登录、扫码、账号、切换账号、退出登录、登录状态检查,或其他 skill 报告"未登录"需要先登录时使用。
Open skill - /xhs-profile
查看小红书用户主页:基本信息、粉丝/关注/获赞数据、发布的笔记列表。 当用户想查看某个博主、作者、用户的主页信息和作品时使用。
Open skill

