xhs-interact
Skill269 starsChanged 9 months agoMITView on GitHub
对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。
4 other projects use a version of this.
Adopted by
Most recently taken up by
- kiakun-collab/kiakun-skillstheir own version, first seen Nov 1, 2026
- yuymf/xiaohongshu-skillstheir own version, first seen Nov 1, 2026
- chang-zy/xiaohongshu-skilltheir own version, first seen Sep 20, 2026
- autoclaw-cc/xiaohongshu-skillstheir own version, first seen Mar 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- autoclaw-cc/xiaohongshu-skills★ 1.9ksame name
- yuymf/xiaohongshu-skills★ 3same name
- chang-zy/xiaohongshu-skill★ 2same name
- kiakun-collab/kiakun-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- xiaohongshuSkill
- post-to-xhsSkill
- setup-xhs-mcpSkill
- xhs-content-planSkill
- xhs-exploreSkill
- xhs-loginSkill
- xhs-profileSkill
- xhs-searchSkill
The file
Files
输入判断
根据用户意图路由:
- 点赞/取消点赞 → 点赞流程
- 收藏/取消收藏 → 收藏流程
- 发表评论 → 评论流程
- 回复评论 → 回复流程
约束
- 评论和回复执行前展示内容让用户确认(评论以用户身份公开发表,无法撤回)
- 点赞和收藏可直接执行(操作可逆,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,可选)— 目标评论 IDuser_id(string,可选)— 目标评论作者 IDcontent(string,必填)— 回复内容
comment_id 和 user_id 至少提供一个。
发送前展示回复内容让用户确认。
失败处理
| 场景 | 处理 |
| 未登录 | 引导使用 xhs-login |
| 缺少 feed_id/xsec_token | 提示先搜索或浏览获取笔记信息 |
| 笔记不可评论 | 告知用户该笔记已关闭评论 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

