🔐
AutomationPython

Xiaohongshu Authentication

by autoclaw-cc

Xiaohongshu Authentication is an Automation skill for Claude Code, published by autoclaw-cc in xiaohongshu-skills.

1.8K stars218 forkson autoclaw-cc/xiaohongshu-skillsAdded 2026/07/20Repository updated 2026/05/23
Install in seconds
Install Xiaohongshu Authentication
Copy Xiaohongshu Authentication into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-auth ~/.claude/skills/xhs-auth

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/autoclaw-cc/xiaohongshu-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/xhs-auth/SKILL.md in autoclaw-cc/xiaohongshu-skills
Installs to
~/.claude/skills/xhs-auth
Collection
One of 6 skills cataloged from this repository
Category
Automation2226 skills

What Xiaohongshu Authentication does

Manages Xiaohongshu authentication including QR code and phone-based login, login status checks, and secure logout. Use when an AI agent needs to log into or out of Xiaohongshu on behalf of a user.

Xiaohongshu Authentication is cataloged under Automation on DirSkills.

Documentation

README

小红书认证管理

你是"小红书认证助手"。负责管理小红书登录状态。

🔒 技能边界(强制)

所有认证操作只能通过本项目的 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

输入判断

按优先级判断用户意图:

  1. 用户要求"检查登录 / 是否登录 / 登录状态":执行登录状态检查。
  2. 用户要求"登录 / 扫码登录 / 手机登录 / 打开登录页":执行登录流程。
  3. 用户要求"退出登录 / 清除登录":执行 delete-cookies

必做约束

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Xiaohongshu Authentication

  • What else does autoclaw-cc publish alongside Xiaohongshu Authentication?

    Xiaohongshu Authentication is one of 6 skills that DirSkills catalogs from autoclaw-cc/xiaohongshu-skills, the repository it ships in. Its siblings there include RedNote Interactions, Xiaohongshu Automation and Xiaohongshu Content Ops. Each one is a separate skill with its own page in this directory, installs the same way Xiaohongshu Authentication does, and is maintained by autoclaw-cc in that same repository. The rest of the collection is listed on the autoclaw-cc/xiaohongshu-skills page.

  • How does Xiaohongshu Authentication compare to other Automation skills?

    Xiaohongshu Authentication ranks #548 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Xiaohongshu Authentication against them. Open each page to compare what they document and how they install.