redbook

redbook is a skill for Claude Code, Codex from ZJU-REAL/Easel. It costs 95 tokens per session (1,496 once invoked), scanned A, original, Apache-2.0.

A read-only Xiaohongshu analysis tool for searching posts, collecting engagement data, studying popular posts, building creator profiles, and checking for possible reach restrictions.

In plain words
What is it for?
Use it to research topics, compare post performance, identify patterns in popular content, and inspect a creator account.
Why use it?
It separates research from publishing and interaction, so you can study content without changing posts or comments.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to research topics, compare post performance, identify patterns in popular content, and inspect a creator account.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zju-real/easel/skill-xhs-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZJU-REAL/Easel --skill skill-xhs-analyzer
Clone the repo
git clone --depth 1 https://github.com/ZJU-REAL/Easel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/zju-real/easel/skill-xhs-analyzer/github.svg)](https://agentmods.dev/skills/zju-real/easel/skill-xhs-analyzer)
Your own site
<a href="https://agentmods.dev/skills/zju-real/easel/skill-xhs-analyzer"><img src="https://agentmods.dev/badge/skills/zju-real/easel/skill-xhs-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for redbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/zju-real/easel/skill-xhs-analyzer"><img src="https://agentmods.dev/badge/skills/zju-real/easel/skill-xhs-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.01496
Opus 5 $0.00048 $0.00748
Sonnet 5 $0.00019 $0.00299
Haiku 4.5 $0.00010 $0.00150

Measured 8d ago against content hash a377eb67dee2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

redbook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 17 executable files (scripts/postinstall.js, scripts/preuninstall.js, src/cli.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openclaw/skill-xhs-analyzer/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Redbook — 小红书内容分析 CLI

redbook CLI 搜索笔记、读内容、分析创作者、提取爆款规律、研究选题。OpenClaw 用户: clawhub install redbooknpm install -g @lucasygu/redbook

⚠️ 环境依赖(当前环境不可用)

本 SKILL 依赖以下运行时,在当前"macOS 专属 / Linux"环境下不可用,属于死代码保留,仅供部署到 macOS 桌面时启用:

依赖 说明
macOS cookie 抽取用原生 keychain(os: [macos]
Node.js ≥ 22 运行 @lucasygu/redbook CLI
redbook binary clawhub install redbook / npm 安装
Chrome 登录 cookie 需在 Chrome 登录 xiaohongshu.com(或 Safari/Firefox + --cookie-source
puppeteer-core + marked render 卡片渲染需要(可选)

与 skill-xhs-publisher 的分工边界

  • xhs-analyzer(本 SKILL) = 分析:搜索/数据/爆款规律/关键词矩阵/创作者画像/限流检测。
  • skill-xhs-publisher = 发布 + 互动运营:发图文/视频、日常评论/回复/点赞收藏、内容数据、通知抓取。
  • 本 SKILL 只读。不得调用 comment/reply/like/collect/post 等写命令;发布交给 skill-xhs-publisher,评论与回复交给 skill-xhs-comment-reply,由对应 Skill 执行确认和出站安全检查。

Research discipline(先读这条)

XHS 风控节流的是读取,不只是写入。任何读超过几篇笔记的研究,都必须references/research-loop.md 的研究循环 —— 默认 human-paced(~20 s/篇,一次一篇)。在紧循环里猛敲 read/comments/analyze-viral 会在几十次内触发验证码/IP 封(300012),账号降级数小时。⚡ Fast 模式仅应急,需打印警告 + 用户明确 opt-in。绝不并行或零延迟发读。

Usage

redbook search "AI编程" --json       # 搜索笔记
redbook read <webUrl> --json         # 读笔记(用 search 返回的 webUrl,含 xsec_token)
redbook user <profileUrl> --json     # 创作者档案
redbook analyze-viral <webUrl> --json # 单篇爆款分析(0-100 分)
redbook account-report --file ids.txt --json  # 批量账号指标
redbook health --all --json          # 笔记限流检测

始终加 --json 供程序解析。全部命令、选项、JSON 结构见 references/commands.md

能力概览

分析能力拆成 13 个可组合模块(A–M)+ 组合工作流,详见 references/modules.md

模块 能力
A 关键词参与度矩阵 · B 跨主题热力图 · C 参与度信号 需求版图
D 创作者画像 · D2 已知账号报告 · E 内容形态分解 竞争/形态
F 机会评分 · G 受众推断 · H 内容头脑风暴 策略产出
I 评论洞察 · J 爆款结构拆解 · K 互动机会识别 只读分析
L 卡片渲染(离线) · M 笔记限流检测 产出/健康

组合示例:快速主题扫描 A→C→F;完整细分分析 A→B→C→D→E→F→G→H;单篇深挖 analyze-viral

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 91 lines · 95 tokens per session scan A a377eb67dee2

Subscribe to this mod's changes

redbook is a skill published in the GitHub repository ZJU-REAL/Easel (841 stars, last pushed yesterday), licensed Apache-2.0. It adds 95 tokens to every session and 1,496 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.