# Xhs Profile

> 查看小红书用户主页：基本信息、粉丝/关注/获赞数据、发布的笔记列表。 当用户想查看某个博主、作者、用户的主页信息和作品时使用。

- Skill: `autoclaw-cc/xhs-profile` (Agent Skill)
- Install (CLI): `npx skillmds@latest add autoclaw-cc/xhs-profile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/autoclaw-cc/xhs-profile/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: autoclaw-cc (https://skillmd.com/u/autoclaw-cc)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/autoclaw-cc/xhs-profile

---


## 执行流程

### 1. 获取用户信息

调用 `user_profile`：
- `user_id`（string，必填）— 用户 ID（来自笔记详情或搜索结果）
- `xsec_token`（string，必填）

### 2. 展示结果

- 基本信息：昵称、头像、简介、性别、地区
- 数据：粉丝数、关注数、获赞与收藏数
- 最近发布的笔记列表（含 feed_id 和 xsec_token）

提示用户可以查看某条笔记详情或进行互动。

## 失败处理

| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 用户不存在 | 告知用户该主页无法访问 |

