xhs-login

Check Xiaohongshu login status and generate QR code login prompts.

Updated May 12, 2026
One-click install
npx skills add https://github.com/YeomanYe/skills --skill xhs-login
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-login
Source: https://github.com/YeomanYe/skills/tree/main/xiaohongshu/skills/xhs-login
Command: npx skills add https://github.com/YeomanYe/skills --skill xhs-login

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

管理小红书登录状态:检查是否已登录、二维码扫码登录、重置登录切换账号。 当用户提到登录、扫码、账号、切换账号、退出登录、登录状态检查,或其他 skill 报告"未登录"需要先登录时使用。

Core Features & Use Cases

  • 自动检查登录状态并返回当前账号信息(若已登录)。
  • 提供二维码登录流程,返回二维码图片并可在客户端渲染或保存为临时文件。
  • 支持重新登录/切换账号:在用户确认后清除 cookies、重新获取二维码并引导扫码。

Quick Start

Check login status and initiate QR code login if not authenticated.

Frequently Asked Questions about xhs-login

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check Xiaohongshu login status and get the current username?

To check Xiaohongshu login status, the automation identifies the current session and reports whether the user is logged in, returning the current username if authentication is active.

How do I automate Xiaohongshu login using a QR code?

Automate Xiaohongshu login by generating a QR code prompt when unauthenticated, guiding the user to scan for authentication, with an optional fallback to open the QR image file.

What is the best way to switch Xiaohongshu accounts in an automation workflow?

The best way to switch Xiaohongshu accounts is clearing cookies and reinitiating the QR login flow, using safe prompts and validation to confirm the reset action before acquiring a new QR code.

When do I need to reset Xiaohongshu session cookies?

You need to reset Xiaohongshu session cookies when switching accounts or reinitiating authentication, clearing the stored session data to safely prompt the QR code login flow for a new user.

Can I render the Xiaohongshu QR code directly in my client?

Yes, you can render the Xiaohongshu QR code directly in your client or save it as a temporary image file, using the provided optional fallback to open the image for manual scanning.