Agent skill

Xiaohongshu Note Detail

by browser-act in browser-act/skills

Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list.

MITAuto-check passedData & Analytics

Install Xiaohongshu Note Detail

skills CLI
$ npx skills add browser-act/skills --skill xiaohongshu-note-detail -a claude-code

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

GitHub CLI
$ gh skill install browser-act/skills xiaohongshu-note-detail --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/browser-act/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/solutions/social-listening/xiaohongshu-note-detail .claude/skills/xiaohongshu-note-detail && 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
xiaohongshu-note-detail
GitHub stars
6.1k
Token cost
~2.1k tokens
SKILL.md length
871 words
Files
3 (incl. scripts)
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list.

  • Works in 2 steps: Tool Readiness → Login Verification
  • User mentions note detail xiaohongshu
  • SKILL.md covers Language, Objective, Prerequisites and Pre-execution Checks, plus 6 more sections
  • Runs Python scripts from its folder; calls python; reaches xiaohongshu.com

What it does

Xiaohongshu Note Detail is an agent skill from browser-act/skills. Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list. Use when user mentions note detail xiaohongshu, get rednote post, xhs note content, xiaohongshu comment scrape, fetch post comments, scrape xhs comments, rednote note details, xiaohongshu post engagement, xiaohongshu note content, rednote post data, xhs post detail, get xiaohongshu comments, rednote comment list, xiaohongshu note metadata, xhs note…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/extract-note-comments.py` and `scripts/extract-note-detail.py`).

It sits in Data & Analytics, covering Web scraping and Social media marketing. It works with Xiaohongshu. The repository describes itself as: Browser automation CLI built for AI agents. Break through anti-bot walls, hand off to humans across platforms when stuck. Parallel multi-task execution, independent multi-session… The licence is MIT.

When your agent uses it

  • User mentions note detail xiaohongshu
  • Get rednote post
  • Xhs note content
  • Xiaohongshu comment scrape

Example prompts

  • “/xiaohongshu-note-detail”

Requirements

  • Python 3

Workflow steps

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

  1. Tool Readiness
  2. Login Verification

What it can do on your machine

Read from SKILL.md and the folder at commit 11c057b. 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

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • xiaohongshu.com

    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

Xiaohongshu Note Detail loads about 2.1k tokens when it runs. Until then it costs about 142 tokens; SKILL.md has 871 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~142
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from browser-act/skills at commit 11c057b, republished under its MIT licence (© browser-act). 871 words, ~2,067 tokens.

Download SKILL.mdSave it as .claude/skills/xiaohongshu-note-detail/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
xiaohongshu-note-detail
description
Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list. Use when user mentions note detail xiaohongshu, get rednote post, xhs note content, xiaohongshu comment scrape, fetch post comments, scrape xhs comments, rednote note details, xiaohongshu post engagement, xiaohongshu note content, rednote post data, xhs post detail, get xiaohongshu comments, rednote comment list, xiaohongshu note metadata, xhs note scrape, fetch rednote note.

Xiaohongshu — Note Detail & Comments

note_id + xsecToken → note metadata, author info, engagement stats, comment list

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Navigate to a Xiaohongshu note detail page and extract the full note metadata plus its paginated comment list.

Prerequisites

  • Browser opened to https://www.xiaohongshu.com/explore/{note_id}?xsec_token={xsecToken}&xsec_source=pc_search
  • User is logged in (avatar or username visible in the left sidebar)

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Login Verification

If login status for Xiaohongshu has been confirmed in the current session → skip this step.

Otherwise: open https://www.xiaohongshu.com and observe the left sidebar:

  • User avatar or "Me" entry visible → logged in, continue execution
  • "Login" button visible → not logged in, inform the user that login is required, use remote-assist to let the user scan the QR code

User refuses or cannot log in → terminate execution.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.

DOM: extract note detail

Navigate to the note page, wait for Vue SSR state to populate, then extract from window.__INITIAL_STATE__.note.noteDetailMap:

  1. navigate https://www.xiaohongshu.com/explore/{note_id}?xsec_token={xsecToken}&xsec_source=pc_search
  2. wait stable
  3. eval "$(python scripts/extract-note-detail.py {note_id})"

Parameters:

  • {note_id}: note ID (from search result id field or from the note URL)
  • {xsecToken}: security token (from search result xsecToken field)

Output example:

json
{
  "noteId": "69d8cd8c0000000022002295",
  "title": "Not Switzerland! This is a natural grassland in Fujian!!",
  "desc": "Full post body text...",
  "type": "normal",
  "time": 1748390400000,        // publish timestamp (ms)
  "ipLocation": "Fujian",
  "userId": "5bac4e3f7a4c7300016a6b88",
  "nickname": "half-goose",
  "avatar": "https://sns-avatar-...",
  "likedCount": "5149",
  "collectedCount": "4170",
  "commentCount": "390",
  "shareCount": "112",
  "tagList": [{"name": "travel", "type": "topic"}],
  "imageCount": 9
}

Error handling: if error: true is returned, verify the page URL is a note detail page, wait stable has completed, and the note_id matches the URL.

DOM: extract note comments

After navigating to the note page (same page as note detail), extract initial comments already loaded into Vue state:

eval "$(python scripts/extract-note-comments.py {note_id})"

Parameters:

  • {note_id}: same note ID used when navigating

Output example:

json
{
  "count": 10,
  "cursor": "aabbcc112233",     // pass to next page load; empty string when on first page
  "hasMore": true,
  "comments": [
    {
      "id": "6835ae0e000000001203a14c",
      "content": "So beautiful!",
      "likeCount": "23",
      "createTime": 1748390500000,
      "ipLocation": "Guangdong",
      "userId": "5c3a6f020000000007010b9f",
      "nickname": "travel-enthusiast-xw",
      "avatar": "https://sns-avatar-..."
    }
  ]
}

Error handling: if error: true is returned, ensure the note detail page is loaded first (step 3 of note detail component above).

Composite: get full note (detail + initial comments)

Run both extractions on the same page load — no additional navigation needed:

  1. navigate https://www.xiaohongshu.com/explore/{note_id}?xsec_token={xsecToken}&xsec_source=pc_search
  2. wait stable
  3. eval "$(python scripts/extract-note-detail.py {note_id})"
  4. eval "$(python scripts/extract-note-comments.py {note_id})"

Merge results by noteId field.

Pagination

DOM Pagination (comments): Initial page load pre-populates up to 10 comments. To load more:

  1. scroll down --amount 3000
  2. wait stable
  3. eval "$(python scripts/extract-note-comments.py {note_id})"

Each scroll triggers the page to load additional comments into noteDetailMap[noteId].comments. Re-running the extraction script after each scroll retrieves the full accumulated list. Termination: hasMore: false in extraction output.

Show full SKILL.md (335 more words)Show less

Success Criteria

detail.noteId is non-null AND detail.title is non-null

Known Limitations

  • Accessing note detail requires login; without login the page shows a QR code overlay and noteDetailMap is empty
  • xsec_token must correspond to the note_id; mismatched tokens result in a redirect or empty state
  • Comment count in note detail (commentCount) may exceed comments available via DOM scroll — some comments may be filtered or not loaded without deeper scrolling
  • Image content (actual image URLs from imageList) is not extracted by extract-note-detail.py — only imageCount is returned

Execution Efficiency

  • Batch orchestration: Write a bash script to loop through the command templates serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Refer to rate information in "Known Limitations" above to add appropriate intervals. To increase throughput, open multiple stealth browser sessions and distribute work across them — each session has an independent fingerprint so rate limits apply per session
  • Test before batch execution: After writing a batch script, you must first test with 1-2 items to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly
  • Reduce redundant pre-operations: When multiple steps depend on the same prerequisite state, complete them in batch under that state to avoid repeatedly establishing the same state
  • Error resumption: Save results item by item during batch processing; on failure, resume from the breakpoint rather than starting over

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/xiaohongshu-data-xiaohongshu-note-detail.memory.md (working directory is determined by the Agent running the Skill, typically the project root or current working directory)

Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.

After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file. Do not record what note IDs were fetched or how many comments were returned — those are task outputs, not experience.

© browser-act, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in solutions/social-listening/xiaohongshu-note-detail of browser-act/skills.

  • SKILL.md
  • scripts/extract-note-comments.py
  • scripts/extract-note-detail.py

Open the folder on GitHubat commit 11c057b

Compare with similar skills

Xiaohongshu Note Detail 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.

Xiaohongshu Note Detail compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xiaohongshu Note Detail this skillbrowser-act/skills6.1k—~2.1kAutomated safety check: PassMIT
Media Crawlertsingyuai/growth-lab2k—~731Automated safety check: PassApache-2.0
Xiaohongshu Crawlerredfox-data/redfox-community427—~1.5kAutomated safety check: PassNone
Opinions Crawlerinfometa/workbuddyskills348—~2.2kAutomated safety check: PassNone
Agent ReachPanniantong/Agent-Reach95k—~1.4kAutomated safety check: PassMIT
bb-browser Site Commands for OpenClawepiral/bb-browser6.2k—~1kAutomated safety check: PassMIT

Similar skills

  • 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 11 days ago
    Data & AnalyticsAuto-check passed
  • Xiaohongshu Crawler

    redfox-data/redfox-community

    小红书作品爬取工具。根据关键词爬取小红书热门作品数据,支持按日期范围、排序方式筛选,结果以结构化表格展示。当用户需要爬取小红书作品、查询小红书热门内容、搜索小红书爆款笔记时使用。触发词:小红书爬取、小红书作品、小红书爆款、小红书搜索、小红书热门、小红书笔记查询。

    427 GitHub stars~1.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Opinions Crawler

    infometa/workbuddyskills

    基于 OpenCLI 的舆情数据抓取技能。覆盖国内外主流社媒(搜索、用户信息、帖子/视频列表、视频详情及互动量、评论、弹幕等)和商店平台数据爬取。当用户需要抓取舆情数据、采集社媒内容、获取商店评分评论、或者需要安装和配置 OpenCLI 时使用。

    348 GitHub stars~2.2k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Agent Reach

    Panniantong/Agent-Reach

    Routes web research and platform lookups across 16 sites, including Twitter, Reddit, YouTube, Bilibili, Xiaohongshu and GitHub, through one command-line tool.

    95k GitHub stars~1.4k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Runs structured data commands against sites such as Twitter, Reddit, GitHub, YouTube and Zhihu through OpenClaw's browser, reusing your existing login state.

    6.2k GitHub stars~1k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Chrome Daily Update Check

    dragon-hh/ai-boshu-crawler

    Run the AI blogger crawler daily update check for Bilibili, Douyin, Xiaohongshu, and YouTube with Chrome producers only where required, the merged Xiaohongshu profile-video skill, and the yt-dlp…

    106 GitHub stars~1.3k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from browser-act/skills

All 87 skills in this repo
  • Amazon ASIN Lookup

    browser-act/skills

    Fetches structured Amazon product details such as title, price, ratings and availability for a given ASIN through BrowserAct's lookup API template.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Amazon Best Sellers Finder

    browser-act/skills

    Extracts structured Amazon product data for a keyword and marketplace through the BrowserAct API, including titles, prices, ratings, reviews, sales volume and promotions.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Amazon Buy Box Monitor

    browser-act/skills

    Pulls Amazon product details, competing seller prices and seller ratings for a given ASIN through the BrowserAct API, without browser automation.

    6.1k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Analyzes a competitor's Amazon listing by ASIN with BrowserAct data extraction, then reports what it does well, where the market has gaps and opportunity points for your own listing.

    6.1k GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed
  • Pulls structured Amazon search results (titles, ASINs, prices, ratings, specifications) for a keyword and brand through BrowserAct's Amazon Product API template.

    6.1k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Collects structured product data from Amazon search results for a keyword and optional brand, using a BrowserAct script, for market and competitor research.

    6.1k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Works with

Questions about Xiaohongshu Note Detail

What does Xiaohongshu Note Detail do?

Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list. Xiaohongshu Note Detail is an agent skill from browser-act/skills. Fetch Xiaohongshu (RedNote / xhs) note detail and comments by note ID, returning title, description, author info, engagement stats, tags, and paginated comment list.

When should I use Xiaohongshu Note Detail?

Xiaohongshu Note Detail fits situations like: user mentions note detail xiaohongshu; get rednote post; xhs note content; xiaohongshu comment scrape.

How do I install Xiaohongshu Note Detail in Claude Code?

Run `npx skills add browser-act/skills --skill xiaohongshu-note-detail -a claude-code`. Or copy the skill folder (solutions/social-listening/xiaohongshu-note-detail in browser-act/skills) into .claude/skills/xiaohongshu-note-detail in your project. Claude Code loads it when a task matches its description.

How do I install Xiaohongshu Note Detail in Codex?

Run `npx skills add browser-act/skills --skill xiaohongshu-note-detail -a codex`. Or copy the skill folder (solutions/social-listening/xiaohongshu-note-detail in browser-act/skills) into .agents/skills/xiaohongshu-note-detail in your project. Codex loads it when a task matches its description.

Can I use Xiaohongshu Note Detail 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 browser-act/skills --skill xiaohongshu-note-detail -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xiaohongshu-note-detail, .gemini/skills/xiaohongshu-note-detail, .github/skills/xiaohongshu-note-detail and .opencode/skills/xiaohongshu-note-detail in your project.

What does Xiaohongshu Note Detail need to run?

Going by SKILL.md and its folder, Xiaohongshu Note Detail needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Xiaohongshu Note Detail access the network?

SKILL.md names 1 domain. In commands or code: xiaohongshu.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Xiaohongshu Note Detail 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xiaohongshu Note Detail use?

Xiaohongshu Note Detail 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 Xiaohongshu Note Detail use?

About 2.1k tokens (SKILL.md is roughly 8.3k 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 Xiaohongshu Note Detail?

Skills that share tags, products or a category with Xiaohongshu Note Detail: Media Crawler (tsingyuai/growth-lab, 2k stars), Xiaohongshu Crawler (redfox-data/redfox-community, 427 stars), Opinions Crawler (infometa/workbuddyskills, 348 stars) and Agent Reach (Panniantong/Agent-Reach, 95k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xiaohongshu Note Detail?

browser-act (a GitHub organization) maintains it in browser-act/skills, which has 6,126 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on August 24, 2026.

Source: browser-act/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.