Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

redbook

FreeRuns bundled scriptsNot checked

Search, read, analyze, and automate Xiaohongshu (小红书) content via CLI

aAAaqwqby aAAaqwq★ 123 GitHub stars

About this skill

Redbook — Xiaohongshu CLI

Use the redbook CLI to search notes, read content, analyze creators, automate engagement, and research topics on Xiaohongshu (小红书/RED).

OpenClaw users: Install via clawhub install redbook or npm install -g @lucasygu/redbook.

Usage

/redbook search "AI编程"              # Search notes
/redbook read <url>                   # Read a note
/redbook user <userId>                # Creator profile
/redbook analyze <userId>             # Full creator analysis (profile + posts)

Quick Reference

Intent Command
Search notes redbook search "keyword" --json
Read a note redbook read <url> --json
Get comments redbook comments <url> --json --all
Creator profile redbook user <userId> --json
Creator's posts redbook user-posts <userId> --json
Browse feed redbook feed --json
Search hashtags redbook topics "keyword" --json
Analyze viral note redbook analyze-viral <url> --json
Extract content template redbook viral-template <url1> <url2> --json
Post a comment redbook comment <url> --content "text"
Reply to comment redbook reply <url> --comment-id <id> --content "text"
Batch reply (preview) redbook batch-reply <url> --strategy questions --dry-run
Like a note redbook like <url>
Unlike a note redbook like <url> --undo
List favorites redbook favorites --json or redbook favorites <userId> --json
Collect a note redbook collect <url>
Remove from collection redbook uncollect <url>
List followers redbook followers <userId> --json
List following redbook following <userId> --json
Delete own note redbook delete <url>
Check note health redbook health --json or redbook health --all --json
List user boards redbook boards or redbook boards <userId> --json
List album notes redbook board <board-url> or redbook board <boardId> --json
Render markdown to cards redbook render content.md --style xiaohongshu
Publish image note redbook post --title "..." --body "..." --images img.jpg
Check connection redbook whoami

Always add --json when parsing output programmatically. Without it, output is human-formatted text.


XHS Platform Signals

XHS is not Twitter or Instagram. These platform-specific engagement ratios reveal content type and audience behavior.

Collect/Like Ratio (collected_count / liked_count)

XHS's "collect" (收藏) is a save-for-later mechanic — users build personal reference libraries. This ratio is the strongest signal of content utility.

Ratio Classification Meaning
>40% 工具型 (Reference) Tutorial, checklist, template — users bookmark for reuse
20–40% 认知型 (Insight) Thought-provoking but not saved for later
<20% 娱乐型 (Entertainment) Consumed and forgotten — engagement is passive

Comment/Like Ratio (comment_count / liked_count)

Measures how much a note triggers conversation.

Ratio Classification Meaning
>15% 讨论型 (Discussion) Debate, sharing experiences, asking questions
5–15% 正常互动 (Normal) Typical engagement pattern
<5% 围观型 (Passive) Users like but don't engage further

Share/Like Ratio (share_count / liked_count)

Measures social currency — whether users share to signal identity or help others.

Ratio Meaning
>10% 社交货币 — people share to signal taste, identity, or help friends
<10% Content consumed individually, not forwarded

Search Sort Semantics

Sort What It Reveals
--sort popular Proven ceiling — the best a keyword can do
--sort latest Content velocity — how much is being posted now
--sort general Algorithm-weighted blend (default)

Content Form Dynamics

Form Tendency
图文 (image-text, type: "normal") Higher collect rate — users save reference content
视频 (video, type: "video") Higher like rate — easier to consume passively

Analysis Modules

Each module is a composable building block. Combine them for different analysis depths.

Module A: Keyword Engagement Matrix

Answers: Which keywords have the highest engagement ceiling? Which are saturated vs. underserved?

Commands:

redbook search "keyword1" --sort popular --json
redbook search "keyword2" --sort popular --json
# Repeat for each keyword in your list

Fields to extract from each result's items[]:

  • items[].note_card.interact_info.liked_count — likes (may use Chinese numbers: "1.5万" = 15,000)
  • items[].note_card.interact_info.collected_count — collects
  • items[].note_card.interact_info.comment_count — comments
  • items[].note_card.user.nickname — author

How to interpret:

  • Top1 ceiling = items[0] likes — the best-performing note for
Full SKILL.md on GitHub

Install redbook in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Bash
Read
Write
Glob
Grep

Bundled files

CLAUDE.mdLICENSEREADME.mddocs/content-language-strategy.mddocs/research-task-1789.mdpackage-lock.jsonpackage.jsonscripts/postinstall.jsscripts/preuninstall.jssocial-preview.htmlsocial-preview.pngsrc/cli.tstsconfig.json

FAQ

What does the redbook skill do?

Search, read, analyze, and automate Xiaohongshu (小红书) content via CLI

How do I install the redbook skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the redbook skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare redbook with