agentleFS
JakeyhbJakeyhb/football-content-ops-skill/skills/xiaohongshu-cli/SKILL.md

xiaohongshu-cli

Skill1 starsChanged 14 days agoMITView on GitHub

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
SKILL.md

xiaohongshu-cli — 小红书 CLI 工具

用途

小红书全操作:搜索、阅读、互动、发帖。

安装

uv tool install xiaohongshu-cli
# 或 pipx install xiaohongshu-cli

认证流程

# Step 0: 检查是否已登录
xhs status --yaml >/dev/null && echo "AUTH_OK" || echo "AUTH_NEEDED"

# Step 1: 登录(三选一)
xhs login                              # 自动从浏览器提取 cookie
xhs login --cookie-source arc          # 指定浏览器
xhs login --qrcode                     # 扫码登录

# Step 2: 验证
xhs whoami

常用命令

读取类

命令说明
xhs search <keyword>搜索笔记
xhs read <id_or_url>读取笔记
xhs comments <id_or_url> --all获取全部评论
xhs user <user_id>查看用户主页
xhs user-posts <user_id>列出用户笔记
xhs feed浏览推荐流
xhs hot -c <category>浏览热门(fashion/food/cosmetics/travel/fitness 等)
xhs topics <keyword>搜索话题/标签
xhs search-user <keyword>搜索用户
xhs my-notes列出已发布笔记
xhs notifications查看通知
xhs unread未读消息数

互动类

命令说明
xhs like <id>点赞
xhs favorite <id>收藏
xhs comment <id> -c "text"评论
xhs follow <user_id>关注

创作类

命令说明
xhs post --title "..." --body "..." --images img.png发布笔记;--body 禁止 * / **
xhs delete <id>删除笔记

账号类

命令说明
xhs login登录
xhs status检查认证状态
xhs logout清除 cookie
xhs whoami当前用户信息

注意事项

  • 不要并行化请求(有内置限速)
  • 不要绕过 rate-limit
  • 不要把 cookie 值输出到日志
  • 不支持:视频下载、私信、直播、关注者列表

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.