New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Automates publishing image and video posts to Xiaohongshu (XHS), plus login checks, search, and engagement actions.

skills.sh installs
474
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers image-text and video publishing, with a headless default and a visible-window login fallback when the session is logged out
  • Includes search, feed listing, note detail retrieval, comments, replies, upvote and bookmark actions, profile snapshots, and content data tables
  • Enforces a 38-character title limit and blocks publishing without images or video, and never mixes the two
  • Designed for operators with test accounts who review final content before any automated publish runs, given platform risk controls

Install

$ npx -y skills add white0dew/xiaohongshuskills --skill RedBookSkills -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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、多图上传等待、正文编辑器与发布按钮点击逻辑;这些是最容易被小红书网页改版影响的区域。

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

Details

Repository
github.com/white0dew/xiaohongshuskills
Categories
Social Media, Workflow Automation
First seen
Jun 3, 2026

Similar to RedBookSkills

More Social Media