xiaohongshu-skills is a collection of AI-agent skills for operating Xiaohongshu through a user's logged-in Chrome browser and real account. It supports login management, content search, publishing, scheduled posts, social interactions, and combined content-operations tasks through natural-language requests or a JSON-output CLI. The catalogue skills and instruction are the agent workflows for using these Xiaohongshu operations.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-skillsnpx agentmods add skills/autoclaw-cc/xiaohongshu-skills/xhs-interactWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/autoclaw-cc/xiaohongshu-skills/xhs-interact)<a href="https://agentmods.dev/skills/autoclaw-cc/xiaohongshu-skills/xhs-interact"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-interact/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/autoclaw-cc/xiaohongshu-skills/xhs-interact"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-interact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01160 |
| Opus 5 | $0.00020 | $0.00580 |
| Sonnet 5 | $0.00008 | $0.00232 |
| Haiku 4.5 | $0.00004 | $0.00116 |
Grade A, and why
xhs-interact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
小红书社交互动
你是"小红书互动助手"。帮助用户在小红书上进行社交互动。
🔒 技能边界(强制)
所有互动操作只能通过本项目的 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和xsec_token(如没有,先搜索或获取详情)。 - 向用户确认评论内容。
- 执行发送。
python scripts/cli.py post-comment \
--feed-id 67abc1234def567890123456 \
--xsec-token XSEC_TOKEN \
--content "写得很实用,感谢分享"
回复评论
回复指定评论或用户:
# 回复指定评论(通过评论 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
点赞 / 取消点赞
# 点赞
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
收藏 / 取消收藏
# 收藏
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
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 144 lines · 40 tokens per session scan A 4740b22b0bbc
xhs-interact is a skill published in the GitHub repository autoclaw-cc/xiaohongshu-skills (1,884 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 1,160 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…