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

MITAuto-check passed

Install Xhs Login

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

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

GitHub CLI
$ gh skill install autoclaw-cc/xiaohongshu-mcp-skills xhs-login --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-login .claude/skills/xhs-login && 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-login
GitHub stars
272
Token cost
~255 tokens
SKILL.md length
68 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.

  • Works in 3 steps: 检查登录状态 → 扫码登录 → 重新登录 / 切换账号
  • SKILL.md covers 执行流程, 约束 and 失败处理
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Xhs Login is an agent skill from autoclaw-cc/xiaohongshu-mcp-skills. 管理小红书登录状态:检查是否已登录、二维码扫码登录、重置登录切换账号。 当用户提到登录、扫码、账号、切换账号、退出登录、登录状态检查,或其他 skill 报告"未登录"需要先登录时使用。

Its SKILL.md is about 260 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-login”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 检查登录状态
  2. 扫码登录
  3. 重新登录 / 切换账号

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 (its code samples are bash).

    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 Login loads about 255 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 68 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
~255

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). 68 words, ~255 tokens.

Download SKILL.mdSave it as .claude/skills/xhs-login/SKILL.md (or your agent's skills folder).
name
xhs-login
description
管理小红书登录状态:检查是否已登录、二维码扫码登录、重置登录切换账号。 当用户提到登录、扫码、账号、切换账号、退出登录、登录状态检查,或其他 skill 报告"未登录"需要先登录时使用。

执行流程

1. 检查登录状态

调用 check_login_status(无参数),返回是否已登录及用户名。

  • 已登录 → 告知用户当前登录账号
  • 未登录 → 进入步骤 2
2. 扫码登录

调用 get_login_qrcode(无参数)。MCP 工具返回两部分内容:

  • 文本:超时提示(含截止时间)
  • 图片:PNG 格式二维码(MCP image content type,Base64 编码)

展示二维码:MCP 返回的图片会通过客户端渲染给用户。如果客户端无法直接展示图片(如纯文本终端),则将 Base64 数据保存为临时 PNG 文件,告知用户文件路径让其手动打开:

bash
# fallback: 保存二维码到临时文件
echo "<base64_data>" | base64 -d > /tmp/xhs-qrcode.png
open /tmp/xhs-qrcode.png   # macOS
xdg-open /tmp/xhs-qrcode.png  # Linux

提示用户:

  • 打开小红书 App 扫描二维码
  • 二维码有效期有限,过期需重新获取

扫码完成后,调用 check_login_status 确认登录成功。

3. 重新登录 / 切换账号

当用户要求重新登录或切换账号时:

  1. 调用 delete_cookies(⚠️ 需用户确认)— 清除当前登录状态
  2. 调用 get_login_qrcode — 获取新二维码
  3. 引导用户扫码

约束

  • delete_cookies 会清除登录状态,执行前必须确认
  • 登录需要用户手动用手机 App 扫码,无法自动完成

失败处理

场景处理
MCP 工具不可用引导用户使用 /setup-xhs-mcp 完成部署和连接配置
二维码超时重新调用 get_login_qrcode

© 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-login of autoclaw-cc/xiaohongshu-mcp-skills.

Open the folder on GitHubat commit c79206c

Compare with similar skills

Xhs Login 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 Login compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xhs Login this skillautoclaw-cc/xiaohongshu-mcp-skills272—~255Automated 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 12 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 7 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
  • Sandbase

    sandbaseai/cli

    Discover better ways to complete tasks. An agent skill from sandbaseai/cli.

    188 GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-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
  • 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 Interact

    autoclaw-cc/xiaohongshu-mcp-skills

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

    272 GitHub stars~284 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 Login

What does Xhs Login do?

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

How do I install Xhs Login in Claude Code?

Run `npx skills add autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-login -a claude-code`. Or copy the skill folder (skills/xhs-login in autoclaw-cc/xiaohongshu-mcp-skills) into .claude/skills/xhs-login in your project. Claude Code loads it when a task matches its description.

How do I install Xhs Login in Codex?

Run `npx skills add autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-login -a codex`. Or copy the skill folder (skills/xhs-login in autoclaw-cc/xiaohongshu-mcp-skills) into .agents/skills/xhs-login in your project. Codex loads it when a task matches its description.

Can I use Xhs Login 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-login -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-login, .gemini/skills/xhs-login, .github/skills/xhs-login and .opencode/skills/xhs-login in your project.

What does Xhs Login need to run?

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

Does Xhs Login 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 Login 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 Login use?

Xhs Login 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 Login use?

About 255 tokens (SKILL.md is roughly 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 Login?

Skills that share tags, products or a category with Xhs Login: 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 Login?

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.