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-exploreWrote 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-explore)<a href="https://agentmods.dev/skills/autoclaw-cc/xiaohongshu-skills/xhs-explore"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-explore/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-explore"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-explore.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.00051 | $0.01848 |
| Opus 5 | $0.00026 | $0.00924 |
| Sonnet 5 | $0.00010 | $0.00370 |
| Haiku 4.5 | $0.00005 | $0.00185 |
Grade A, and why
xhs-explore 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 — 200 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 子命令:
| 子命令 | 用途 |
|---|---|
list-feeds |
获取首页推荐 Feed |
search-feeds |
关键词搜索笔记(支持筛选) |
get-feed-detail |
获取笔记完整内容和评论 |
user-profile |
获取用户主页信息 |
输入判断
按优先级判断:
- 用户要求"搜索笔记 / 找内容 / 搜关键词":执行搜索流程。
- 用户要求"查看笔记详情 / 看这篇帖子":执行详情获取流程。
- 用户要求"首页推荐 / 浏览首页":执行首页 Feed 获取。
- 用户要求"查看用户主页 / 看看这个博主":执行用户资料获取。
必做约束
- 控制查询频率:避免频繁、连续地搜索或加载大量内容,操作之间保持适当间隔。
- 所有操作需要已登录的 Chrome 浏览器。
feed_id和xsec_token必须配对使用,从搜索结果或首页 Feed 中获取。- 结果应结构化呈现,突出关键字段。
- CLI 输出为 JSON 格式。
工作流程
首页 Feed 列表
获取小红书首页推荐内容:
python scripts/cli.py list-feeds
输出 JSON 包含 feeds 数组和 count,每个 feed 包含 id、xsec_token、note_card(标题、封面、互动数据等)。
搜索笔记
# 基础搜索
python scripts/cli.py search-feeds --keyword "春招"
# 带筛选搜索
python scripts/cli.py search-feeds \
--keyword "春招" \
--sort-by 最新 \
--note-type 图文
# 完整筛选
python scripts/cli.py search-feeds \
--keyword "春招" \
--sort-by 最多点赞 \
--note-type 图文 \
--publish-time 一周内 \
--search-scope 未看过
搜索筛选参数
| 参数 | 可选值 |
|---|---|
--sort-by |
综合、最新、最多点赞、最多评论、最多收藏 |
--note-type |
不限、视频、图文 |
--publish-time |
不限、一天内、一周内、半年内 |
--search-scope |
不限、已看过、未看过、已关注 |
--location |
不限、同城、附近 |
搜索结果字段
输出 JSON 包含:
feeds:笔记列表,每项包含id、xsec_token、note_card(标题、封面、用户信息、互动数据)count:结果数量
获取笔记详情
从搜索结果或首页 Feed 中取 id 和 xsec_token,获取完整内容:
# 基础详情
python scripts/cli.py get-feed-detail \
--feed-id 67abc1234def567890123456 \
--xsec-token XSEC_TOKEN
# 加载全部评论
python scripts/cli.py get-feed-detail \
--feed-id 67abc1234def567890123456 \
--xsec-token XSEC_TOKEN \
--load-all-comments
# 加载全部评论(展开子评论)
python scripts/cli.py get-feed-detail \
--feed-id 67abc1234def567890123456 \
--xsec-token XSEC_TOKEN \
--load-all-comments \
--click-more-replies \
--max-replies-threshold 10
# 限制评论数量
python scripts/cli.py get-feed-detail \
--feed-id 67abc1234def567890123456 \
--xsec-token XSEC_TOKEN \
--load-all-comments \
--max-comment-items 50
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 · 200 lines · 51 tokens per session scan A ec8630e6c62c
xhs-explore is a skill published in the GitHub repository autoclaw-cc/xiaohongshu-skills (1,884 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 1,848 once invoked, about $0.0003 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…