[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Y20MACCQ7HR144DY0JMNP":3,"skill-same:01M75Y20MACCQ7HR144DY0JMNP":125},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M75Y20MACCQ7HR144DY0JMNP","redbook",null,"Search, read, analyze, and automate Xiaohongshu (小红书) content via CLI","aAAaqwq\u002Fopenclaw-team","aAAaqwq","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163369189?v=4","01M75WCZBK64XMP4RKNQB2ZV08","Daniel Li","01M75WCZCCEHPJV69BNPNXJY9E",2,"MIT","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\ndescription: Search, read, analyze, and automate Xiaohongshu (小红书) content via CLI\nallowed-tools: Bash, Read, Write, Glob, Grep\n# OpenClaw \u002F ClawHub metadata (clawhub install redbook)\nname: redbook\nversion: 0.5.0\nmetadata:\n  openclaw:\n    requires:\n      bins:\n        - redbook\n    install:\n      - kind: node\n        package: \"@lucasygu\u002Fredbook\"\n        bins: [redbook]\n    os: [macos]\n    homepage: https:\u002F\u002Fgithub.com\u002Flucasygu\u002Fredbook\ntags:\n  - xiaohongshu\n  - social-media\n  - analytics\n  - content-ops\n---\n\n# Redbook — Xiaohongshu CLI\n\nUse the `redbook` CLI to search notes, read content, analyze creators, automate engagement, and research topics on Xiaohongshu (小红书\u002FRED).\n\n**OpenClaw users:** Install via `clawhub install redbook` or `npm install -g @lucasygu\u002Fredbook`.\n\n## Usage\n\n```\n\u002Fredbook search \"AI编程\"              # Search notes\n\u002Fredbook read \u003Curl>                   # Read a note\n\u002Fredbook user \u003CuserId>                # Creator profile\n\u002Fredbook analyze \u003CuserId>             # Full creator analysis (profile + posts)\n```\n\n## Quick Reference\n\n| Intent | Command |\n|--------|---------|\n| Search notes | `redbook search \"keyword\" --json` |\n| Read a note | `redbook read \u003Curl> --json` |\n| Get comments | `redbook comments \u003Curl> --json --all` |\n| Creator profile | `redbook user \u003CuserId> --json` |\n| Creator's posts | `redbook user-posts \u003CuserId> --json` |\n| Browse feed | `redbook feed --json` |\n| Search hashtags | `redbook topics \"keyword\" --json` |\n| Analyze viral note | `redbook analyze-viral \u003Curl> --json` |\n| Extract content template | `redbook viral-template \u003Curl1> \u003Curl2> --json` |\n| Post a comment | `redbook comment \u003Curl> --content \"text\"` |\n| Reply to comment | `redbook reply \u003Curl> --comment-id \u003Cid> --content \"text\"` |\n| Batch reply (preview) | `redbook batch-reply \u003Curl> --strategy questions --dry-run` |\n| Like a note | `redbook like \u003Curl>` |\n| Unlike a note | `redbook like \u003Curl> --undo` |\n| List favorites | `redbook favorites --json` or `redbook favorites \u003CuserId> --json` |\n| Collect a note | `redbook collect \u003Curl>` |\n| Remove from collection | `redbook uncollect \u003Curl>` |\n| List followers | `redbook followers \u003CuserId> --json` |\n| List following | `redbook following \u003CuserId> --json` |\n| Delete own note | `redbook delete \u003Curl>` |\n| Check note health | `redbook health --json` or `redbook health --all --json` |\n| List user boards | `redbook boards` or `redbook boards \u003CuserId> --json` |\n| List album notes | `redbook board \u003Cboard-url>` or `redbook board \u003CboardId> --json` |\n| Render markdown to cards | `redbook render content.md --style xiaohongshu` |\n| Publish image note | `redbook post --title \"...\" --body \"...\" --images img.jpg` |\n| Check connection | `redbook whoami` |\n\n**Always add `--json`** when parsing output programmatically. Without it, output is human-formatted text.\n\n---\n\n## XHS Platform Signals\n\nXHS is not Twitter or Instagram. These platform-specific engagement ratios reveal content type and audience behavior.\n\n### Collect\u002FLike Ratio (`collected_count \u002F liked_count`)\n\nXHS's \"collect\" (收藏) is a save-for-later mechanic — users build personal reference libraries. This ratio is the strongest signal of content utility.\n\n| Ratio | Classification | Meaning |\n|-------|---------------|---------|\n| >40% | 工具型 (Reference) | Tutorial, checklist, template — users bookmark for reuse |\n| 20–40% | 认知型 (Insight) | Thought-provoking but not saved for later |\n| \u003C20% | 娱乐型 (Entertainment) | Consumed and forgotten — engagement is passive |\n\n### Comment\u002FLike Ratio (`comment_count \u002F liked_count`)\n\nMeasures how much a note triggers conversation.\n\n| Ratio | Classification | Meaning |\n|-------|---------------|---------|\n| >15% | 讨论型 (Discussion) | Debate, sharing experiences, asking questions |\n| 5–15% | 正常互动 (Normal) | Typical engagement pattern |\n| \u003C5% | 围观型 (Passive) | Users like but don't engage further |\n\n### Share\u002FLike Ratio (`share_count \u002F liked_count`)\n\nMeasures social currency — whether users share to signal identity or help others.\n\n| Ratio | Meaning |\n|-------|---------|\n| >10% | 社交货币 — people share to signal taste, identity, or help friends |\n| \u003C10% | Content consumed individually, not forwarded |\n\n### Search Sort Semantics\n\n| Sort | What It Reveals |\n|------|----------------|\n| `--sort popular` | Proven ceiling — the best a keyword can do |\n| `--sort latest` | Content velocity — how much is being posted now |\n| `--sort general` | Algorithm-weighted blend (default) |\n\n### Content Form Dynamics\n\n| Form | Tendency |\n|------|----------|\n| 图文 (image-text, `type: \"normal\"`) | Higher collect rate — users save reference content |\n| 视频 (video, `type: \"video\"`) | Higher like rate — easier to consume passively |\n\n---\n\n## Analysis Modules\n\nEach module is a composable building block. Combine them for different analysis depths.\n\n### Module A: Keyword Engagement Matrix\n\n**Answers:** Which keywords have the highest engagement ceiling? Which are saturated vs. underserved?\n\n**Commands:**\n```bash\nredbook search \"keyword1\" --sort popular --json\nredbook search \"keyword2\" --sort popular --json\n# Repeat for each keyword in your list\n```\n\n**Fields to extract** from each result's `items[]`:\n- `items[].note_card.interact_info.liked_count` — likes (may use Chinese numbers: \"1.5万\" = 15,000)\n- `items[].note_card.interact_info.collected_count` — collects\n- `items[].note_card.interact_info.comment_count` — comments\n- `items[].note_card.user.nickname` — author\n\n**How to interpret:**\n- **Top1 ceiling** = `items[0]` likes — the best-performing note for this keyword. This is the proven demand signal.\n- **Top10 average** = mean likes across `items[0..9]` — how well an average top note does.\n- A high Top1 but low Top10 avg means one outlier dominates; hard to compete.\n- A high Top10 avg means consistent demand; easier to break in.\n\n**Output:** Keyword × engagement table ranked by Top1 ceiling.\n\n| Keyword | Top1 Likes | Top10 Avg | Top1 Collects | Collect\u002FLike |\n|---------|-----------|-----------|---------------|-------------|\n| keyword1 | 12,000 | 3,200 | 5,400 | 45% |\n| keyword2 | 8,500 | 4,100 | 1,200 | 14% |\n\n---\n\n### Module B: Cross-Topic Heatmap\n\n**Answers:** Which topic × scene intersections have demand? Where are the content gaps?\n\n**Commands:**\n```bash\n# Combine base topic with scene\u002Fangle keywords\nredbook search \"base topic + scene1\" --sort popular --json\nredbook search \"base topic + scene2\" --sort popular --json\nredbook search \"base topic + scene3\" --sort popular --json\n```\n\n**Fields to extract:** Same as Module A — Top1 `liked_count` for each combination.\n\n**How to interpret:**\n- High Top1 = proven demand for this intersection\n- Zero or very low results = content gap (opportunity or no demand — check if the combination makes sense)\n- Compare across scenes to find which angles resonate most with the base topic\n\n**Output:** Base × Scene heatmap.\n\n```\n             scene1    scene2    scene3    scene4\nbase topic   ████ 8K   ██ 2K     ████ 12K  ░░ 200\n```\n\n---\n\n### Module C: Engagement Signal Analysis\n\n**Answers:** What type of content is each keyword? Reference, insight, or entertainment?\n\n**Commands:** Use search results from Module A, or for a single note:\n```bash\nredbook analyze-viral \"\u003CnoteUrl>\" --json\n```\n\n**Fields to extract:**\n- From search results: compute ratios from `interact_info` fields\n- From `analyze-viral`: use pre-computed `engagement.collectToLikeRatio`, `engagement.commentToLikeRatio`, `engagement.shareToLikeRatio`\n\n**How to interpret:** Apply the ratio benchmarks from [XHS Platform Signals](#xhs-platform-signals) above.\n\n**Output:** Per-keyword or per-note classification.\n\n| Keyword | Collect\u002FLike | Comment\u002FLike | Type |\n|---------|-------------|-------------|------|\n| keyword1 | 45% | 8% | 工具型 + 正常互动 |\n| keyword2 | 12% | 22% | 娱乐型 + 讨论型 |\n\n---\n\n### Module D: Creator Discovery & Profiling\n\n**Answers:** Who are the key creators in this niche? What are their strategies?\n\n**Commands:**\n```bash\n# 1. Collect unique user_ids from search results across keywords\n#    Extract from items[].note_card.user.user_id\n\n# 2. For each creator:\nredbook user \"\u003CuserId>\" --json\nredbook user-posts \"\u003CuserId>\" --json\n```\n\n**Fields to extract:**\n- From `user`: `interactions[]` where `type === \"fans\"` → follower count\n- From `user-posts`: `notes[].interact_info.liked_count` for all posts → compute avg, median, max\n- From `user-posts`: `notes[].display_title` → content patterns, posting frequency\n\n**How to interpret:**\n- **Avg vs. Median likes:** Large gap means viral outliers inflate the average. Median is the \"true\" baseline.\n- **Max \u002F Median ratio:** >5× means they've had breakout hits. Study those notes specifically.\n- **Post frequency:** Count notes to estimate posting cadence. Prolific creators (>3\u002Fweek) vs. quality-focused (\u003C1\u002Fweek).\n\n**Output:** Creator comparison table.\n\n| Creator | Followers | Avg Likes | Median | Max | Posts | Style |\n|---------|----------|-----------|--------|-----|-------|-------|\n| @creator1 | 12万 | 3,200 | 1,800 | 45,000 | 89 | Tutorial |\n| @creator2 | 5.4万 | 8,100 | 6,500 | 22,000 | 34 | Story |\n\n---\n\n### Module E: Content Form Breakdown\n\n**Answers:** Do image-text or video notes perform better for this topic?\n\n**Commands:**\n```bash\nredbook search \"keyword\" --type image --sort popular --json\nredbook search \"keyword\" --type video --sort popular --json\n```\n\n**Fields to extract:**\n- Compare Top1 and Top10 avg `liked_count` and `collected_count` between the two result sets\n- Note the `type` field: `\"normal\"` = image-text, `\"video\"` = video\n\n**Output:** Form × engagement table.\n\n| Form | Top1 Likes | Top10 Avg | Collect\u002FLike |\n|------|-----------|-----------|-------------|\n| 图文 | 8,000 | 2,400 | 42% |\n| 视频 | 15,000 | 5,100 | 18% |\n\n---\n\n### Module F: Opportunity Scoring\n\n**Answers:** Which keywords should I target? Where is the best effort-to-reward ratio?\n\n**Input:** Keyword matrix from Module A.\n\n**Scoring logic:**\n- **Demand** = Top1 likes ceiling (proven audience size)\n- **Competition** = density of high-engagement results (how many notes in Top10 have >1K likes)\n- **Score** = Demand × (1 \u002F Competition density)\n\n**Tier thresholds** (based on Top1 likes):\n\n| Tier | Top1 Likes | Meaning |\n|------|-----------|---------|\n| S | >100,000 (10万+) | Massive demand — hard to compete but huge upside |\n| A | 20,000–100,000 | Strong demand — competitive but winnable |\n| B | 5,000–20,000 | Moderate demand — good for growing accounts |\n| C | \u003C5,000 | Niche — low competition, low ceiling |\n\n**Output:** Tiered keyword list.\n\n| Tier | Keyword | Top1 | Competition | Opportunity |\n|------|---------|------|-------------|------------|\n| A | keyword1 | 45K | Medium (6\u002F10 >1K) | High |\n| B | keyword3 | 12K | Low (2\u002F10 >1K) | Very High |\n| S | keyword2 | 120K | High (10\u002F10 >1K) | Medium |\n\n---\n\n### Module G: Audience Inference\n\n**Answers:** Who is the audience for this niche? What do they want?\n\n**Input:** Engagement ratios from Module C + comment themes from `analyze-viral` + content patterns.\n\n**Fields to extract** from `analyze-viral` JSON:\n- `comments.themes[]` — recurring phrases and keywords from comment section\n- `comments.questionRate` — % of comments that are questions (learning intent)\n- `engagement.collectToLikeRatio` — save behavior signals intent\n- `hook.hookPatterns[]` — what title patterns attract this audience\n\n**Inference rules:**\n- High collect rate + high question rate → learning-oriented audience (students, professionals)\n- High comment rate + emotional themes → community-oriented audience (sharing experiences)\n- High share rate → aspiration-oriented audience (lifestyle, identity signaling)\n- Comment language patterns → age\u002Feducation signals (formal = older, slang = younger)\n\n**Output:** Audience persona summary — demographics, intent, content preferences.\n\n---\n\n### Module H: Content Brainstorm\n\n**Answers:** What specific content should I create, backed by data?\n\n**Input:** Opportunity scores (Module F) + audience persona (Module G) + heatmap gaps (Module B).\n\n**For each content idea, specify:**\n- **Target keyword** — from opportunity scoring\n- **Hook angle** — based on `hookPatterns` that work for this niche\n- **Content type** — 工具型\u002F认知型\u002F娱乐型 based on what the audience wants\n- **Form** — 图文 or 视频 based on Module E\n- **Engagement target** — realistic based on Top10 avg for this keyword\n- **Competitive reference** — specific note URL that proves this angle works\n\n**Output:** Ranked content ideas with data backing.\n\n| # | Keyword | Hook Angle | Type | Target Likes | Reference |\n|---|---------|-----------|------|-------------|-----------|\n| 1 | keyword3 | \"N个方法...\" (List) | 工具型 图文 | 5K+ | [top note URL] |\n| 2 | keyword1 | \"为什么...\" (Question) | 认知型 视频 | 10K+ | [top note URL] |\n\n---\n\n### Module I: Comment Operations\n\n**Answers:** Which comments deserve a reply? What is the comment quality distribution?\n\n**Commands:**\n```bash\n# 1. Fetch all comments\nredbook comments \"\u003CnoteUrl>\" --all --json\n\n# 2. Preview reply candidates (dry run)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions --dry-run --json\n\n# 3. Execute replies with template (5 min delay with ±30% jitter)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions \\\n  --template \"感谢提问！关于{content}，...\" \\\n  --max 10\n```\n\n**Fields to extract from `--dry-run` JSON:**\n- `candidates[].commentId` — target comments\n- `candidates[].isQuestion` — boolean, detected question\n- `candidates[].likes` — engagement signal\n- `candidates[].hasSubReplies` — whether already answered\n- `skipped` — how many comments were filtered out\n- `totalComments` — total fetched\n\n**Strategies:**\n- `questions` — replies to comments ending with `？` or `?` (learning-oriented audience)\n- `top-engaged` — replies to highest-liked comments (maximum visibility)\n- `all-unanswered` — replies to comments with no existing sub-replies (fill gaps)\n\n**How to interpret:**\n- High question rate (>15%) = audience is learning-oriented → reply to build authority\n- High top-engaged comments (>100 likes) = reply to visible comments for maximum reach\n- Many unanswered comments = engagement gap, opportunity to increase reply rate\n\n**Safety:** Hard cap 30 replies per batch, minimum 3-minute delay with ±30% jitter (default 5 min), `--dry-run` by default (no template = preview only), immediate stop on captcha. See [Rate Limits & Safety](#rate-limits--safety) for details.\n\n**Output:** Reply plan table with candidate comments, strategy match reason, and status.\n\n---\n\n### Module J: Viral Replication\n\n**Answers:** What structural template can I extract from successful notes to guide new content creation?\n\n**Commands:**\n```bash\n# 1. Find top notes for a keyword\nredbook search \"keyword\" --sort popular --json\n\n# 2. Extract structural template from 2-3 top performers\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\n```\n\n**Fields to extract from `viral-template` JSON:**\n- `dominantHookPatterns[]` — hook types appearing in majority of notes\n- `titleStructure.commonPatterns[]` — specific title formula\n- `titleStructure.avgLength` — target title length\n- `bodyStructure.lengthRange` — target word count [min, max]\n- `bodyStructure.paragraphRange` — target paragraph count\n- `engagementProfile.type` — reference\u002Finsight\u002Fentertainment\n- `audienceSignals.commonThemes[]` — what the audience talks about\n\n**How to interpret:**\n- Consistent hook patterns across notes = proven formula for this niche\n- Narrow body length range = audience has clear content length preference\n- High collect\u002Flike in profile = audience saves content → create reference material\n- Common comment themes = topics to address in new content\n\n**Composition with other modules:**\n- Uses Module A results to identify top URLs for template extraction\n- Feeds into Module H (Content Brainstorm) as structural constraint\n- Uses Module C classification to validate engagement profile\n\n**Output:** Content template spec — the structural skeleton for content creation. An LLM (via the composed workflow) uses this template to generate actual title, body, hashtags, and cover image prompt.\n\n---\n\n### Module K: Engagement Automation\n\n**Answers:** How should I manage ongoing engagement with my audience?\n\nThis module is a workflow that composes Modules I and J with human oversight.\n\n**Workflow:**\n1. **Monitor** — `redbook comments \"\u003CmyNoteUrl>\" --all --json` to fetch recent comments\n2. **Filter** — `redbook batch-reply --strategy questions --dry-run` to identify reply candidates\n3. **Review** — Human reviews dry-run output (or LLM reviews with persona guidelines)\n4. **Execute** — `redbook batch-reply --strategy questions --template \"...\" --max 10`\n5. **Report** — Summary of replies sent, errors encountered, rate limit status\n\n**Safety rules:**\n- Always `--dry-run` first, human approval before execution\n- Maximum 30 replies per session (hard cap)\n- Minimum 3-minute delay between replies, default 5 minutes, with ±30% random jitter\n- Never reply to the same comment twice (check `hasSubReplies`)\n- Stop immediately on captcha — do not retry\n- See [Rate Limits & Safety](#rate-limits--safety) for XHS risk control thresholds\n\n**Anti-spam guidelines:**\n- Vary reply templates across batches\n- Limit to 1-2 batch runs per note per day\n- Prioritize quality (targeted strategy) over quantity\n- Uniform timing patterns trigger bot detection — jitter is applied automatically\n\n---\n\n### Module L: Card Rendering\n\n**Answers:** How do I turn markdown content into Xiaohongshu-ready image cards?\n\n**Commands:**\n```bash\n# Render markdown to styled PNG cards\nredbook render content.md --style xiaohongshu\n\n# Custom style and output directory\nredbook render content.md --style dark --output-dir .\u002Fcards\n\n# JSON output (for programmatic use)\nredbook render content.md --json\n```\n\n**Input:** Markdown file with YAML frontmatter:\n```markdown\n---\nemoji: \"🚀\"\ntitle: \"5个AI效率技巧\"\nsubtitle: \"Claude Code 实战\"\n---\n\n## 技巧一：...\nContent here...\n\n---\n\n## 技巧二：...\nMore content...\n```\n\n**Output:** `cover.png` + `card_1.png`, `card_2.png`, ... in the same directory.\n\n**Card specs:**\n- **Size:** 1080×1440 (3:4 ratio, standard XHS image)\n- **DPR:** 2 (retina quality, actual output 2160×2880)\n- **Styles:** purple, xiaohongshu, mint, sunset, ocean, elegant, dark\n\n**Pagination modes:**\n- `auto` (default) — smart split on heading\u002Fparagraph boundaries using character-count heuristic\n- `separator` — manual split on `---` in markdown\n\n**How to interpret:**\n- Uses the user's existing Chrome for rendering (via `puppeteer-core`) — no browser download needed\n- Purely offline — no XHS API or cookies required\n- Output images are ready for `redbook post --images cover.png card_1.png ...`\n\n**Dependencies:** Requires `puppeteer-core` and `marked` (optional, install with `npm install -g puppeteer-core marked`).\n\n**Composition with other modules:**\n- Pairs with Module H (Content Brainstorm) — generate content ideas, write markdown, render to cards\n- Pairs with Module J (Viral Replication) — extract template, write content matching the template, render\n- Output feeds into `redbook post --images` for publishing\n\n---\n\n### Module M: Note Health Check (限流检测)\n\n**Answers:** Are any of my notes being secretly rate-limited by XHS?\n\nXHS assigns a hidden `level` field to each note in the creator backend API. This level controls recommendation distribution but is **never shown in the UI**. Your note may look \"normal\" while secretly receiving zero recommendations.\n\n**Commands:**\n```bash\n# Check all notes (first page)\nredbook health\n\n# Check all pages\nredbook health --all\n\n# JSON output for programmatic use\nredbook health --all --json\n```\n\n**Level definitions:**\n\n| Level | Status | Meaning |\n|-------|--------|---------|\n| 4 | 🟢 Normal | Full recommendation distribution |\n| 2-3 | 🟡 Baseline | Basically normal, minor constraints |\n| 1 | ⚪ New | Under review (new post) |\n| -1 | 🔴 Soft limit | Mild throttling, decreased recommendations |\n| -5 to -101 | 🔴 Moderate | Moderate throttling, minimal promotion |\n| -102 | ⛔ Severe | Irreversible — must delete and repost |\n\n**Additional checks:**\n- **Sensitive word detection** — flags titles containing automation\u002FAI keywords (自动化, AI生成, 批量, etc.)\n- **Tag count warning** — flags notes with >5 hashtags (risk factor)\n\n**How to interpret:**\n- Level -1 or below = your note is being throttled. Consider editing or deleting + reposting.\n- Level -102 = irreversible. Delete the note and create fresh content.\n- Sensitive word hits = risky title keywords that may trigger throttling. Rephrase.\n- Excessive tags = potential spam signal. Use 3-5 targeted tags.\n\n**Output:** Terminal dashboard with color-coded distribution summary, limited notes list, and risk factor warnings.\n\n**Discovery credit:** [@xxx111god](https:\u002F\u002Fx.com\u002Fxxx111god) — [xhs-note-health-checker](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fxhs-note-health-checker)\n\n---\n\n## Composed Workflows\n\nCombine modules for different analysis depths.\n\n### Quick Topic Scan (~5 min)\n**Modules:** A → C → F\n\nSearch 3–5 keywords, classify engagement type, rank opportunities. Good for quickly validating whether a niche is worth deeper research.\n\n### Content Planning\n**Modules:** A → B → E → F → H\n\nBuild keyword matrix, map topic × scene intersections, check content form performance, score opportunities, brainstorm specific content ideas.\n\n### Creator Competitive Analysis\n**Modules:** A → D\n\nFind who dominates a niche and study their content strategy, posting frequency, and engagement patterns.\n\n### Full Niche Analysis\n**Modules:** A → B → C → D → E → F → G → H\n\nThe comprehensive playbook — keyword landscape, cross-topic heatmap, engagement signals, creator profiles, content form analysis, opportunity scoring, audience personas, and data-backed content ideas.\n\n### Single Note Deep-Dive\n**Command:** `redbook analyze-viral \"\u003Curl>\" --json`\n\nNo module composition needed — `analyze-viral` returns hook analysis, engagement ratios, comment themes, author baseline comparison, and a 0-100 viral score in one call.\n\n### Viral Pattern Research → Content Template\n```bash\n# 1. Find top notes\nredbook search \"keyword\" --sort popular --json\n\n# 2. Extract template from top 3 notes (replaces manual synthesis)\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\n```\n\n`viral-template` automates what previously required manual synthesis across `analyze-viral` results. It outputs a `ContentTemplate` JSON that captures dominant hooks, body structure ranges, engagement profile, and audience signals.\n\n### Reply Management\n**Modules:** I\n\nSingle-module workflow for managing comment engagement on your notes. Use `batch-reply --dry-run` to audit, then execute with a template.\n\n### Content Replication\n**Modules:** A → J → H → L\n\nKeyword research → viral template extraction → data-backed content brainstorm → render to image cards. The template provides structural constraints that guide Module H's content ideas. Module L renders the final markdown to XHS-ready PNGs.\n\n### Content Creation End-to-End\n**Modules:** A → J → H → L → `post`\n\nThe full pipeline: research keywords → extract viral template → brainstorm content → write markdown → render to styled image cards → publish via `redbook post --images cover.png card_1.png ...`\n\n### Account Health Monitoring\n**Modules:** M\n\nRun `redbook health --all` periodically to catch throttled notes early. If level drops below 1, investigate the note's content for policy violations. Combine with Module I to check if throttled notes still have unanswered comments worth replying to.\n\n### Full Operations\n**Modules:** A → C → I → J → K → M\n\nComprehensive automation playbook — keyword analysis, engagement classification, comment operations, viral replication templates, and engagement automation workflow.\n\n---\n\n## Rate Limits & Safety\n\nXHS enforces aggressive anti-spam (风控) that detects automated behavior through device fingerprinting, activity ratio monitoring, and timing pattern analysis. The CLI applies safe defaults based on platform research.\n\n### Safe Thresholds\n\n| Action | Safe Interval | CLI Default | Hard Cap |\n|--------|--------------|-------------|----------|\n| Post a note | 3-4 hours (2-3 notes\u002Fday max) | N\u002FA (manual) | — |\n| Comment | ≥3 minutes | N\u002FA (manual) | — |\n| Reply | ≥3 minutes | N\u002FA (manual) | — |\n| Batch reply delay | ≥3 minutes | 5 min ±30% jitter | — |\n| Batch reply count | — | 10 | 30 |\n\n### Anti-Detection Measures\n\n- **Timing jitter:** ±30% random variation on all batch delays. Uniform intervals are a bot signature.\n- **Hard caps:** Maximum 30 replies per batch (down from 50). No override.\n- **Rate limit warnings:** `post`, `comment`, and `reply` commands display safe interval reminders after each action.\n- **Captcha circuit breaker:** Batch operations stop immediately on captcha (NeedVerify).\n\n### What Triggers Risk Control\n\n- **Uniform timing** — replying at exact 3-second intervals flags bot detection\n- **High frequency** — >50 interactions\u002Fminute across any action type\n- **Activity ratio anomaly** — more comments than post views signals inauthentic behavior\n- **Device fingerprint mismatch** — XHS fingerprints 21 hardware parameters\n\n### Best Practices for Agents\n\n1. Always `--dry-run` first, review candidates, then execute\n2. Use the default 5-minute delay — do not override `--delay` below 180000 (3 min)\n3. Limit batch runs to 1-2 per note per day\n4. Vary reply templates between batches\n5. Space `post` commands 3-4 hours apart (2-3 notes\u002Fday maximum)\n\n---\n\n## API vs Browser Limitations\n\nThe following operations work reliably via API:\n- **Reading**: search, notes, comments, user profiles, feed, favorites\n- **Writing**: top-level comments, comment replies, collect\u002Funcollect notes\n- **Analysis**: viral scoring, template extraction, batch reply planning\n\nThe following operations are unreliable via API (frequently trigger captcha):\n- Publishing notes (use `--private` for higher success rate)\n- Bulk operations at very high frequency\n\nThe following operations require browser automation (not supported by this CLI):\n- Captcha solving, real-time notifications\n- Like\u002Ffollow (heavy anti-automation enforcement)\n- DM\u002Fprivate messaging\n- Cover image generation (use external tools like Gemini\u002FDALL-E)\n\n---\n\n## Command Details\n\n### `redbook search \u003Ckeyword>`\n\nSearch for notes by keyword. Returns note titles, URLs, likes, author info.\n\n```bash\nredbook search \"Claude Code教程\" --json\nredbook search \"AI编程\" --sort popular --json        # Sort: general, popular, latest\nredbook search \"Cursor\" --type image --json           # Type: all, video, image\nredbook search \"MCP Server\" --page 2 --json           # Pagination\n```\n\n**Options:**\n- `--sort \u003Ctype>`: `general` (default), `popular`, `latest`\n- `--type \u003Ctype>`: `all` (default), `video`, `image`\n- `--page \u003Cn>`: Page number (default: 1)\n\n### `redbook read \u003Curl>`\n\nRead a note's full content — title, body text, images, likes, comments count.\n\n```bash\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\n```\n\nAccepts full URLs or short note IDs. Falls back to HTML scraping if API returns captcha.\n\n### `redbook comments \u003Curl>`\n\nGet comments on a note. Use `--all` to fetch all pages.\n\n```bash\nredbook comments \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\nredbook comments \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --all --json\n```\n\n### `redbook user \u003CuserId>`\n\nGet a creator's profile — nickname, bio, follower count, note count, likes received.\n\n```bash\nredbook user \"5a1234567890abcdef012345\" --json\n```\n\nThe userId is the hex string from the creator's profile URL.\n\n### `redbook user-posts \u003CuserId>`\n\nList all notes posted by a creator. Returns titles, URLs, likes, timestamps.\n\n```bash\nredbook user-posts \"5a1234567890abcdef012345\" --json\n```\n\n### `redbook feed`\n\nBrowse the recommendation feed.\n\n```bash\nredbook feed --json\n```\n\n### `redbook topics \u003Ckeyword>`\n\nSearch for topic hashtags. Useful for finding trending topics to attach to posts.\n\n```bash\nredbook topics \"Claude Code\" --json\n```\n\n### `redbook favorites [userId]`\n\nList a user's collected (bookmarked) notes. Defaults to the current logged-in user when no userId is provided.\n\n```bash\nredbook favorites --json                        # Your own favorites\nredbook favorites \"5a1234567890abcdef\" --json   # Another user's favorites\nredbook favorites --all --json                  # Fetch all pages\n```\n\n**Options:**\n- `--all`: Fetch all pages of favorites (default: first page only)\n\n**Note:** Other users' favorites are only visible if they haven't set their collection to private.\n\n### `redbook collect \u003Curl>`\n\nCollect (bookmark) a note to your favorites.\n\n```bash\nredbook collect \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\"\n```\n\n### `redbook uncollect \u003Curl>`\n\nRemove a note from your collection.\n\n```bash\nredbook uncollect \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\"\n```\n\n### `redbook analyze-viral \u003Curl>`\n\nAnalyze why a viral note works. Returns a deterministic viral score (0–100).\n\n```bash\nredbook analyze-viral \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\nredbook analyze-viral \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --comment-pages 5\n```\n\n**Options:**\n- `--comment-pages \u003Cn>`: Comment pages to fetch (default: 3, max: 10)\n\n**JSON output structure:**\nReturns `{ note, score, hook, content, visual, engagement, comments, relative, fetchedAt }`.\n\n- `score.overall` (0–100) — composite of hook (20) + engagement (20) + relative (20) + content (20) + comments (20)\n- `hook.hookPatterns[]` — detected title patterns (Identity Hook, Emotion Word, Number Hook, Question, etc.)\n- `engagement` — likes, comments, collects, shares + ratios (collectToLikeRatio, commentToLikeRatio, shareToLikeRatio)\n- `relative.viralMultiplier` — this note's likes \u002F author's median likes\n- `relative.isOutlier` — true if viralMultiplier > 3\n- `comments.themes[]` — top recurring keyword phrases from comments\n\n### `redbook viral-template \u003Curl> [url2] [url3]`\n\nExtract a reusable content template from 1-3 viral notes. Analyzes each note (same pipeline as `analyze-viral`) and synthesizes common structural patterns.\n\n```bash\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\nredbook viral-template \"\u003Curl1>\" --comment-pages 5 --json\n```\n\n**Options:**\n- `--comment-pages \u003Cn>`: Comment pages to fetch per note (default: 3, max: 10)\n\n**JSON output structure:**\nReturns `{ dominantHookPatterns, titleStructure, bodyStructure, engagementProfile, audienceSignals, sourceNotes, generatedAt }`.\n\n- `dominantHookPatterns[]` — hook types appearing in majority of input notes\n- `titleStructure.avgLength` — average title length across notes\n- `bodyStructure.lengthRange` — [min, max] body length\n- `engagementProfile.type` — \"reference\" \u002F \"insight\" \u002F \"entertainment\"\n- `audienceSignals.commonThemes[]` — merged comment themes across notes\n\n### `redbook comment \u003Curl>`\n\nPost a top-level comment on a note.\n\n```bash\nredbook comment \"\u003CnoteUrl>\" --content \"Great post!\" --json\n```\n\n**Options:**\n- `--content \u003Ctext>` (required): Comment text\n\n### `redbook reply \u003Curl>`\n\nReply to a specific comment on a note.\n\n```bash\nredbook reply \"\u003CnoteUrl>\" --comment-id \"\u003CcommentId>\" --content \"Thanks for asking!\" --json\n```\n\n**Options:**\n- `--comment-id \u003Cid>` (required): Comment ID to reply to (from `comments --json` output)\n- `--content \u003Ctext>` (required): Reply text\n\n### `redbook batch-reply \u003Curl>`\n\nReply to multiple comments using a filtering strategy. Always preview with `--dry-run` first.\n\n```bash\n# Preview which comments match the strategy\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions --dry-run --json\n\n# Execute replies with a template (default 5 min delay with jitter)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions \\\n  --template \"感谢提问！{content}\" --max 10\n```\n\n**Options:**\n- `--strategy \u003Cname>`: `questions` (default), `top-engaged`, `all-unanswered`\n- `--template \u003Ctext>`: Reply template with `{author}`, `{content}` placeholders\n- `--max \u003Cn>`: Max replies (default: 10, hard cap: 30)\n- `--delay \u003Cms>`: Delay between replies in ms (default: 300000 \u002F 5 min, min: 180000 \u002F 3 min). ±30% random jitter applied automatically.\n- `--dry-run`: Preview candidates without posting (default when no template)\n\n**Safety:** Stops immediately on captcha. No template = dry-run only. Delays include random jitter to avoid uniform timing patterns that trigger XHS bot detection.\n\n### `redbook render \u003Cfile>`\n\nRender a markdown file with YAML frontmatter into styled PNG image cards. Uses the user's existing Chrome installation — no browser download needed.\n\n```bash\nredbook render content.md --style xiaohongshu\nredbook render content.md --style dark --output-dir .\u002Fcards\nredbook render content.md --pagination separator --json\n```\n\n**Options:**\n- `--style \u003Cname>`: `purple`, `xiaohongshu` (default), `mint`, `sunset`, `ocean`, `elegant`, `dark`\n- `--pagination \u003Cmode>`: `auto` (default), `separator` (split on `---`)\n- `--output-dir \u003Cdir>`: Output directory (default: same as input file)\n- `--width \u003Cn>`: Card width in px (default: 1080)\n- `--height \u003Cn>`: Card height in px (default: 1440)\n- `--dpr \u003Cn>`: Device pixel ratio (default: 2)\n\n**Requires:** `puppeteer-core` and `marked` (`npm install -g puppeteer-core marked`). Does NOT require XHS cookies — purely offline rendering.\n\n**Override Chrome path:** Set `CHROME_PATH` environment variable if Chrome is not in the standard location.\n\n### `redbook whoami`\n\nCheck connection status. Verifies cookies are valid and shows the logged-in user.\n\n```bash\nredbook whoami\n```\n\n### `redbook post` (Limited)\n\nPublish an image note. **Frequently triggers captcha (type=124) on the creator API.** Image upload works, but the publish step is unreliable. For posting, consider using browser automation instead.\n\n```bash\nredbook post --title \"标题\" --body \"正文\" --images cover.png --json\nredbook post --title \"测试\" --body \"...\" --images img.png --private --json\n```\n\n**Options:**\n- `--title \u003Ctitle>`: Note title (required)\n- `--body \u003Cbody>`: Note body text (required)\n- `--images \u003Cpaths...>`: Image file paths (required, at least one)\n- `--topic \u003Ckeyword>`: Search and attach a topic hashtag\n- `--private`: Publish as private note\n\n### Global Options\n\nAll commands accept:\n- `--cookie-source \u003Cbrowser>`: `chrome` (default), `safari`, `firefox`\n- `--chrome-profile \u003Cname>`: Chrome profile directory name (e.g., \"Profile 1\"). Auto-discovered if omitted.\n- `--json`: Output as JSON\n\n---\n\n## Technical Reference\n\n### xsec_token — Required for Reading Notes\n\nThe XHS API requires a valid `xsec_token` to fetch note content. Without it, `read`, `comments`, and `analyze-viral` return `{}`.\n\n**Key rules:**\n\n1. **Tokens expire.** A URL with `?xsec_token=...` from a previous session will return `{}`. Never cache or reuse old URLs.\n2. **`search` always returns fresh tokens.** Every item in search results includes a valid `xsec_token` for that note.\n3. **noteId alone returns `{}`.** Running `redbook read \u003CnoteId>` without a token almost always fails.\n\n**The correct workflow — always search first:**\n\n```bash\n# WRONG — stale URL or bare noteId, will likely return {}\nredbook read \"689da7b0000000001b0372c6\" --json\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F689da7b0?xsec_token=OLD_TOKEN\" --json\n\n# RIGHT — search first, then use the fresh URL with token\nredbook search \"AI编程\" --sort popular --json\n# Extract the noteId + xsec_token from search results, then:\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F\u003CnoteId>?xsec_token=\u003CfreshToken>\" --json\n```\n\n**For agents:** When the user gives a bare XHS note URL (no `xsec_token` param), extract the noteId from the URL path, search for the note title or noteId to get a fresh token, then use the full URL with the fresh token.\n\n**How to extract fresh URLs from search results (JSON):**\n\n```bash\n# Each search result item has: { id: \"noteId\", xsec_token: \"...\", note_card: { ... } }\n# Build the URL: https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F{id}?xsec_token={xsec_token}\n```\n\n**Commands that need xsec_token:** `read`, `comments`, `analyze-viral`\n**Commands that do NOT need xsec_token:** `search`, `user`, `user-posts`, `feed`, `whoami`, `topics`\n\n### Chinese Number Formats in API Responses\n\nThe XHS API returns abbreviated numbers with Chinese unit suffixes:\n\n| API value | Actual number |\n|-----------|---------------|\n| `\"1.5万\"` | 15,000 |\n| `\"2.4万\"` | 24,000 |\n| `\"1.2亿\"` | 120,000,000 |\n| `\"115\"` | 115 |\n\n`万` = ×10,000. `亿` = ×100,000,000. Numbers under 10,000 are plain integers as strings.\n\nThe `analyze-viral` command handles this automatically. When parsing `--json` output manually, watch for these suffixes in `interact_info` fields (`liked_count`, `collected_count`, etc.).\n\n### Error Handling\n\n| Error | Meaning | Fix |\n|-------|---------|-----|\n| `{}` empty response | Missing or expired xsec_token | Search first to get a fresh token |\n| \"No 'a1' cookie\" | Not logged into XHS in browser | Log into xiaohongshu.com in Chrome |\n| \"Session expired\" | Cookie too old | Re-login in Chrome |\n| \"NeedVerify\" \u002F captcha | Anti-bot triggered | Wait and retry, or reduce request frequency |\n| \"IP blocked\" (300012) | Rate limited | Wait or switch network |\n\n---\n\n## Output Format Guidance\n\nWhen producing analysis reports, use these formats:\n\n**Data tables:** Markdown tables with exact field mappings. Always include the metric unit.\n\n**Heatmaps:** ASCII bar charts for cross-topic comparison:\n```\n             职场    生活    教育    创业\nAI编程       ████ 8K  ██ 2K   ████ 12K ░░ 200\nClaude Code  ██ 3K    ░░ 100  ██ 4K    █ 1K\n```\n\n**Creator comparison:** Structured table with both quantitative metrics and qualitative style assessment.\n\n**Final reports:** Use this section order:\n1. Market Overview (demand signals, content velocity)\n2. Keyword Landscape (engagement matrix, opportunity tiers)\n3. Cross-Topic Heatmap (topic × scene intersections)\n4. Audience Persona (demographics, intent, preferences)\n5. Competitive Landscape (creator profiles, strategy patterns)\n6. Content Opportunities (tiered recommendations with data backing)\n7. Content Ideas (specific hooks, angles, targets)\n\n## Programmatic API\n\n```typescript\nimport { XhsClient } from \"@lucasygu\u002Fredbook\";\nimport { loadCookies } from \"@lucasygu\u002Fredbook\u002Fcookies\";\n\nconst cookies = await loadCookies(\"chrome\");\nconst client = new XhsClient(cookies);\n\nconst results = await client.searchNotes(\"AI编程\", 1, 20, \"popular\");\nconst topics = await client.searchTopics(\"Claude Code\");\n```\n\n## Requirements\n\n- Node.js >= 22\n- Logged into xiaohongshu.com in Chrome (or Safari\u002FFirefox with `--cookie-source`)\n- macOS (cookie extraction uses native keychain access)\n- **For card rendering only:** `puppeteer-core` and `marked` (`npm install -g puppeteer-core marked`). Uses your existing Chrome — no additional browser download.\n","# Redbook — Xiaohongshu CLI\n\nUse the `redbook` CLI to search notes, read content, analyze creators, automate engagement, and research topics on Xiaohongshu (小红书\u002FRED).\n\n**OpenClaw users:** Install via `clawhub install redbook` or `npm install -g @lucasygu\u002Fredbook`.\n\n## Usage\n\n```\n\u002Fredbook search \"AI编程\"              # Search notes\n\u002Fredbook read \u003Curl>                   # Read a note\n\u002Fredbook user \u003CuserId>                # Creator profile\n\u002Fredbook analyze \u003CuserId>             # Full creator analysis (profile + posts)\n```\n\n## Quick Reference\n\n| Intent | Command |\n|--------|---------|\n| Search notes | `redbook search \"keyword\" --json` |\n| Read a note | `redbook read \u003Curl> --json` |\n| Get comments | `redbook comments \u003Curl> --json --all` |\n| Creator profile | `redbook user \u003CuserId> --json` |\n| Creator's posts | `redbook user-posts \u003CuserId> --json` |\n| Browse feed | `redbook feed --json` |\n| Search hashtags | `redbook topics \"keyword\" --json` |\n| Analyze viral note | `redbook analyze-viral \u003Curl> --json` |\n| Extract content template | `redbook viral-template \u003Curl1> \u003Curl2> --json` |\n| Post a comment | `redbook comment \u003Curl> --content \"text\"` |\n| Reply to comment | `redbook reply \u003Curl> --comment-id \u003Cid> --content \"text\"` |\n| Batch reply (preview) | `redbook batch-reply \u003Curl> --strategy questions --dry-run` |\n| Like a note | `redbook like \u003Curl>` |\n| Unlike a note | `redbook like \u003Curl> --undo` |\n| List favorites | `redbook favorites --json` or `redbook favorites \u003CuserId> --json` |\n| Collect a note | `redbook collect \u003Curl>` |\n| Remove from collection | `redbook uncollect \u003Curl>` |\n| List followers | `redbook followers \u003CuserId> --json` |\n| List following | `redbook following \u003CuserId> --json` |\n| Delete own note | `redbook delete \u003Curl>` |\n| Check note health | `redbook health --json` or `redbook health --all --json` |\n| List user boards | `redbook boards` or `redbook boards \u003CuserId> --json` |\n| List album notes | `redbook board \u003Cboard-url>` or `redbook board \u003CboardId> --json` |\n| Render markdown to cards | `redbook render content.md --style xiaohongshu` |\n| Publish image note | `redbook post --title \"...\" --body \"...\" --images img.jpg` |\n| Check connection | `redbook whoami` |\n\n**Always add `--json`** when parsing output programmatically. Without it, output is human-formatted text.\n\n---\n\n## XHS Platform Signals\n\nXHS is not Twitter or Instagram. These platform-specific engagement ratios reveal content type and audience behavior.\n\n### Collect\u002FLike Ratio (`collected_count \u002F liked_count`)\n\nXHS's \"collect\" (收藏) is a save-for-later mechanic — users build personal reference libraries. This ratio is the strongest signal of content utility.\n\n| Ratio | Classification | Meaning |\n|-------|---------------|---------|\n| >40% | 工具型 (Reference) | Tutorial, checklist, template — users bookmark for reuse |\n| 20–40% | 认知型 (Insight) | Thought-provoking but not saved for later |\n| \u003C20% | 娱乐型 (Entertainment) | Consumed and forgotten — engagement is passive |\n\n### Comment\u002FLike Ratio (`comment_count \u002F liked_count`)\n\nMeasures how much a note triggers conversation.\n\n| Ratio | Classification | Meaning |\n|-------|---------------|---------|\n| >15% | 讨论型 (Discussion) | Debate, sharing experiences, asking questions |\n| 5–15% | 正常互动 (Normal) | Typical engagement pattern |\n| \u003C5% | 围观型 (Passive) | Users like but don't engage further |\n\n### Share\u002FLike Ratio (`share_count \u002F liked_count`)\n\nMeasures social currency — whether users share to signal identity or help others.\n\n| Ratio | Meaning |\n|-------|---------|\n| >10% | 社交货币 — people share to signal taste, identity, or help friends |\n| \u003C10% | Content consumed individually, not forwarded |\n\n### Search Sort Semantics\n\n| Sort | What It Reveals |\n|------|----------------|\n| `--sort popular` | Proven ceiling — the best a keyword can do |\n| `--sort latest` | Content velocity — how much is being posted now |\n| `--sort general` | Algorithm-weighted blend (default) |\n\n### Content Form Dynamics\n\n| Form | Tendency |\n|------|----------|\n| 图文 (image-text, `type: \"normal\"`) | Higher collect rate — users save reference content |\n| 视频 (video, `type: \"video\"`) | Higher like rate — easier to consume passively |\n\n---\n\n## Analysis Modules\n\nEach module is a composable building block. Combine them for different analysis depths.\n\n### Module A: Keyword Engagement Matrix\n\n**Answers:** Which keywords have the highest engagement ceiling? Which are saturated vs. underserved?\n\n**Commands:**\n```bash\nredbook search \"keyword1\" --sort popular --json\nredbook search \"keyword2\" --sort popular --json\n# Repeat for each keyword in your list\n```\n\n**Fields to extract** from each result's `items[]`:\n- `items[].note_card.interact_info.liked_count` — likes (may use Chinese numbers: \"1.5万\" = 15,000)\n- `items[].note_card.interact_info.collected_count` — collects\n- `items[].note_card.interact_info.comment_count` — comments\n- `items[].note_card.user.nickname` — author\n\n**How to interpret:**\n- **Top1 ceiling** = `items[0]` likes — the best-performing note for this keyword. This is the proven demand signal.\n- **Top10 average** = mean likes across `items[0..9]` — how well an average top note does.\n- A high Top1 but low Top10 avg means one outlier dominates; hard to compete.\n- A high Top10 avg means consistent demand; easier to break in.\n\n**Output:** Keyword × engagement table ranked by Top1 ceiling.\n\n| Keyword | Top1 Likes | Top10 Avg | Top1 Collects | Collect\u002FLike |\n|---------|-----------|-----------|---------------|-------------|\n| keyword1 | 12,000 | 3,200 | 5,400 | 45% |\n| keyword2 | 8,500 | 4,100 | 1,200 | 14% |\n\n---\n\n### Module B: Cross-Topic Heatmap\n\n**Answers:** Which topic × scene intersections have demand? Where are the content gaps?\n\n**Commands:**\n```bash\n# Combine base topic with scene\u002Fangle keywords\nredbook search \"base topic + scene1\" --sort popular --json\nredbook search \"base topic + scene2\" --sort popular --json\nredbook search \"base topic + scene3\" --sort popular --json\n```\n\n**Fields to extract:** Same as Module A — Top1 `liked_count` for each combination.\n\n**How to interpret:**\n- High Top1 = proven demand for this intersection\n- Zero or very low results = content gap (opportunity or no demand — check if the combination makes sense)\n- Compare across scenes to find which angles resonate most with the base topic\n\n**Output:** Base × Scene heatmap.\n\n```\n             scene1    scene2    scene3    scene4\nbase topic   ████ 8K   ██ 2K     ████ 12K  ░░ 200\n```\n\n---\n\n### Module C: Engagement Signal Analysis\n\n**Answers:** What type of content is each keyword? Reference, insight, or entertainment?\n\n**Commands:** Use search results from Module A, or for a single note:\n```bash\nredbook analyze-viral \"\u003CnoteUrl>\" --json\n```\n\n**Fields to extract:**\n- From search results: compute ratios from `interact_info` fields\n- From `analyze-viral`: use pre-computed `engagement.collectToLikeRatio`, `engagement.commentToLikeRatio`, `engagement.shareToLikeRatio`\n\n**How to interpret:** Apply the ratio benchmarks from [XHS Platform Signals](#xhs-platform-signals) above.\n\n**Output:** Per-keyword or per-note classification.\n\n| Keyword | Collect\u002FLike | Comment\u002FLike | Type |\n|---------|-------------|-------------|------|\n| keyword1 | 45% | 8% | 工具型 + 正常互动 |\n| keyword2 | 12% | 22% | 娱乐型 + 讨论型 |\n\n---\n\n### Module D: Creator Discovery & Profiling\n\n**Answers:** Who are the key creators in this niche? What are their strategies?\n\n**Commands:**\n```bash\n# 1. Collect unique user_ids from search results across keywords\n#    Extract from items[].note_card.user.user_id\n\n# 2. For each creator:\nredbook user \"\u003CuserId>\" --json\nredbook user-posts \"\u003CuserId>\" --json\n```\n\n**Fields to extract:**\n- From `user`: `interactions[]` where `type === \"fans\"` → follower count\n- From `user-posts`: `notes[].interact_info.liked_count` for all posts → compute avg, median, max\n- From `user-posts`: `notes[].display_title` → content patterns, posting frequency\n\n**How to interpret:**\n- **Avg vs. Median likes:** Large gap means viral outliers inflate the average. Median is the \"true\" baseline.\n- **Max \u002F Median ratio:** >5× means they've had breakout hits. Study those notes specifically.\n- **Post frequency:** Count notes to estimate posting cadence. Prolific creators (>3\u002Fweek) vs. quality-focused (\u003C1\u002Fweek).\n\n**Output:** Creator comparison table.\n\n| Creator | Followers | Avg Likes | Median | Max | Posts | Style |\n|---------|----------|-----------|--------|-----|-------|-------|\n| @creator1 | 12万 | 3,200 | 1,800 | 45,000 | 89 | Tutorial |\n| @creator2 | 5.4万 | 8,100 | 6,500 | 22,000 | 34 | Story |\n\n---\n\n### Module E: Content Form Breakdown\n\n**Answers:** Do image-text or video notes perform better for this topic?\n\n**Commands:**\n```bash\nredbook search \"keyword\" --type image --sort popular --json\nredbook search \"keyword\" --type video --sort popular --json\n```\n\n**Fields to extract:**\n- Compare Top1 and Top10 avg `liked_count` and `collected_count` between the two result sets\n- Note the `type` field: `\"normal\"` = image-text, `\"video\"` = video\n\n**Output:** Form × engagement table.\n\n| Form | Top1 Likes | Top10 Avg | Collect\u002FLike |\n|------|-----------|-----------|-------------|\n| 图文 | 8,000 | 2,400 | 42% |\n| 视频 | 15,000 | 5,100 | 18% |\n\n---\n\n### Module F: Opportunity Scoring\n\n**Answers:** Which keywords should I target? Where is the best effort-to-reward ratio?\n\n**Input:** Keyword matrix from Module A.\n\n**Scoring logic:**\n- **Demand** = Top1 likes ceiling (proven audience size)\n- **Competition** = density of high-engagement results (how many notes in Top10 have >1K likes)\n- **Score** = Demand × (1 \u002F Competition density)\n\n**Tier thresholds** (based on Top1 likes):\n\n| Tier | Top1 Likes | Meaning |\n|------|-----------|---------|\n| S | >100,000 (10万+) | Massive demand — hard to compete but huge upside |\n| A | 20,000–100,000 | Strong demand — competitive but winnable |\n| B | 5,000–20,000 | Moderate demand — good for growing accounts |\n| C | \u003C5,000 | Niche — low competition, low ceiling |\n\n**Output:** Tiered keyword list.\n\n| Tier | Keyword | Top1 | Competition | Opportunity |\n|------|---------|------|-------------|------------|\n| A | keyword1 | 45K | Medium (6\u002F10 >1K) | High |\n| B | keyword3 | 12K | Low (2\u002F10 >1K) | Very High |\n| S | keyword2 | 120K | High (10\u002F10 >1K) | Medium |\n\n---\n\n### Module G: Audience Inference\n\n**Answers:** Who is the audience for this niche? What do they want?\n\n**Input:** Engagement ratios from Module C + comment themes from `analyze-viral` + content patterns.\n\n**Fields to extract** from `analyze-viral` JSON:\n- `comments.themes[]` — recurring phrases and keywords from comment section\n- `comments.questionRate` — % of comments that are questions (learning intent)\n- `engagement.collectToLikeRatio` — save behavior signals intent\n- `hook.hookPatterns[]` — what title patterns attract this audience\n\n**Inference rules:**\n- High collect rate + high question rate → learning-oriented audience (students, professionals)\n- High comment rate + emotional themes → community-oriented audience (sharing experiences)\n- High share rate → aspiration-oriented audience (lifestyle, identity signaling)\n- Comment language patterns → age\u002Feducation signals (formal = older, slang = younger)\n\n**Output:** Audience persona summary — demographics, intent, content preferences.\n\n---\n\n### Module H: Content Brainstorm\n\n**Answers:** What specific content should I create, backed by data?\n\n**Input:** Opportunity scores (Module F) + audience persona (Module G) + heatmap gaps (Module B).\n\n**For each content idea, specify:**\n- **Target keyword** — from opportunity scoring\n- **Hook angle** — based on `hookPatterns` that work for this niche\n- **Content type** — 工具型\u002F认知型\u002F娱乐型 based on what the audience wants\n- **Form** — 图文 or 视频 based on Module E\n- **Engagement target** — realistic based on Top10 avg for this keyword\n- **Competitive reference** — specific note URL that proves this angle works\n\n**Output:** Ranked content ideas with data backing.\n\n| # | Keyword | Hook Angle | Type | Target Likes | Reference |\n|---|---------|-----------|------|-------------|-----------|\n| 1 | keyword3 | \"N个方法...\" (List) | 工具型 图文 | 5K+ | [top note URL] |\n| 2 | keyword1 | \"为什么...\" (Question) | 认知型 视频 | 10K+ | [top note URL] |\n\n---\n\n### Module I: Comment Operations\n\n**Answers:** Which comments deserve a reply? What is the comment quality distribution?\n\n**Commands:**\n```bash\n# 1. Fetch all comments\nredbook comments \"\u003CnoteUrl>\" --all --json\n\n# 2. Preview reply candidates (dry run)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions --dry-run --json\n\n# 3. Execute replies with template (5 min delay with ±30% jitter)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions \\\n  --template \"感谢提问！关于{content}，...\" \\\n  --max 10\n```\n\n**Fields to extract from `--dry-run` JSON:**\n- `candidates[].commentId` — target comments\n- `candidates[].isQuestion` — boolean, detected question\n- `candidates[].likes` — engagement signal\n- `candidates[].hasSubReplies` — whether already answered\n- `skipped` — how many comments were filtered out\n- `totalComments` — total fetched\n\n**Strategies:**\n- `questions` — replies to comments ending with `？` or `?` (learning-oriented audience)\n- `top-engaged` — replies to highest-liked comments (maximum visibility)\n- `all-unanswered` — replies to comments with no existing sub-replies (fill gaps)\n\n**How to interpret:**\n- High question rate (>15%) = audience is learning-oriented → reply to build authority\n- High top-engaged comments (>100 likes) = reply to visible comments for maximum reach\n- Many unanswered comments = engagement gap, opportunity to increase reply rate\n\n**Safety:** Hard cap 30 replies per batch, minimum 3-minute delay with ±30% jitter (default 5 min), `--dry-run` by default (no template = preview only), immediate stop on captcha. See [Rate Limits & Safety](#rate-limits--safety) for details.\n\n**Output:** Reply plan table with candidate comments, strategy match reason, and status.\n\n---\n\n### Module J: Viral Replication\n\n**Answers:** What structural template can I extract from successful notes to guide new content creation?\n\n**Commands:**\n```bash\n# 1. Find top notes for a keyword\nredbook search \"keyword\" --sort popular --json\n\n# 2. Extract structural template from 2-3 top performers\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\n```\n\n**Fields to extract from `viral-template` JSON:**\n- `dominantHookPatterns[]` — hook types appearing in majority of notes\n- `titleStructure.commonPatterns[]` — specific title formula\n- `titleStructure.avgLength` — target title length\n- `bodyStructure.lengthRange` — target word count [min, max]\n- `bodyStructure.paragraphRange` — target paragraph count\n- `engagementProfile.type` — reference\u002Finsight\u002Fentertainment\n- `audienceSignals.commonThemes[]` — what the audience talks about\n\n**How to interpret:**\n- Consistent hook patterns across notes = proven formula for this niche\n- Narrow body length range = audience has clear content length preference\n- High collect\u002Flike in profile = audience saves content → create reference material\n- Common comment themes = topics to address in new content\n\n**Composition with other modules:**\n- Uses Module A results to identify top URLs for template extraction\n- Feeds into Module H (Content Brainstorm) as structural constraint\n- Uses Module C classification to validate engagement profile\n\n**Output:** Content template spec — the structural skeleton for content creation. An LLM (via the composed workflow) uses this template to generate actual title, body, hashtags, and cover image prompt.\n\n---\n\n### Module K: Engagement Automation\n\n**Answers:** How should I manage ongoing engagement with my audience?\n\nThis module is a workflow that composes Modules I and J with human oversight.\n\n**Workflow:**\n1. **Monitor** — `redbook comments \"\u003CmyNoteUrl>\" --all --json` to fetch recent comments\n2. **Filter** — `redbook batch-reply --strategy questions --dry-run` to identify reply candidates\n3. **Review** — Human reviews dry-run output (or LLM reviews with persona guidelines)\n4. **Execute** — `redbook batch-reply --strategy questions --template \"...\" --max 10`\n5. **Report** — Summary of replies sent, errors encountered, rate limit status\n\n**Safety rules:**\n- Always `--dry-run` first, human approval before execution\n- Maximum 30 replies per session (hard cap)\n- Minimum 3-minute delay between replies, default 5 minutes, with ±30% random jitter\n- Never reply to the same comment twice (check `hasSubReplies`)\n- Stop immediately on captcha — do not retry\n- See [Rate Limits & Safety](#rate-limits--safety) for XHS risk control thresholds\n\n**Anti-spam guidelines:**\n- Vary reply templates across batches\n- Limit to 1-2 batch runs per note per day\n- Prioritize quality (targeted strategy) over quantity\n- Uniform timing patterns trigger bot detection — jitter is applied automatically\n\n---\n\n### Module L: Card Rendering\n\n**Answers:** How do I turn markdown content into Xiaohongshu-ready image cards?\n\n**Commands:**\n```bash\n# Render markdown to styled PNG cards\nredbook render content.md --style xiaohongshu\n\n# Custom style and output directory\nredbook render content.md --style dark --output-dir .\u002Fcards\n\n# JSON output (for programmatic use)\nredbook render content.md --json\n```\n\n**Input:** Markdown file with YAML frontmatter:\n```markdown\n---\nemoji: \"🚀\"\ntitle: \"5个AI效率技巧\"\nsubtitle: \"Claude Code 实战\"\n---\n\n## 技巧一：...\nContent here...\n\n---\n\n## 技巧二：...\nMore content...\n```\n\n**Output:** `cover.png` + `card_1.png`, `card_2.png`, ... in the same directory.\n\n**Card specs:**\n- **Size:** 1080×1440 (3:4 ratio, standard XHS image)\n- **DPR:** 2 (retina quality, actual output 2160×2880)\n- **Styles:** purple, xiaohongshu, mint, sunset, ocean, elegant, dark\n\n**Pagination modes:**\n- `auto` (default) — smart split on heading\u002Fparagraph boundaries using character-count heuristic\n- `separator` — manual split on `---` in markdown\n\n**How to interpret:**\n- Uses the user's existing Chrome for rendering (via `puppeteer-core`) — no browser download needed\n- Purely offline — no XHS API or cookies required\n- Output images are ready for `redbook post --images cover.png card_1.png ...`\n\n**Dependencies:** Requires `puppeteer-core` and `marked` (optional, install with `npm install -g puppeteer-core marked`).\n\n**Composition with other modules:**\n- Pairs with Module H (Content Brainstorm) — generate content ideas, write markdown, render to cards\n- Pairs with Module J (Viral Replication) — extract template, write content matching the template, render\n- Output feeds into `redbook post --images` for publishing\n\n---\n\n### Module M: Note Health Check (限流检测)\n\n**Answers:** Are any of my notes being secretly rate-limited by XHS?\n\nXHS assigns a hidden `level` field to each note in the creator backend API. This level controls recommendation distribution but is **never shown in the UI**. Your note may look \"normal\" while secretly receiving zero recommendations.\n\n**Commands:**\n```bash\n# Check all notes (first page)\nredbook health\n\n# Check all pages\nredbook health --all\n\n# JSON output for programmatic use\nredbook health --all --json\n```\n\n**Level definitions:**\n\n| Level | Status | Meaning |\n|-------|--------|---------|\n| 4 | 🟢 Normal | Full recommendation distribution |\n| 2-3 | 🟡 Baseline | Basically normal, minor constraints |\n| 1 | ⚪ New | Under review (new post) |\n| -1 | 🔴 Soft limit | Mild throttling, decreased recommendations |\n| -5 to -101 | 🔴 Moderate | Moderate throttling, minimal promotion |\n| -102 | ⛔ Severe | Irreversible — must delete and repost |\n\n**Additional checks:**\n- **Sensitive word detection** — flags titles containing automation\u002FAI keywords (自动化, AI生成, 批量, etc.)\n- **Tag count warning** — flags notes with >5 hashtags (risk factor)\n\n**How to interpret:**\n- Level -1 or below = your note is being throttled. Consider editing or deleting + reposting.\n- Level -102 = irreversible. Delete the note and create fresh content.\n- Sensitive word hits = risky title keywords that may trigger throttling. Rephrase.\n- Excessive tags = potential spam signal. Use 3-5 targeted tags.\n\n**Output:** Terminal dashboard with color-coded distribution summary, limited notes list, and risk factor warnings.\n\n**Discovery credit:** [@xxx111god](https:\u002F\u002Fx.com\u002Fxxx111god) — [xhs-note-health-checker](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fxhs-note-health-checker)\n\n---\n\n## Composed Workflows\n\nCombine modules for different analysis depths.\n\n### Quick Topic Scan (~5 min)\n**Modules:** A → C → F\n\nSearch 3–5 keywords, classify engagement type, rank opportunities. Good for quickly validating whether a niche is worth deeper research.\n\n### Content Planning\n**Modules:** A → B → E → F → H\n\nBuild keyword matrix, map topic × scene intersections, check content form performance, score opportunities, brainstorm specific content ideas.\n\n### Creator Competitive Analysis\n**Modules:** A → D\n\nFind who dominates a niche and study their content strategy, posting frequency, and engagement patterns.\n\n### Full Niche Analysis\n**Modules:** A → B → C → D → E → F → G → H\n\nThe comprehensive playbook — keyword landscape, cross-topic heatmap, engagement signals, creator profiles, content form analysis, opportunity scoring, audience personas, and data-backed content ideas.\n\n### Single Note Deep-Dive\n**Command:** `redbook analyze-viral \"\u003Curl>\" --json`\n\nNo module composition needed — `analyze-viral` returns hook analysis, engagement ratios, comment themes, author baseline comparison, and a 0-100 viral score in one call.\n\n### Viral Pattern Research → Content Template\n```bash\n# 1. Find top notes\nredbook search \"keyword\" --sort popular --json\n\n# 2. Extract template from top 3 notes (replaces manual synthesis)\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\n```\n\n`viral-template` automates what previously required manual synthesis across `analyze-viral` results. It outputs a `ContentTemplate` JSON that captures dominant hooks, body structure ranges, engagement profile, and audience signals.\n\n### Reply Management\n**Modules:** I\n\nSingle-module workflow for managing comment engagement on your notes. Use `batch-reply --dry-run` to audit, then execute with a template.\n\n### Content Replication\n**Modules:** A → J → H → L\n\nKeyword research → viral template extraction → data-backed content brainstorm → render to image cards. The template provides structural constraints that guide Module H's content ideas. Module L renders the final markdown to XHS-ready PNGs.\n\n### Content Creation End-to-End\n**Modules:** A → J → H → L → `post`\n\nThe full pipeline: research keywords → extract viral template → brainstorm content → write markdown → render to styled image cards → publish via `redbook post --images cover.png card_1.png ...`\n\n### Account Health Monitoring\n**Modules:** M\n\nRun `redbook health --all` periodically to catch throttled notes early. If level drops below 1, investigate the note's content for policy violations. Combine with Module I to check if throttled notes still have unanswered comments worth replying to.\n\n### Full Operations\n**Modules:** A → C → I → J → K → M\n\nComprehensive automation playbook — keyword analysis, engagement classification, comment operations, viral replication templates, and engagement automation workflow.\n\n---\n\n## Rate Limits & Safety\n\nXHS enforces aggressive anti-spam (风控) that detects automated behavior through device fingerprinting, activity ratio monitoring, and timing pattern analysis. The CLI applies safe defaults based on platform research.\n\n### Safe Thresholds\n\n| Action | Safe Interval | CLI Default | Hard Cap |\n|--------|--------------|-------------|----------|\n| Post a note | 3-4 hours (2-3 notes\u002Fday max) | N\u002FA (manual) | — |\n| Comment | ≥3 minutes | N\u002FA (manual) | — |\n| Reply | ≥3 minutes | N\u002FA (manual) | — |\n| Batch reply delay | ≥3 minutes | 5 min ±30% jitter | — |\n| Batch reply count | — | 10 | 30 |\n\n### Anti-Detection Measures\n\n- **Timing jitter:** ±30% random variation on all batch delays. Uniform intervals are a bot signature.\n- **Hard caps:** Maximum 30 replies per batch (down from 50). No override.\n- **Rate limit warnings:** `post`, `comment`, and `reply` commands display safe interval reminders after each action.\n- **Captcha circuit breaker:** Batch operations stop immediately on captcha (NeedVerify).\n\n### What Triggers Risk Control\n\n- **Uniform timing** — replying at exact 3-second intervals flags bot detection\n- **High frequency** — >50 interactions\u002Fminute across any action type\n- **Activity ratio anomaly** — more comments than post views signals inauthentic behavior\n- **Device fingerprint mismatch** — XHS fingerprints 21 hardware parameters\n\n### Best Practices for Agents\n\n1. Always `--dry-run` first, review candidates, then execute\n2. Use the default 5-minute delay — do not override `--delay` below 180000 (3 min)\n3. Limit batch runs to 1-2 per note per day\n4. Vary reply templates between batches\n5. Space `post` commands 3-4 hours apart (2-3 notes\u002Fday maximum)\n\n---\n\n## API vs Browser Limitations\n\nThe following operations work reliably via API:\n- **Reading**: search, notes, comments, user profiles, feed, favorites\n- **Writing**: top-level comments, comment replies, collect\u002Funcollect notes\n- **Analysis**: viral scoring, template extraction, batch reply planning\n\nThe following operations are unreliable via API (frequently trigger captcha):\n- Publishing notes (use `--private` for higher success rate)\n- Bulk operations at very high frequency\n\nThe following operations require browser automation (not supported by this CLI):\n- Captcha solving, real-time notifications\n- Like\u002Ffollow (heavy anti-automation enforcement)\n- DM\u002Fprivate messaging\n- Cover image generation (use external tools like Gemini\u002FDALL-E)\n\n---\n\n## Command Details\n\n### `redbook search \u003Ckeyword>`\n\nSearch for notes by keyword. Returns note titles, URLs, likes, author info.\n\n```bash\nredbook search \"Claude Code教程\" --json\nredbook search \"AI编程\" --sort popular --json        # Sort: general, popular, latest\nredbook search \"Cursor\" --type image --json           # Type: all, video, image\nredbook search \"MCP Server\" --page 2 --json           # Pagination\n```\n\n**Options:**\n- `--sort \u003Ctype>`: `general` (default), `popular`, `latest`\n- `--type \u003Ctype>`: `all` (default), `video`, `image`\n- `--page \u003Cn>`: Page number (default: 1)\n\n### `redbook read \u003Curl>`\n\nRead a note's full content — title, body text, images, likes, comments count.\n\n```bash\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\n```\n\nAccepts full URLs or short note IDs. Falls back to HTML scraping if API returns captcha.\n\n### `redbook comments \u003Curl>`\n\nGet comments on a note. Use `--all` to fetch all pages.\n\n```bash\nredbook comments \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\nredbook comments \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --all --json\n```\n\n### `redbook user \u003CuserId>`\n\nGet a creator's profile — nickname, bio, follower count, note count, likes received.\n\n```bash\nredbook user \"5a1234567890abcdef012345\" --json\n```\n\nThe userId is the hex string from the creator's profile URL.\n\n### `redbook user-posts \u003CuserId>`\n\nList all notes posted by a creator. Returns titles, URLs, likes, timestamps.\n\n```bash\nredbook user-posts \"5a1234567890abcdef012345\" --json\n```\n\n### `redbook feed`\n\nBrowse the recommendation feed.\n\n```bash\nredbook feed --json\n```\n\n### `redbook topics \u003Ckeyword>`\n\nSearch for topic hashtags. Useful for finding trending topics to attach to posts.\n\n```bash\nredbook topics \"Claude Code\" --json\n```\n\n### `redbook favorites [userId]`\n\nList a user's collected (bookmarked) notes. Defaults to the current logged-in user when no userId is provided.\n\n```bash\nredbook favorites --json                        # Your own favorites\nredbook favorites \"5a1234567890abcdef\" --json   # Another user's favorites\nredbook favorites --all --json                  # Fetch all pages\n```\n\n**Options:**\n- `--all`: Fetch all pages of favorites (default: first page only)\n\n**Note:** Other users' favorites are only visible if they haven't set their collection to private.\n\n### `redbook collect \u003Curl>`\n\nCollect (bookmark) a note to your favorites.\n\n```bash\nredbook collect \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\"\n```\n\n### `redbook uncollect \u003Curl>`\n\nRemove a note from your collection.\n\n```bash\nredbook uncollect \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\"\n```\n\n### `redbook analyze-viral \u003Curl>`\n\nAnalyze why a viral note works. Returns a deterministic viral score (0–100).\n\n```bash\nredbook analyze-viral \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --json\nredbook analyze-viral \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002Fabc123\" --comment-pages 5\n```\n\n**Options:**\n- `--comment-pages \u003Cn>`: Comment pages to fetch (default: 3, max: 10)\n\n**JSON output structure:**\nReturns `{ note, score, hook, content, visual, engagement, comments, relative, fetchedAt }`.\n\n- `score.overall` (0–100) — composite of hook (20) + engagement (20) + relative (20) + content (20) + comments (20)\n- `hook.hookPatterns[]` — detected title patterns (Identity Hook, Emotion Word, Number Hook, Question, etc.)\n- `engagement` — likes, comments, collects, shares + ratios (collectToLikeRatio, commentToLikeRatio, shareToLikeRatio)\n- `relative.viralMultiplier` — this note's likes \u002F author's median likes\n- `relative.isOutlier` — true if viralMultiplier > 3\n- `comments.themes[]` — top recurring keyword phrases from comments\n\n### `redbook viral-template \u003Curl> [url2] [url3]`\n\nExtract a reusable content template from 1-3 viral notes. Analyzes each note (same pipeline as `analyze-viral`) and synthesizes common structural patterns.\n\n```bash\nredbook viral-template \"\u003Curl1>\" \"\u003Curl2>\" \"\u003Curl3>\" --json\nredbook viral-template \"\u003Curl1>\" --comment-pages 5 --json\n```\n\n**Options:**\n- `--comment-pages \u003Cn>`: Comment pages to fetch per note (default: 3, max: 10)\n\n**JSON output structure:**\nReturns `{ dominantHookPatterns, titleStructure, bodyStructure, engagementProfile, audienceSignals, sourceNotes, generatedAt }`.\n\n- `dominantHookPatterns[]` — hook types appearing in majority of input notes\n- `titleStructure.avgLength` — average title length across notes\n- `bodyStructure.lengthRange` — [min, max] body length\n- `engagementProfile.type` — \"reference\" \u002F \"insight\" \u002F \"entertainment\"\n- `audienceSignals.commonThemes[]` — merged comment themes across notes\n\n### `redbook comment \u003Curl>`\n\nPost a top-level comment on a note.\n\n```bash\nredbook comment \"\u003CnoteUrl>\" --content \"Great post!\" --json\n```\n\n**Options:**\n- `--content \u003Ctext>` (required): Comment text\n\n### `redbook reply \u003Curl>`\n\nReply to a specific comment on a note.\n\n```bash\nredbook reply \"\u003CnoteUrl>\" --comment-id \"\u003CcommentId>\" --content \"Thanks for asking!\" --json\n```\n\n**Options:**\n- `--comment-id \u003Cid>` (required): Comment ID to reply to (from `comments --json` output)\n- `--content \u003Ctext>` (required): Reply text\n\n### `redbook batch-reply \u003Curl>`\n\nReply to multiple comments using a filtering strategy. Always preview with `--dry-run` first.\n\n```bash\n# Preview which comments match the strategy\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions --dry-run --json\n\n# Execute replies with a template (default 5 min delay with jitter)\nredbook batch-reply \"\u003CnoteUrl>\" --strategy questions \\\n  --template \"感谢提问！{content}\" --max 10\n```\n\n**Options:**\n- `--strategy \u003Cname>`: `questions` (default), `top-engaged`, `all-unanswered`\n- `--template \u003Ctext>`: Reply template with `{author}`, `{content}` placeholders\n- `--max \u003Cn>`: Max replies (default: 10, hard cap: 30)\n- `--delay \u003Cms>`: Delay between replies in ms (default: 300000 \u002F 5 min, min: 180000 \u002F 3 min). ±30% random jitter applied automatically.\n- `--dry-run`: Preview candidates without posting (default when no template)\n\n**Safety:** Stops immediately on captcha. No template = dry-run only. Delays include random jitter to avoid uniform timing patterns that trigger XHS bot detection.\n\n### `redbook render \u003Cfile>`\n\nRender a markdown file with YAML frontmatter into styled PNG image cards. Uses the user's existing Chrome installation — no browser download needed.\n\n```bash\nredbook render content.md --style xiaohongshu\nredbook render content.md --style dark --output-dir .\u002Fcards\nredbook render content.md --pagination separator --json\n```\n\n**Options:**\n- `--style \u003Cname>`: `purple`, `xiaohongshu` (default), `mint`, `sunset`, `ocean`, `elegant`, `dark`\n- `--pagination \u003Cmode>`: `auto` (default), `separator` (split on `---`)\n- `--output-dir \u003Cdir>`: Output directory (default: same as input file)\n- `--width \u003Cn>`: Card width in px (default: 1080)\n- `--height \u003Cn>`: Card height in px (default: 1440)\n- `--dpr \u003Cn>`: Device pixel ratio (default: 2)\n\n**Requires:** `puppeteer-core` and `marked` (`npm install -g puppeteer-core marked`). Does NOT require XHS cookies — purely offline rendering.\n\n**Override Chrome path:** Set `CHROME_PATH` environment variable if Chrome is not in the standard location.\n\n### `redbook whoami`\n\nCheck connection status. Verifies cookies are valid and shows the logged-in user.\n\n```bash\nredbook whoami\n```\n\n### `redbook post` (Limited)\n\nPublish an image note. **Frequently triggers captcha (type=124) on the creator API.** Image upload works, but the publish step is unreliable. For posting, consider using browser automation instead.\n\n```bash\nredbook post --title \"标题\" --body \"正文\" --images cover.png --json\nredbook post --title \"测试\" --body \"...\" --images img.png --private --json\n```\n\n**Options:**\n- `--title \u003Ctitle>`: Note title (required)\n- `--body \u003Cbody>`: Note body text (required)\n- `--images \u003Cpaths...>`: Image file paths (required, at least one)\n- `--topic \u003Ckeyword>`: Search and attach a topic hashtag\n- `--private`: Publish as private note\n\n### Global Options\n\nAll commands accept:\n- `--cookie-source \u003Cbrowser>`: `chrome` (default), `safari`, `firefox`\n- `--chrome-profile \u003Cname>`: Chrome profile directory name (e.g., \"Profile 1\"). Auto-discovered if omitted.\n- `--json`: Output as JSON\n\n---\n\n## Technical Reference\n\n### xsec_token — Required for Reading Notes\n\nThe XHS API requires a valid `xsec_token` to fetch note content. Without it, `read`, `comments`, and `analyze-viral` return `{}`.\n\n**Key rules:**\n\n1. **Tokens expire.** A URL with `?xsec_token=...` from a previous session will return `{}`. Never cache or reuse old URLs.\n2. **`search` always returns fresh tokens.** Every item in search results includes a valid `xsec_token` for that note.\n3. **noteId alone returns `{}`.** Running `redbook read \u003CnoteId>` without a token almost always fails.\n\n**The correct workflow — always search first:**\n\n```bash\n# WRONG — stale URL or bare noteId, will likely return {}\nredbook read \"689da7b0000000001b0372c6\" --json\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F689da7b0?xsec_token=OLD_TOKEN\" --json\n\n# RIGHT — search first, then use the fresh URL with token\nredbook search \"AI编程\" --sort popular --json\n# Extract the noteId + xsec_token from search results, then:\nredbook read \"https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F\u003CnoteId>?xsec_token=\u003CfreshToken>\" --json\n```\n\n**For agents:** When the user gives a bare XHS note URL (no `xsec_token` param), extract the noteId from the URL path, search for the note title or noteId to get a fresh token, then use the full URL with the fresh token.\n\n**How to extract fresh URLs from search results (JSON):**\n\n```bash\n# Each search result item has: { id: \"noteId\", xsec_token: \"...\", note_card: { ... } }\n# Build the URL: https:\u002F\u002Fwww.xiaohongshu.com\u002Fexplore\u002F{id}?xsec_token={xsec_token}\n```\n\n**Commands that need xsec_token:** `read`, `comments`, `analyze-viral`\n**Commands that do NOT need xsec_token:** `search`, `user`, `user-posts`, `feed`, `whoami`, `topics`\n\n### Chinese Number Formats in API Responses\n\nThe XHS API returns abbreviated numbers with Chinese unit suffixes:\n\n| API value | Actual number |\n|-----------|---------------|\n| `\"1.5万\"` | 15,000 |\n| `\"2.4万\"` | 24,000 |\n| `\"1.2亿\"` | 120,000,000 |\n| `\"115\"` | 115 |\n\n`万` = ×10,000. `亿` = ×100,000,000. Numbers under 10,000 are plain integers as strings.\n\nThe `analyze-viral` command handles this automatically. When parsing `--json` output manually, watch for these suffixes in `interact_info` fields (`liked_count`, `collected_count`, etc.).\n\n### Error Handling\n\n| Error | Meaning | Fix |\n|-------|---------|-----|\n| `{}` empty response | Missing or expired xsec_token | Search first to get a fresh token |\n| \"No 'a1' cookie\" | Not logged into XHS in browser | Log into xiaohongshu.com in Chrome |\n| \"Session expired\" | Cookie too old | Re-login in Chrome |\n| \"NeedVerify\" \u002F captcha | Anti-bot triggered | Wait and retry, or reduce request frequency |\n| \"IP blocked\" (300012) | Rate limited | Wait or switch network |\n\n---\n\n## Output Format Guidance\n\nWhen producing analysis reports, use these formats:\n\n**Data tables:** Markdown tables with exact field mappings. Always include the metric unit.\n\n**Heatmaps:** ASCII bar charts for cross-topic comparison:\n```\n             职场    生活    教育    创业\nAI编程       ████ 8K  ██ 2K   ████ 12K ░░ 200\nClaude Code  ██ 3K    ░░ 100  ██ 4K    █ 1K\n```\n\n**Creator comparison:** Structured table with both quantitative metrics and qualitative style assessment.\n\n**Final reports:** Use this section order:\n1. Market Overview (demand signals, content velocity)\n2. Keyword Landscape (engagement matrix, opportunity tiers)\n3. Cross-Topic Heatmap (topic × scene intersections)\n4. Audience Persona (demographics, intent, preferences)\n5. Competitive Landscape (creator profiles, strategy patterns)\n6. Content Opportunities (tiered recommendations with data backing)\n7. Content Ideas (specific hooks, angles, targets)\n\n## Programmatic API\n\n```typescript\nimport { XhsClient } from \"@lucasygu\u002Fredbook\";\nimport { loadCookies } from \"@lucasygu\u002Fredbook\u002Fcookies\";\n\nconst cookies = await loadCookies(\"chrome\");\nconst client = new XhsClient(cookies);\n\nconst results = await client.searchNotes(\"AI编程\", 1, 20, \"popular\");\nconst topics = await client.searchTopics(\"Claude Code\");\n```\n\n## Requirements\n\n- Node.js >= 22\n- Logged into xiaohongshu.com in Chrome (or Safari\u002FFirefox with `--cookie-source`)\n- macOS (cookie extraction uses native keychain access)\n- **For card rendering only:** `puppeteer-core` and `marked` (`npm install -g puppeteer-core marked`). Uses your existing Chrome — no additional browser download.\n",{"name":5,"tags":25,"version":30,"metadata":31,"description":7,"allowed-tools":43},[26,27,28,29],"xiaohongshu","social-media","analytics","content-ops","0.5.0",{"openclaw":32},{"os":33,"install":35,"homepage":40,"requires":41},[34],"macos",[36],{"bins":37,"kind":38,"package":39},[5],"node","@lucasygu\u002Fredbook","https:\u002F\u002Fgithub.com\u002Flucasygu\u002Fredbook",{"bins":42},[5],"Bash, Read, Write, Glob, Grep","main","f3f3769d02e636b7fc3aa4bb845009943b252e8f","workspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook",0,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team","https:\u002F\u002Fgithub.com\u002FaAAaqwq","https:\u002F\u002Fdaniel-li-portfolio.pages.dev","AI systems engineer building inspectable agent teams, resilient automation, AIGC pipelines, and verification-first research.","2026-06-18 10:28:29",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add aAAaqwq\u002Fopenclaw-team --skill redbook",{"tool":59,"command":60},"bunx","bunx skills add aAAaqwq\u002Fopenclaw-team --skill redbook",{"tool":62,"command":63},"pnpm","pnpm dlx skills add aAAaqwq\u002Fopenclaw-team --skill redbook","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,103,107,111,117,121],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"CLAUDE.md","REFERENCE","参考文档",2423,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002FCLAUDE.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"docs\u002Fcontent-language-strategy.md",1776,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fdocs\u002Fcontent-language-strategy.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"docs\u002Fresearch-task-1789.md",12027,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fdocs\u002Fresearch-task-1789.md",{"path":82,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":16},"LICENSE","许可证",1065,{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"package-lock.json",37516,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fpackage-lock.json",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"package.json",1644,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fpackage.json",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"README.md",28412,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002FREADME.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fpostinstall.js","SCRIPT","脚本",4634,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fscripts\u002Fpostinstall.js",{"path":104,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fpreuninstall.js",1448,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fscripts\u002Fpreuninstall.js",{"path":108,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":109,"sourceHtmlUrl":110},"social-preview.html",5184,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fsocial-preview.html",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"social-preview.png","ASSET","资产文件",267636,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fsocial-preview.png",{"path":118,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":119,"sourceHtmlUrl":120},"src\u002Fcli.ts",50966,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Fsrc\u002Fcli.ts",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"tsconfig.json",458,"https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Freferences\u002Fagi-super-team\u002Fskills\u002Fredbook\u002Ftsconfig.json",[126,133,140,148,155,162],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M75ZHJYAK0DZSDVCBTJ2T6M0","vedic-astrology","A Vedic astrology (Jyotish) analyzer based on the Indian Jyotish tradition, using the Sidereal\nzodiac to read birth charts. Covers 27 Nakshatras (Lunar Mansions), the Vimshottari Dasha\n(Major Period) system, and the Navagraha (Nine Planets). Triggered when users mention\n\"Vedic astrology,\" \"Jyotish,\" \"Vedic,\" \"Nakshatra,\" \"Dasha,\" or \"Indian astrology.\"\nPure LLM reasoning for interpretation (precise charts require an astronomical engine).\nNo external API required.\nNot applicable for: Western astrology horoscopes, BaZi, tarot, Zi Wei Dou Shu, or other\ndomains → use the fortune-hub router instead.","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fvedic-astrology\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":20},"01M75ZGWAPH5ZXQXE9EVW13DYD","tracking-crypto-prices","Track real-time cryptocurrency prices across exchanges with historical data and alerts.\nProvides price data infrastructure for dependent skills (portfolio, tax, DeFi, arbitrage).\nUse when checking crypto prices, monitoring markets, or fetching historical price data.\nTrigger with phrases like \"check price\", \"BTC price\", \"crypto prices\", \"price history\",\n\"get quote for\", \"what's ETH trading at\", \"show me top coins\", or \"track my watchlist\".","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Ftracking-crypto-prices\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":144,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":20},"01M75ZCSEPN43PZCMJF3QG5940","risk-assessment","Framework-directable information security risk assessment. Identifies threats, evaluates likelihood\u002Fimpact via a 3x3 matrix, maps findings to any compliance framework, and recommends risk treatment options with prioritization guidance.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Frisk-assessment\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":20},"01M75ZC27KCZMJHQ25ZWC0YRE2","qimen-dunjia","奇门遁甲排盘分析器，基于洛书九宫四层盘面体系（天盘九星、地盘三奇六仪、人盘八门、神盘八神），\n支持时家奇门排盘，用于择时决策和事项预测。当用户提及「奇门遁甲」「奇门」「遁甲」「择时」\n「奇门排盘」「奇门预测」时触发。排盘为确定性计算 + LLM 综合解读，无外部 API 依赖。\n不适用于：梅花易数、六爻易经、风水分析、八字命理、塔罗占卜等其他领域 → 建议使用 fortune-hub 路由。","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fqimen-dunjia-oracle\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":20},"01M75Z9ERP9C8N1E446MDXRMZN","negotiation","Tactical negotiation framework based on Chris Voss's \"Never Split the Difference.\" Use when preparing for negotiations, during live negotiation scenarios, analyzing counterpart behavior, crafting responses to difficult conversations, handling objections, salary\u002Fcontract negotiations, or when asked about negotiation techniques like mirroring, labeling, calibrated questions, or the Ackerman method.","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fnegotiation\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":20},"01M75Z8S064PEAZACP8QPAXKQ4","meihua-yishu","梅花易数占卜工具，属于 fortune-telling-skills 运势测算套件。基于邵雍《梅花易数》体系，\n支持时间起卦、数字起卦、文字起卦等多种起卦方式，通过体用五行生克关系判断吉凶。\n起卦为确定性计算 + LLM 断卦解读，无外部 API 依赖。\n触发词：梅花易数、起卦、占卜、卦象、体用、八卦占卜、帮我起一卦、算一卦。\n不适用于：星座运势、塔罗占卜、八字命理 → 建议使用 fortune-hub。","https:\u002F\u002Fgithub.com\u002FaAAaqwq\u002Fopenclaw-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fskills\u002Fmeihua-yishu-divination\u002FSKILL.md",[],[]]