Xhs interact

From autoclaw-cc/xiaohongshu-mcp-skills · View interactive version

Xhs interact is an AI agent skill from the GitHub repository autoclaw-cc/xiaohongshu-mcp-skills. 对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。

How to use this skill

Skill file

输入判断

根据用户意图路由:

约束

执行流程

点赞

调用 like_feed:

已点赞时再点赞会自动跳过,反之同理。

收藏

调用 favorite_feed:

已收藏时再收藏会自动跳过,反之同理。

发表评论

调用 post_comment_to_feed:

发送前展示评论内容让用户确认。

回复评论

调用 reply_comment_in_feed:

comment_id 和 user_id 至少提供一个。

发送前展示回复内容让用户确认。

失败处理

| 场景 | 处理 |

|---|---|

| 未登录 | 引导使用 xhs-login |

| 缺少 feed_id/xsec_token | 提示先搜索或浏览获取笔记信息 |

| 笔记不可评论 | 告知用户该笔记已关闭评论 |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.