Skip to content
Development
Skill

/xiaohongshu

Read Xiaohongshu (小红书) through OpenCLI using the user's Chrome logged-in session. Search notes, read note details and comments, browse feed and user notes, or download note media. Keywords: xiaohongshu, xhs, 小红书, 红书, 笔记, 评论, feed.

From plugin
all-my-ai-needs
1423 skills

Claude Code

$ npx -y skills add codingSamss/all-my-ai-needs --skill xiaohongshu --agent claude-code

SKILL.md

xiaohongshu.SKILL.md
name: xiaohongshu
description: "Read Xiaohongshu (小红书) through OpenCLI using the user's Chrome logged-in session. Search notes, read note details and comments, browse feed and user notes, or download note media. Keywords: xiaohongshu, xhs, 小红书, 红书, 笔记, 评论, feed."

Xiaohongshu Skill (Read-Only)

Use OpenCLI as the single supported Xiaohongshu implementation. The previous HTTP/API and Chrome Cookie DB extraction path was removed because Xiaohongshu frequently requires browser-side login verification and risk-control handling.

When To Use

Triggered by:

  • "小红书搜 [query]", "search xiaohongshu [query]"
  • "读小红书笔记", "read xhs note [url]"
  • "小红书评论", "xhs comments"
  • "小红书 feed", "小红书首页"
  • "小红书用户主页", "xhs user"

Prerequisites

1. Node.js and npm are installed. OpenCLI 2.0.3 requires Node.js >=20.18.1. 2. OpenCLI is installed. Before installing or upgrading, read [the upgrade review](references/opencli-upgrade.md). The reviewed combination is OpenCLI 2.0.3 with actual runtime dependencies `undici 7.30.1` and `js-yaml 4.3.2`. This release includes the required dependency update; the previous 1.8.8 / 7.29.1 combination is no longer the reviewed baseline. Recheck actual dependencies and current advisories after any reinstall or update. 3. The OpenCLI Chrome extension is installed manually from the Chrome Web Store. OpenCLI 2.0.3 requires extension 1.0.27 or newer; confirm the connected version with `opencli daemon status` before changing anything. 4. Chrome is open and logged into Xiaohongshu.

Check status without starting or changing the daemon:

node --version
opencli --version
opencli daemon status

Do not run `opencli doctor` for routine checks; it can start the daemon.

Commands

Search notes:

opencli xiaohongshu search "<query>" -f yaml

On a separately reviewed installation that supports the reviewed search options, filter recent image notes:

opencli xiaohongshu search "<query>" --sort latest --note-type image --publish-time week --limit 5 -f yaml

Check `opencli xiaohongshu search --help` before using these options. Older versions may not support them. Location filters can require browser geolocation permission; do not grant that permission just to make a search succeed.

Read a note:

opencli xiaohongshu note "<full_note_url_with_xsec_token>" -f yaml

Read comments:

opencli xiaohongshu comments "<full_note_url_with_xsec_token>" --limit 5 -f yaml

Browse feed:

opencli xiaohongshu feed -f yaml

Read a user's public notes:

opencli xiaohongshu user "<user_id>" -f yaml

Download media from a note:

opencli xiaohongshu download "<full_note_url_with_xsec_token>" --output "./xiaohongshu-downloads" -f yaml

`note` and `comments` require a full signed note URL from search, feed, or profile results; a bare note ID is insufficient. `download` also accepts note share links, but a profile share link is not a note.

Recommended Workflows

Preflight

1. Check that the daemon and Chrome extension are available:

opencli daemon status

2. Check Xiaohongshu login state before reading search results, profiles, or notes:

opencli xiaohongshu whoami -f yaml --window background --site-session persistent --trace off

`whoami` checks the creator-side session; success does not prove every content page is accessible. If a target page returns `AUTH_REQUIRED`, stop the batch and ask the user to refresh login in Chrome. Preserve network/service errors as such; do not interpret every `whoami` failure as expired login. Do not switch to cookie extraction or unofficial APIs.

If OpenCLI returns `BROWSER_CONNECT` or cannot bind `127.0.0.1:19825`, the daemon may be blocked by the current sandbox. Start or check the daemon from an unrestricted host shell when available, then rerun the same OpenCLI command. Do not use `opencli doctor` for routine checks.

Risk Controls and Local Evidence

  • OpenCLI 2.0.3 internally retries `note`, `comments`, and `download` at most once after an 8-18 second cooldown on a detected soft block. Older versions may fail immediately. This is not a cross-command rate limiter or a guarantee against account restrictions.
  • If a command returns `SECURITY_BLOCK`, or a captcha/account warning appears, stop the whole batch. Do not wrap it in an outer retry loop or switch accounts, sessions, IPs, or tools to continue through the restriction. Leave verification to the user.
  • Run batch commands serially with a deliberate pause between notes. Start with a small probe and expand only to the requested scope; no particular delay guarantees safety.
  • Keep trace capture off by default. Enable `--trace retain-on-failure` only for a bounded diagnostic run. Signed URLs, manifests, traces, screenshots, and account data stay local; redact tokens and identity details from shared reports and never commit them.

Profile Share Links

Do not pass a profile `xhslink.com/m/...` URL directly to `opencli xiaohongshu user` and assume the short-link tail is the user id. In practice, OpenCLI may incorrectly navigate to:

https://www.xiaohongshu.com/user/profile/<short-link-tail>

If the trace shows a `404` for that URL, the `EMPTY_RESULT` error is probably a bad profile id, not proof that the user has no public notes.

For profile share links, first resolve the canonical profile URL:

  • Prefer a real URL like `https://www.xiaohongshu.com/user/profile/<user_id>?xsec_token=...`.
  • If only a short link is available, ask the user to open it while logged in, then read the final URL from the current Chrome tab or recent Chrome history.
  • Use Chrome only for URL resolution or visible-page confirmation. Keep Xiaohongshu data extraction in OpenCLI.

After resolving the canonical profile URL, probe the profile:

opencli xiaohongshu user "<canonical_profile_url>" --limit 5 -f yaml --window background --site-session persistent --trace off

If `search "<creator_name

Read more
@codingsamss
Ships withall-my-ai-needs

跨 Claude Code 与 Codex 两套 agent 的 skill 真源,以及点名安装的 Claude Mods 来源与迁移约定。写入由 agent 执行,人只审校与决策。 把 Claude Code 与 Codex 的可复用能力收敛到一个仓库,按 platform-first 维护:每个平台独立持有自己的 skills/ 与运行约定,同名 skill 允许在两端并存,不强行抽象去重。 仓库要解决的是多端 AI 配置的漂移——GitHub 仓库、本地工作区、本地 CLI

Stars on GitHub

Momentum

stars in total
14
Star history of codingSamss/all-my-ai-needs on GitHub, a chart by star-history.com

Other skills on all-my-ai-needs.

aihot

aihot

查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI…

apifox-cli

apifox-cli

通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD…

apifox-test-case

apifox-test-case

Apifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。

bilibili

bilibili

Read Bilibili (B站) content. Actions: search videos, view hot/rank feeds, read video details, prepare audio, and read subtitles…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about xiaohongshu.

Which coding agents can use xiaohongshu?
xiaohongshu installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.