Install
openclaw skills install kb-social-publisher同时发布内容到微博和小红书,使用真实 Chrome 浏览器绕过反机器人检测。支持文字、图片、预览模式和实际发布。当用户需要发布微博、发微博、weibo post、发布小红书、发小红书、xiaohongshu post 时使用此 skill。
openclaw skills install kb-social-publisher使用真实 Chrome 浏览器同时发布到微博和小红书,支持文字和图片。
所有脚本位于 scripts/ 子目录。
# 预览模式(不发布)
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --weibo "你好,微博!"
# 带图片
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --weibo "看这张图!" --image ./photo.png
# 实际发布
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --weibo "发布微博!" --image ./photo.png --submit
# 预览模式(不发布)
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --xhs "你好,小红书!" --image ./photo.png
# 实际发布
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --xhs "发布小红书!" --image ./photo.png --submit
# 预览模式
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --weibo "你好!" --xhs "你好!" --image ./photo.png
# 实际发布
npx -y bun ${SKILL_DIR}/scripts/social-publisher.ts --weibo "同时发布!" --xhs "同时发布!" --image ./photo.png --submit
| 参数 | 描述 |
|---|---|
--weibo <text> | 微博内容 |
--xhs <text> | 小红书内容 |
--image <path> | 图片路径(可重复) |
--submit | 实际发布(默认:仅预览) |
--profile <dir> | 自定义 Chrome 配置目录 |