Agent skill

Xhs Interact

by autoclaw-cc in autoclaw-cc/xiaohongshu-skills

小红书社交互动技能。发表评论、回复评论、点赞、收藏. An agent skill from autoclaw-cc/xiaohongshu-skills.

MITAuto-check passed

Install Xhs Interact

skills CLI
$ npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-interact -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install autoclaw-cc/xiaohongshu-skills xhs-interact --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xhs-interact .claude/skills/xhs-interact && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xhs-interact
GitHub stars
1.9k
Token cost
~637 tokens
SKILL.md length
103 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

小红书社交互动技能。发表评论、回复评论、点赞、收藏. An agent skill from autoclaw-cc/xiaohongshu-skills.

  • Works in 4 steps: 用户要求"发评论 / 评论这篇 / 写评论":执行发表评论流程。 → 用户要求"回复评论 / 回复 TA":执行回复评论流程。 → 用户要求"点赞 / 取消点赞":执行点赞流程。 → …
  • SKILL.md covers 🔒 技能边界(强制), 输入判断, 必做约束 and 工作流程, plus 2 more sections
  • Calls python; needs XSEC_TOKEN

What it does

Xhs Interact is an agent skill from autoclaw-cc/xiaohongshu-skills. 小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Xiaohongshu and Model Context Protocol. The licence is MIT.

Example prompts

  • “/xhs-interact”

Requirements

  • Python 3
  • A credential in XSEC_TOKEN

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 用户要求"发评论 / 评论这篇 / 写评论":执行发表评论流程。
  2. 用户要求"回复评论 / 回复 TA":执行回复评论流程。
  3. 用户要求"点赞 / 取消点赞":执行点赞流程。
  4. 用户要求"收藏 / 取消收藏":执行收藏流程。

What it can do on your machine

Read from SKILL.md and the folder at commit b043748. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • XSEC_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xhs Interact loads about 637 tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 103 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~16
When it runs · the whole SKILL.md, loaded when a task matches
~637

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from autoclaw-cc/xiaohongshu-skills at commit b043748, republished under its MIT licence (© autoclaw-cc). 103 words, ~637 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-interact/SKILL.md (or your agent's skills folder).
name
xhs-interact
description
小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。
version
1.0.0

小红书社交互动

你是"小红书互动助手"。帮助用户在小红书上进行社交互动。

🔒 技能边界(强制)

所有互动操作只能通过本项目的 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收藏 / 取消收藏

输入判断

按优先级判断:

  1. 用户要求"发评论 / 评论这篇 / 写评论":执行发表评论流程。
  2. 用户要求"回复评论 / 回复 TA":执行回复评论流程。
  3. 用户要求"点赞 / 取消点赞":执行点赞流程。
  4. 用户要求"收藏 / 取消收藏":执行收藏流程。

必做约束

  • 控制互动频率:避免短时间内批量点赞、评论或收藏,建议每次操作之间保持间隔,以免触发风控。
  • 评论和回复内容必须经过用户确认后才能发送。
  • 所有互动操作需要 feed_id 和 xsec_token(从搜索或详情中获取)。
  • 评论文本不可为空。
  • 点赞和收藏操作是幂等的(重复执行不会出错)。
  • CLI 输出 JSON 格式。

工作流程

发表评论
  1. 确认已有 feed_id 和 xsec_token(如没有,先搜索或获取详情)。
  2. 向用户确认评论内容。
  3. 执行发送。
bash
python scripts/cli.py post-comment \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN \
  --content "写得很实用,感谢分享"
回复评论

回复指定评论或用户:

bash
# 回复指定评论(通过评论 ID)
python scripts/cli.py reply-comment \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN \
  --content "谢谢你的分享" \
  --comment-id COMMENT_ID

# 回复指定用户(通过用户 ID)
python scripts/cli.py reply-comment \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN \
  --content "谢谢你的分享" \
  --user-id USER_ID
点赞 / 取消点赞
bash
# 点赞
python scripts/cli.py like-feed \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN

# 取消点赞
python scripts/cli.py like-feed \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN \
  --unlike
收藏 / 取消收藏
bash
# 收藏
python scripts/cli.py favorite-feed \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN

# 取消收藏
python scripts/cli.py favorite-feed \
  --feed-id 67abc1234def567890123456 \
  --xsec-token XSEC_TOKEN \
  --unfavorite

互动策略建议

当用户需要批量互动时,建议:

  1. 先搜索目标内容(xhs-explore)。
  2. 浏览搜索结果,选择要互动的笔记。
  3. 获取详情确认内容。
  4. 针对性地发表评论 / 点赞 / 收藏。
  5. 每次互动之间保持合理间隔,避免频率过高。

失败处理

  • 未登录:提示先登录(参考 xhs-auth)。
  • 笔记不可访问:可能是私密或已删除笔记。
  • 评论输入框未找到:页面结构可能已变化,提示检查选择器。
  • 评论发送失败:检查内容是否包含敏感词。
  • 点赞/收藏失败:重试一次,仍失败则报告错误。

© autoclaw-cc, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/xhs-interact of autoclaw-cc/xiaohongshu-skills.

Open the folder on GitHubat commit b043748

Compare with similar skills

Xhs Interact next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xhs Interact compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xhs Interact this skillautoclaw-cc/xiaohongshu-skills1.9k—~637Automated safety check: PassMIT
Xiaohongshuzhjiang22/openclaw-xhs1231 repos~1.1kAutomated safety check: PassMIT
Media Crawlertsingyuai/growth-lab2k—~731Automated safety check: PassApache-2.0
Qiaomu Codex Imagegenjoeseesun/qiaomu-codex-imagegen125—~2.3kAutomated safety check: PassMIT
Xiaohongshu Content Researchjumodada/Drissionpage-MCP-Server487—~768Automated safety check: PassCustom licence
Setup Xhs MCPautoclaw-cc/xiaohongshu-mcp-skills272—~678Automated safety check: PassMIT

Similar skills

  • Xiaohongshu

    zhjiang22/openclaw-xhs

    小红书(RedNote)内容工具。使用场景: - 搜索小红书笔记并获取详情 - 获取首页推荐列表 - 获取帖子详情(正文、图片、互动数据、评论) - 发表评论 / 回复评论 - 获取用户主页和笔记列表 - 点赞、收藏帖子 - 发布图文或视频笔记 - 热点话题跟踪与分析报告 - 帖子导出为长图 触发词示例: - "搜一下小红书上的XX" - "跟踪一下小红书上的XX热点" -…

    123 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Media Crawler

    tsingyuai/growth-lab

    Install, authenticate, configure, operate, and troubleshoot the external MediaCrawler client shared by Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu collectors.

    2k GitHub stars~731 tokensUpdated 12 days ago
    Data & AnalyticsAuto-check passed
  • Qiaomu Codex Imagegen

    joeseesun/qiaomu-codex-imagegen

    Generate or edit images with Codex's built-in image generation from any agent, through an MCP tool or a plain CLI.

    125 GitHub stars~2.3k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed
  • Xiaohongshu Content Research

    jumodada/Drissionpage-MCP-Server

    A skill your agent uses for authorized, read-only research on public Xiaohongshu content or the local Xiaohongshu-like playground fixture.

    487 GitHub stars~768 tokensUpdated 26 days ago
    Productivity & AutomationAuto-check passed
  • Setup Xhs MCP

    autoclaw-cc/xiaohongshu-mcp-skills

    安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~678 tokensUpdated 7 mo ago
    Agent WorkflowsAuto-check passed
  • Xiaohongshu MCP

    tsingyuai/growth-lab

    使用本机 browser-first xiaohongshu-mcp 只读搜索小红书、下载候选首图、补全用户选择的笔记详情,并把脱敏证据写入调用方 Memory。用于 xhs-replicate 的选题和视觉参考研究,取代小红书 MediaCrawler 路径。

    2k GitHub stars~822 tokensUpdated 12 days ago
    Agent WorkflowsAuto-check passed

More from autoclaw-cc/xiaohongshu-skills

  • Xiaohongshu Skills

    autoclaw-cc/xiaohongshu-skills

    小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~748 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Auth

    autoclaw-cc/xiaohongshu-skills

    小红书认证管理技能。检查登录状态、登录(二维码或手机号)、退出登录. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~832 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Content Ops

    autoclaw-cc/xiaohongshu-skills

    小红书复合内容运营技能。组合搜索、详情、发布、互动等能力完成运营工作流. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~919 tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Explore

    autoclaw-cc/xiaohongshu-skills

    小红书内容发现与分析技能。搜索笔记、浏览首页、查看详情、获取用户资料. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Xhs Publish

    autoclaw-cc/xiaohongshu-skills

    小红书内容发布技能。支持图文发布、视频发布、长文发布、定时发布、标签、可见性设置. An agent skill from autoclaw-cc/xiaohongshu-skills.

    1.9k GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Xhs Interact

What does Xhs Interact do?

小红书社交互动技能。发表评论、回复评论、点赞、收藏. An agent skill from autoclaw-cc/xiaohongshu-skills. Xhs Interact is an agent skill from autoclaw-cc/xiaohongshu-skills.

How do I install Xhs Interact in Claude Code?

Run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-interact -a claude-code`. Or copy the skill folder (skills/xhs-interact in autoclaw-cc/xiaohongshu-skills) into .claude/skills/xhs-interact in your project. Claude Code loads it when a task matches its description.

How do I install Xhs Interact in Codex?

Run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-interact -a codex`. Or copy the skill folder (skills/xhs-interact in autoclaw-cc/xiaohongshu-skills) into .agents/skills/xhs-interact in your project. Codex loads it when a task matches its description.

Can I use Xhs Interact in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add autoclaw-cc/xiaohongshu-skills --skill xhs-interact -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xhs-interact, .gemini/skills/xhs-interact, .github/skills/xhs-interact and .opencode/skills/xhs-interact in your project.

What does Xhs Interact need to run?

Going by SKILL.md and its folder, Xhs Interact needs the command-line tools its instructions call (python) and credentials named XSEC_TOKEN. Our summary lists: Python 3; A credential in XSEC_TOKEN.

Does Xhs Interact access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Xhs Interact safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Xhs Interact use?

Xhs Interact is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Xhs Interact use?

About 637 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xhs Interact?

Skills that share tags, products or a category with Xhs Interact: Xiaohongshu (zhjiang22/openclaw-xhs, 123 stars), Media Crawler (tsingyuai/growth-lab, 2k stars), Qiaomu Codex Imagegen (joeseesun/qiaomu-codex-imagegen, 125 stars) and Xiaohongshu Content Research (jumodada/Drissionpage-MCP-Server, 487 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xhs Interact?

autoclaw-cc (a GitHub organization) maintains it in autoclaw-cc/xiaohongshu-skills, which has 1,949 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 23, 2026.

Source: autoclaw-cc/xiaohongshu-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.