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-authWrote 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-auth)<a href="https://agentmods.dev/skills/autoclaw-cc/xiaohongshu-skills/xhs-auth"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-auth/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-auth"><img src="https://agentmods.dev/badge/skills/autoclaw-cc/xiaohongshu-skills/xhs-auth.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.00042 | $0.01601 |
| Opus 5 | $0.00021 | $0.00800 |
| Sonnet 5 | $0.00008 | $0.00320 |
| Haiku 4.5 | $0.00004 | $0.00160 |
Grade A, and why
xhs-auth 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 13d 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 — 152 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 子命令:
| 子命令 | 用途 |
|---|---|
check-login |
检查当前登录状态 |
get-qrcode |
获取二维码图片(非阻塞) |
wait-login |
等待扫码完成(阻塞) |
send-code --phone |
发送手机验证码 |
verify-code --code |
提交验证码完成登录 |
delete-cookies |
退出登录并清除 cookies |
输入判断
按优先级判断用户意图:
- 用户要求"检查登录 / 是否登录 / 登录状态":执行登录状态检查。
- 用户要求"登录 / 扫码登录 / 手机登录 / 打开登录页":执行登录流程。
- 用户要求"退出登录 / 清除登录":执行
delete-cookies。
必做约束
- 所有 CLI 命令位于
scripts/cli.py,输出 JSON。 - 如果使用文件路径,必须使用绝对路径。
- 不要频繁重复登录或退出登录,避免触发账号风控。
工作流程
第一步:检查登录状态
python scripts/cli.py check-login
输出解读:
"logged_in": true→ 已登录,可执行后续操作。"logged_in": false+"login_method": "qrcode"→ 有界面环境,走方式 A(二维码)。输出自动包含qrcode_image_url和qrcode_path。"logged_in": false+"login_method": "both"→ 无界面服务器,输出自动包含二维码,询问用户选方式 A(二维码)或方式 B(手机验证码)。
第二步:根据输出选择登录方式
方式 A:二维码登录(所有平台通用)
check-login未登录时会自动返回二维码(qrcode_image_url+qrcode_path),无需单独调get-qrcode。
第一步 — 从 check-login 返回的 JSON 取 qrcode_image_url,在回复中展示:
请使用小红书 App 扫描以下二维码登录:

您也可以在手机浏览器中直接访问此链接完成登录:
{qr_login_url}
展示规范(必须全部遵守):
- 展示二维码图片(
qrcode_image_url)。- 如果输出含
qr_login_url,必须同时展示该链接并提示用户"也可以在手机浏览器中直接访问此链接完成登录"。- 禁止省略
qr_login_url,即使已展示了二维码图片。
图片内嵌在对话窗口,用户可以扫码或直接访问链接登录。
第二步 — 等待登录完成(单次调用,无需轮询):
python scripts/cli.py wait-login
- 连接已有浏览器 tab,内部阻塞等待(最多 120 秒)。
- 输出
{"logged_in": true}则完成;超时则提示用户重新运行get-qrcode刷新二维码。
二维码过期刷新:如需单独刷新二维码(如超时后),可运行
get-qrcode,它仍作为独立命令保留。
方式 B:手机验证码登录(无界面服务器,分两步)
⚠️ 强制要求:必须先向用户确认手机号,即使上下文中已有手机号也不得跳过。
- 用户可能要登录不同账号,手机号可能已变更。
- 禁止从历史对话、记忆或上下文中自动填入手机号。
- 每次登录都必须明确向用户询问并得到确认后才能执行
send-code。
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.
- 13d ago First seen · 152 lines · 42 tokens per session scan A 5714a9945ef4
xhs-auth is a skill published in the GitHub repository autoclaw-cc/xiaohongshu-skills (1,884 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 1,601 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
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
opencli-sitemap-author
Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.
interactive-login
How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.
pinchtab-mcp
Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.
azure-messaging-webpubsub-java
Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.
google-safe-browsing
Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…