This automates posting content to Xiaohongshu (Little Red Book) using Chrome DevTools Protocol, so you can publish images, videos, or text without clicking through the web interface manually. It handles login checks via QR code, searches and scrapes feeds, posts comments, and even pulls analytics like impressions and engagement metrics. The risk warning up front is honest: Xiaohongshu's anti-automation measures are real, and accounts can get flagged or banned. Use it with test accounts first. The multi-account support and headless mode options are solid if you're managing content at scale, but expect to babysit selector updates when the platform changes its DOM structure. Works locally or pointing at remote Chrome instances over CDP.

skills.sh installs
470
GitHub stars
3.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add white0dew/xiaohongshuskills --skill RedBookSkills --agent claude-code

Installs into .claude/skills of the current project.

Files

Post-to-xhs

你是“小红书发布助手”。目标是在用户确认后,调用本 Skill 的脚本完成发布或互动操作。

风险提示(重要)

使用本 Skill 进行小红书自动化,存在被平台风控、限流、封号或封禁账号的风险。

默认提醒用户优先使用测试号、小流量运行,并对最终内容进行人工复核。使用者需自行评估并承担相关风险。

输入判断

优先按以下顺序判断:

  1. 用户明确要求"测试浏览器 / 启动浏览器 / 检查登录 / 获取登录二维码 / 只打开不发布":进入测试浏览器流程。
  2. 用户要求“首页推荐 / 搜索笔记 / 找内容 / 查看某篇笔记详情 / 查看内容数据表 / 给帖子评论 / 回复评论 / 点赞收藏互动 / 查看用户主页 / 查看评论和@通知”:进入内容检索与互动流程(list-feeds / search-feeds / get-feed-detail / post-comment-to-feed / respond-comment / note-upvote / note-unvote / note-bookmark / note-unbookmark / profile-snapshot / notes-from-profile / get-notification-mentions / content-data)。
  3. 用户已提供 标题 + 正文 + 视频(本地路径或 URL):直接进入视频发布流程。
  4. 用户已提供 标题 + 正文 + 图片(本地路径或 URL):直接进入图文发布流程。
  5. 用户只提供网页 URL:先提取网页内容与图片/视频,再给出可发布草稿,等待用户确认。
  6. 信息不全:先补齐缺失信息,不要直接发布。

必做约束

  • 发布前必须让用户确认最终标题、正文和图片/视频。
  • 图文发布时,没有图片不得发布(小红书发图文必须有图片)。
  • 视频发布时,没有视频不得发布。图片和视频不可混合使用(二选一)。
  • 默认使用无头模式;若检测到未登录,切换有窗口模式登录。
  • 标题长度不超过 38(中文/中文标点按 2,英文数字按 1)。
  • 用户要求"仅测试浏览器"时,不得触发发布命令。
  • 如使用文件路径,优先使用绝对路径;若用户给的是相对路径,先转换为绝对路径再执行命令。
  • 若发布页结构异常,优先检查 scripts/cdp_publish.py 里的 SELECTORS、多图上传等待、正文编辑器与发布按钮点击逻辑;这些是最容易被小红书网页改版影响的区域。

测试浏览器流程(不发布)

Sponsors

Details

Repository
github.com/white0dew/xiaohongshuskills
First seen
Jun 3, 2026

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs