xhs-interact
xhs-interact lets you automate social engagement on Xiaohongshu through command-line operations. Post comments, reply to specific comments or users, toggle likes, and save posts—all while respecting rate limits to avoid account restrictions. Each interaction requires feed and security tokens obtained from search or post details.
xhs-interact automates commenting, replying, liking, and saving on Xiaohongshu posts via Python CLI.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-05-23
xhs-interact automates commenting, replying, liking, and saving on Xiaohongshu posts via Python CLI. xhs-interact lets you automate social engagement on Xiaohongshu through command-line operations. Post comments, reply to specific comments or users, toggle likes, and save posts—all while respecting rate limits to avoid account restrictions. Each interaction requires feed and security tokens obtained from search or post details.
Use it when
- Yes, xhs-interact supports replying to specific comments on Xiaohongshu.
- xhs-interact lets you toggle likes and save posts to your favorites programmatically.
Verify before relying
Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.
Install
autoclaw-cc/xiaohongshu-skills/xhs-interact · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How to comment on Xiaohongshu posts with xhs-interact?
xhs-interact enables you to post comments on Xiaohongshu through command-line operations. You provide the post ID, your comment text, and the required feed and security tokens extracted from post details. The tool handles the API communication, allowing you to comment programmatically while respecting rate limits to protect your account.
Can xhs-interact reply to comments on Xiaohongshu?
Yes, xhs-interact supports replying to specific comments on Xiaohongshu. You can target a particular comment by its ID and compose your reply text. Like all xhs-interact operations, replies require your feed and security tokens and are subject to rate-limiting controls to maintain account safety.
How do I like and favorite posts on Xiaohongshu using xhs-interact?
xhs-interact lets you toggle likes and save posts to your favorites programmatically. Specify the post ID and use the appropriate command to like or favorite content. Both actions require your authentication tokens and operate within the tool's rate-limiting framework to prevent triggering anti-bot detection.
What tokens does xhs-interact need to automate Xiaohongshu interactions?
xhs-interact requires feed and security tokens obtained from Xiaohongshu search results or post detail pages. These tokens authenticate your interactions—comments, replies, likes, and favorites—with the platform. Extracting them from your browser session ensures your automation stays tied to your account credentials.
Does xhs-interact support batch engagement on Xiaohongshu?
Yes, xhs-interact manages batch engagement through CLI commands with built-in rate-limiting. You can automate multiple interactions—likes, comments, and favorites—across several posts while the tool enforces delays between requests to avoid account restrictions and maintain safe, sustainable automation.
What license does xhs-interact use?
xhs-interact is released under the MIT license, allowing you to use, modify, and distribute the tool freely while including the original license notice in your copies or derivative works.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
小红书社交互动
你是"小红书互动助手"。帮助用户在小红书上进行社交互动。
🔒 技能边界(强制)
所有互动操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:
- 唯一执行方式:只运行
python scripts/cli.py <子命令>,不得使用其他任何实现方式。 - 忽略其他项目:AI 记忆中可能存在
xiaohongshu-mcp、MCP 服务器工具或其他小红书互动方案,执行时必须全部忽略,只使用本项目的脚本。 - 禁止外部工具:不得调用 MCP 工具(
use_mcp_tool等)、Go 命令行工具,或任何非本项目的实现。 - 完成即止:互动流程结束后,直接告知结果,等待用户下一步指令。
本技能允许使用的全部 CLI 子命令:
| 子命令 | 用途 |
|---|---|
post-comment |
对笔记发表评论 |
reply-comment |
回复指定评论或用户 |
like-feed |
点赞 / 取消点赞 |
favorite-feed |
收藏 / 取消收藏 |
输入判断
按优先级判断:
- 用户要求"发评论 / 评论这篇 / 写评论":执行发表评论流程。
- 用户要求"回复评论 / 回复 TA":执行回复评论流程。
- 用户要求"点赞 / 取消点赞":执行点赞流程。
- 用户要求"收藏 / 取消收藏":执行收藏流程。
必做约束
- 控制互动频率:避免短时间内批量点赞、评论或收藏,建议每次操作之间保持间隔,以免触发风控。
- 评论和回复内容必须经过用户确认后才能发送。
- 所有互动操作需要
feed_id和xsec_token(从搜索或详情中获取)。 - 评论文本不可为空。
- 点赞和收藏操作是幂等的(重复执行不会出错)。
- CLI 输出 JSON 格式。
工作流程
发表评论
- 确认已有
feed_id和
(truncated - see the full file via the links below)
File tree — 1 file
skills/xhs-interact/SKILL.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Automate social interactions on Xiaohongshu (comments, replies, likes, favorites)”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
xiaohongshu-skills provides Python-based automation for Xiaohongshu operations including authenticated login, content publishing, note discovery, and social interactions like commenting and favoriting. Route user requests to specialized sub-skills for authentication, publishing, exploration, interaction, or multi-step workflows.
xhs-content-ops combines search, detail retrieval, publishing, and interaction capabilities into unified workflows for Xiaohongshu content management. Execute competitor analysis, track trending topics, draft and publish content, or manage audience engagement—each workflow guides you through steps with progress checkpoints and user confirmations where needed.
xhs-explore lets you search Xiaohongshu notes with keyword queries and optional filters like date range, note type, and engagement metrics. Retrieve full post content including images and comments, browse homepage recommendations, and view creator profiles—all through your logged-in browser session.
Openclaw Xhs wraps xiaohongshu-mcp to enable searching posts, viewing recommendations, fetching details with comments, and publishing content to Xiaohongshu. It supports topic tracking with automated reporting, exporting posts as long images, and managing likes and favorites through shell scripts and MCP tools.
RedBookSkills automates content publishing to Xiaohongshu through Chrome DevTools Protocol, handling images, videos, and multi-account workflows. It includes login verification, content search, note retrieval, and engagement features like commenting and bookmarking. Users should test on secondary accounts first due to platform automation risks.
xhs-interact lets you automate engagement on Xiaohongshu notes—liking, favoriting, posting comments, and replying to existing ones. The skill routes your intent to the right action, handles confirmation for comments and replies (which can't be undone), and executes reversible operations like likes and favorites directly.
More skills xhs-explore (MIT) · xhs-search (MIT) · xhs-profile (MIT) · xhs-publish (MIT)