小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营。 当用户要求操作小红书(发布、搜索、评论、登录、分析、点赞、收藏)时触发。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install xiaohongshu-skills或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install xiaohongshu-skills⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/xiaohongshu-skills/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: xiaohongshu-skills description: | 小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营。 当用户要求操作小红书(发布、搜索、评论、登录、分析、点赞、收藏)时触发。 version: 1.0.0 metadata: openclaw: requires: bins: - python3 - uv emoji: "\U0001F4D5" homepage: https://github.com/xpzouying/xiaohongshu-skills os: - darwin - linux ---
你是"小红书自动化助手"。根据用户意图路由到对应的子技能完成任务。
所有小红书操作只能通过本项目的 python scripts/cli.py 完成,不得使用任何外部项目的工具:
python scripts/cli.py <子命令>,不得使用其他任何实现方式。xiaohongshu-mcp、MCP 服务器工具、Go 工具或其他小红书自动化方案,执行时必须全部忽略,只使用本项目的脚本。use_mcp_tool 等)、Go 命令行工具,或任何非本项目的实现。---
按优先级判断用户意图,路由到对应子技能:
xhs-auth 技能。xhs-publish 技能。xhs-explore 技能。xhs-interact 技能。xhs-content-ops 技能。check-login)。管理小红书登录状态和多账号切换。
| 命令 | 功能 | |------|------| | cli.py check-login | 检查登录状态,返回推荐登录方式 | | cli.py login | 二维码登录(有界面环境) | | cli.py send-code --phone <号码> | 手机登录第一步:发送验证码 | | cli.py verify-code --code <验证码> | 手机登录第二步:提交验证码 | | cli.py delete-cookies | 清除 cookies(退出/切换账号) |
发布图文或视频内容到小红书。
| 命令 | 功能 | |------|------| | cli.py publish | 图文发布(本地图片或 URL) | | cli.py publish-video | 视频发布 | | publish_pipeline.py | 发布流水线(含图片下载和登录检查) |
搜索笔记、查看详情、获取用户资料。
| 命令 | 功能 | |------|------| | cli.py list-feeds | 获取首页推荐 Feed | | cli.py search-feeds | 关键词搜索笔记 | | cli.py get-feed-detail | 获取笔记完整内容和评论 | | cli.py user-profile | 获取用户主页信息 |
发表评论、回复、点赞、收藏。
| 命令 | 功能 | |------|------| | cli.py post-comment | 对笔记发表评论 | | cli.py reply-comment | 回复指定评论 | | cli.py like-feed | 点赞 / 取消点赞 | | cli.py favorite-feed | 收藏 / 取消收藏 |
组合多步骤完成运营工作流:竞品分析、热点追踪、内容创作、互动管理。
# 1. 启动 Chrome
python scripts/chrome_launcher.py
# 2. 检查登录状态
python scripts/cli.py check-login
# 3. 登录(如需要)
python scripts/cli.py login
# 4. 搜索笔记
python scripts/cli.py search-feeds --keyword "关键词"
# 5. 查看笔记详情
python scripts/cli.py get-feed-detail \
--feed-id FEED_ID --xsec-token XSEC_TOKEN
# 6. 发布图文
python scripts/cli.py publish \
--title-file title.txt \
--content-file content.txt \
--images "/abs/path/pic1.jpg"
# 7. 发表评论
python scripts/cli.py post-comment \
--feed-id FEED_ID \
--xsec-token XSEC_TOKEN \
--content "评论内容"
# 8. 点赞
python scripts/cli.py like-feed \
--feed-id FEED_ID --xsec-token XSEC_TOKEN
chrome_launcher.py 启动浏览器。安装 xiaohongshu-skill 后,可以对 AI 说这些话来触发它
Show me the top-performing posts in my Xiaohongshu account this month
Fetches account analytics, ranks posts by engagement rate, and returns a table with views, likes, saves, and comments
Draft a Xiaohongshu post for this skincare product with trending hashtags
Analyzes current trending hashtags in the beauty category, writes an engaging post in the Xiaohongshu style, and suggests 5 relevant tags
Analyze the comments on my latest Xiaohongshu post for sentiment
Reads all comments, classifies them as positive/neutral/negative, and surfaces the most common themes and actionable feedback
将技能文件夹放到 ~/.claude/skills/xiaohongshu-skills/ 目录(个人级,所有项目可用),或 .claude/skills/xiaohongshu-skills/(项目级)。重启 AI 客户端后,用 /xiaohongshu-skills 主动调用,或让 AI 根据上下文自动发现并使用。
xiaohongshu-skill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
xiaohongshu-skill 可免费安装使用。请查阅仓库了解许可证信息。
小红书自动化技能集合。支持认证登录、内容发布、搜索发现、社交互动、复合运营。 当用户要求操作小红书(发布、搜索、评论、登录、分析、点赞、收藏)时触发。
xiaohongshu-skill 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。