ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

xiaohongshu-auto

小红书自动化技能,自动发布笔记和管理内容

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/broommonk/xiaohongshu-auto
Or

小红书自动发帖技能

🤖 技能名称: xiaohongshu-auto
📝 用途: 自动登录小红书、发布笔记、管理内容
🔐 认证: 需要手动登录一次(保存 Cookie)


⚠️ 路径说明

技能路径: /root/.openclaw/workspace/skills/xiaohongshu-auto/

macOS / Linux 示例

cd /root/.openclaw/workspace/skills/xiaohongshu-auto

Windows 示例

cd C:\Users\用户名\.openclaw\workspace\skills\xiaohongshu-auto

🚀 快速开始

1. 安装依赖

# 确保 Chrome 已安装
google-chrome --version

# 安装必要的 Python 库(如果需要)
pip install selenium webdriver-manager

2. 配置浏览器

方式 A:Chrome 扩展 Relay(推荐)

  1. 在 Chrome 中安装 OpenClaw Browser Relay 扩展

  2. 手动登录小红书

  3. 点击扩展图标,启用 Relay 模式

方式 B:独立浏览器

# 启动 OpenClaw 管理的浏览器
openclaw browser start --profile openclaw

3. 使用技能

发布笔记

# 调用技能发布笔记
openclaw skill xiaohongshu-auto publish \
  --title "笔记标题" \
  --content "笔记内容" \
  --image "/path/to/image.jpg"

查看笔记列表

openclaw skill xiaohongshu-auto list

分析数据

openclaw skill xiaohongshu-auto analytics

📋 配置文件

创建 config.json

{
  "account": {
    "loginMethod": "qrcode",
    "sessionFile": "~/.openclaw/workspace/skills/xiaohongshu-auto/session.json"
  },
  "browser": {
    "profile": "chrome",
    "headless": false,
    "userDataDir": "~/.openclaw/workspace/skills/xiaohongshu-auto/chrome-profile"
  },
  "posting": {
    "dailyLimit": 5,
    "randomDelay": true,
    "delayRange": [300, 1800],
    "autoHashtags": true,
    "imageQuality": 0.9
  },
  "analytics": {
    "trackViews": true,
    "trackLikes": true,
    "trackComments": true,
    "reportInterval": "daily"
  }
}

🔧 使用方式

基础用法

发布图文笔记

openclaw skill xiaohongshu-auto publish \
  --title "今天分享一个超好用的 AI 助手" \
  --content "最近发现了一个超厉害的工具..." \
  --images "image1.jpg,image2.jpg,image3.jpg"

发布视频笔记

openclaw skill xiaohongshu-auto publish \
  --title "Vlog | 我的一天" \
  --content "记录美好的一天" \
  --video "video.mp4"

高级用法

定时发布

# 设置定时任务(每天早上 9 点发布)
0 9 * * * openclaw skill xiaohongshu-auto publish --scheduled

批量发布

# 从 CSV 文件批量发布
openclaw skill xiaohongshu-auto batch-publish \
  --csv "posts.csv" \
  --image-dir "./images"

数据分析

# 获取最近 7 天数据
openclaw skill xiaohongshu-auto analytics --days 7

# 导出报告
openclaw skill xiaohongshu-auto analytics --export report.pdf

📁 目录结构

xiaohongshu-auto/
├── SKILL.md              # 技能说明(本文件)
├── USAGE.md              # 详细使用文档
├── config.json           # 配置文件
├── config.example.json   # 配置示例
├── session.json          # 登录会话(自动生成)
├── scripts/
│   ├── publish.py        # 发布脚本
│   ├── login.py          # 登录脚本
│   └── analytics.py      # 数据分析脚本
├── templates/
│   ├── post-template.md  # 笔记模板
│   └── hashtag-list.txt  # 标签库
└── logs/
    └── activity.log      # 活动日志

Metadata

Author@broommonk
Stars4190
Views0
Updated2026-04-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-broommonk-xiaohongshu-auto": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.