Agent skill

Xhs Interact

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

对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

MITAuto-check passed

Install Xhs Interact

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

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

GitHub CLI
$ gh skill install autoclaw-cc/xiaohongshu-mcp-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-mcp-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
272
Token cost
~284 tokens
SKILL.md length
77 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

  • SKILL.md covers 输入判断, 约束, 执行流程 and 失败处理
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 280 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 repository describes itself as: xiaohongshu-mcp skills. The licence is MIT.

Example prompts

  • “/xhs-interact”

What it can do on your machine

Read from SKILL.md and the folder at commit c79206c. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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 no API keys, tokens, secrets or passwords.

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

Context cost

Xhs Interact loads about 284 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 77 words of instructions outside code blocks.

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

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-mcp-skills at commit c79206c, republished under its MIT licence (© autoclaw-cc). 77 words, ~284 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-interact/SKILL.md (or your agent's skills folder).
name
xhs-interact
description
对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。 当用户想对小红书笔记进行互动时使用——赞一下、收藏一下、留个评论、回复某条评论、取消点赞、取消收藏等。

输入判断

根据用户意图路由:

  • 点赞/取消点赞 → 点赞流程
  • 收藏/取消收藏 → 收藏流程
  • 发表评论 → 评论流程
  • 回复评论 → 回复流程

约束

  • 评论和回复执行前展示内容让用户确认(评论以用户身份公开发表,无法撤回)
  • 点赞和收藏可直接执行(操作可逆,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,可选)— 目标评论 ID
  • user_id(string,可选)— 目标评论作者 ID
  • content(string,必填)— 回复内容

comment_id 和 user_id 至少提供一个。

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

失败处理

场景处理
未登录引导使用 xhs-login
缺少 feed_id/xsec_token提示先搜索或浏览获取笔记信息
笔记不可评论告知用户该笔记已关闭评论

© 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-mcp-skills.

Open the folder on GitHubat commit c79206c

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-mcp-skills272—~284Automated safety check: PassMIT
Xiaohongshu Skillsautoclaw-cc/xiaohongshu-skills1.9k—~748Automated 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
Xhs Authautoclaw-cc/xiaohongshu-skills1.9k—~832Automated safety check: PassMIT

Similar 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
  • 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 11 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
  • 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
  • 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

More from autoclaw-cc/xiaohongshu-mcp-skills

All 9 skills in this repo
  • 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
    Auto-check passed
  • Xiaohongshu

    autoclaw-cc/xiaohongshu-mcp-skills

    小红书(RED/XHS)自动化助手。提供完整的小红书操作能力:登录、发布图文/视频、搜索笔记、浏览详情、点赞收藏评论、查看博主主页、内容策划。

    272 GitHub starsUsed in 1 repo~357 tokens
    Auto-check passed
  • Xhs Login

    autoclaw-cc/xiaohongshu-mcp-skills

    管理小红书登录状态:检查是否已登录、二维码扫码登录、重置登录切换账号. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~255 tokensUpdated 7 mo ago
    Auto-check passed
  • Post To Xhs

    autoclaw-cc/xiaohongshu-mcp-skills

    发布内容到小红书,支持图文笔记和视频笔记。自动判断发布类型,校验标题和素材,用户确认后发布. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~380 tokensUpdated 7 mo ago
    Auto-check passed
  • Xhs Explore

    autoclaw-cc/xiaohongshu-mcp-skills

    浏览小红书推荐流、查看笔记详情和评论. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~198 tokensUpdated 7 mo ago
    Auto-check passed
  • Xhs Content Plan

    autoclaw-cc/xiaohongshu-mcp-skills

    小红书内容策划助手:搜索分析热门内容和竞品,帮助规划内容方向、选题、标签策略. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

    272 GitHub stars~141 tokensUpdated 7 mo ago
    Auto-check passed

Questions about Xhs Interact

What does Xhs Interact do?

对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论. An agent skill from autoclaw-cc/xiaohongshu-mcp-skills. Xhs Interact is an agent skill from autoclaw-cc/xiaohongshu-mcp-skills.

How do I install Xhs Interact in Claude Code?

Run `npx skills add autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-interact -a claude-code`. Or copy the skill folder (skills/xhs-interact in autoclaw-cc/xiaohongshu-mcp-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-mcp-skills --skill xhs-interact -a codex`. Or copy the skill folder (skills/xhs-interact in autoclaw-cc/xiaohongshu-mcp-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-mcp-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?

SKILL.md names no scripts, command-line tools or credentials: Xhs Interact is instructions for the agent only.

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 284 tokens (SKILL.md is roughly 1.1k 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 Skills (autoclaw-cc/xiaohongshu-skills, 1.9k stars), Xiaohongshu (zhjiang22/openclaw-xhs, 123 stars), Media Crawler (tsingyuai/growth-lab, 2k stars) and Qiaomu Codex Imagegen (joeseesun/qiaomu-codex-imagegen, 125 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-mcp-skills, which has 272 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on March 5, 2026.

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