Xhs Interact logo

Xhs Interact

OrganizationPopular
autoclaw-cc
xhs-interact

小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。

Overview

Publisherautoclaw-cc
Repositoryxiaohongshu-skills
Skill namexhs-interact
Stars
1.9K
Forks
236
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by autoclaw-cc on GitHub. Read the source before you install it.

Installation

Install the Xhs Interact AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skills.git /tmp/xiaohongshu-skills
mkdir -p .claude/skills
cp -r /tmp/xiaohongshu-skills/skills/xhs-interact .claude/skills/xhs-interact
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xhs Interact in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xhs Interact on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xhs Interact is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

小红书社交互动

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

🔒 技能边界(强制)

所有互动操作只能通过本项目的 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_idxsec_token(从搜索或详情中获取)。
  • 评论文本不可为空。
  • 点赞和收藏操作是幂等的(重复执行不会出错)。
  • CLI 输出 JSON 格式。

工作流程

发表评论

  1. 确认已有 feed_idxsec_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)。
  • 笔记不可访问:可能是私密或已删除笔记。
  • 评论输入框未找到:页面结构可能已变化,提示检查选择器。
  • 评论发送失败:检查内容是否包含敏感词。
  • 点赞/收藏失败:重试一次,仍失败则报告错误。

Frequently asked questions

What does the Xhs Interact AI skill do?

小红书社交互动技能。发表评论、回复评论、点赞、收藏。 当用户要求评论、回复、点赞或收藏小红书帖子时触发。

Why use Xhs Interact on TypingMind?

Because you install it once and use it with any model. Xhs Interact is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xhs Interact in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-interact. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Xhs Interact?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xhs Interact?

As many as you like. As long as a model supports skills, you can use Xhs Interact with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xhs Interact AI skill free?

Yes. It is published on GitHub by autoclaw-cc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇