xhs-publisher

小红书发布 skill - 通过 agent-browser (CDP) 自动发布小红书图文笔记,支持多图上传、标题正文填写、一键发布。使用场景:自动化发布图文笔记到小红书创作中心。

1,172 stars

Best use case

xhs-publisher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

小红书发布 skill - 通过 agent-browser (CDP) 自动发布小红书图文笔记,支持多图上传、标题正文填写、一键发布。使用场景:自动化发布图文笔记到小红书创作中心。

Teams using xhs-publisher should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/xhs-publisher/SKILL.md --create-dirs "https://raw.githubusercontent.com/inclusionAI/AWorld/main/examples/skill_agent/skills/xhs-publisher/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/xhs-publisher/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How xhs-publisher Compares

Feature / Agentxhs-publisherStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

小红书发布 skill - 通过 agent-browser (CDP) 自动发布小红书图文笔记,支持多图上传、标题正文填写、一键发布。使用场景:自动化发布图文笔记到小红书创作中心。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 小红书发布 (xhs-publisher)

## 概述

通过已连接 CDP 的浏览器(agent-browser)自动发布小红书图文笔记:导航到创作中心、上传图片、填写标题和正文、点击发布。

## 工具路径

- 脚本:`./publish_xhs.sh`
- 依赖:`agent-browser`(CDP 已连接且已登录小红书)、`python3`

## 用法

```bash
././publish_xhs.sh -t <title> -i <images> [-c <content> | -f <content_file>] [-p <cdp_port>]
```

### 参数

| 参数 | 说明 | 必填 | 默认 |
|------|------|------|------|
| `-t` | 标题(≤20 字符) | 是 | - |
| `-i` | 图片路径,逗号分隔或多次 `-i`(至少 1 张) | 是 | - |
| `-c` | 正文内容(与 `-f` 二选一) | 二选一 | - |
| `-f` | 从文件读取正文(与 `-c` 二选一) | 二选一 | - |
| `-p` | CDP 端口 | 否 | 9222 |

### 示例

```bash
# 单图 + 短正文
././publish_xhs.sh \
  -t "测试帖子" \
  -c "这是一条测试帖子" \
  -i /path/to/test.png

# 多图 + 文件正文
././publish_xhs.sh \
  -t "多图测试" \
  -f content.txt \
  -i img1.png,img2.png,img3.png

# 多次 -i 指定图片
././publish_xhs.sh \
  -t "分享日记" \
  -c "今天的风景真好" \
  -i photo1.jpg -i photo2.jpg
```

### 注意事项

- 浏览器需已登录小红书创作者中心
- 图片文件必须存在且为有效图片格式
- 标题不超过 20 个字符
- 正文通过 `-c` 直接传入或 `-f` 从文件读取,二者必选其一

Related Skills

xhs-scraper

1172
from inclusionAI/AWorld

小红书搜索抓取 skill - 通过 agent-browser (CDP) 抓取小红书搜索结果,支持列表+详情、多格式输出。使用场景:按关键词抓取笔记列表与正文、生成 RSS/JSON/Markdown。

read large webpage or knowledge

1172
from inclusionAI/AWorld

This skill is used for segmented reading and organization when facing large-scale knowledge bases or web pages. It captures original content segment by segment, summarizes key points in real-time, and continuously deposits them into the knowledge base, ensuring orderly information ingestion, clear structure, and traceability.

text2agent

1172
from inclusionAI/AWorld

Creates new agents from user requirements by generating Python implementation and mcp_config.

optimizer

1172
from inclusionAI/AWorld

Analyzes and automatically optimizes existing agents by improving system prompts and tool configuration.

media_comprehension

1172
from inclusionAI/AWorld

An intelligent assistant specialized in handling media files (images/audio/video). **Only for media file analysis**, does not handle document types.\n\n✅ Media files that can be processed:\n- Images: .jpg, .jpeg, .png, .gif, .bmp, .webp, .svg\n- Audio: .mp3, .wav, .m4a, .flac, .aac, .ogg\n- Video: .mp4, .avi, .mov, .mkv, .webm, .flv\n\n❌ Files that cannot be processed (please do not trigger this skill):\n- Documents: .pdf, .doc, .docx, .txt, .md, .rtf\n- Spreadsheets: .xlsx, .xls, .csv, .tsv\n- Presentations: .pptx, .ppt, .key\n- Code: .py, .js, .ts, .java, .cpp, .go, .rs\n- Archives: .zip, .tar, .gz, .rar, .7z\n- Executables: .exe, .bin, .app, .dmg\n- Databases: .db, .sqlite, .sql\n- Configuration files: .json, .xml, .yaml, .yml, .toml, .ini\n- Web pages: .html, .htm, .css\n\n**Trigger conditions**: When the user explicitly requests to analyze image/audio/video content, or when the file extension belongs to the aforementioned media types.".

app_evaluator

1172
from inclusionAI/AWorld

A professional skill for App Evaluation (evaluating app's performance with score) and App Improvement (giving professional suggestions for improving the app's performance).

agent-browser

1172
from inclusionAI/AWorld

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

OpenClaw

1172
from inclusionAI/AWorld

Complete guide for OpenClaw installation, Discord configuration, and sending messages, including common issues and solutions

x-scraper

1172
from inclusionAI/AWorld

X (Twitter) 抓取 skill - 通过 agent-browser (CDP) 抓取指定用户推文或首页推荐流,支持关键词过滤、Tab 切换、多格式输出。使用场景:按用户/关键词抓取时间线、查看首页推荐流、生成 RSS/JSON/Markdown。

html-to-image

1172
from inclusionAI/AWorld

HTML 转图片 skill - 将 HTML 文件或内容通过 agent-browser 渲染并截图为图片。适用于生成信息图、社交媒体配图、数据可视化截图等场景。

nansen-binance-publisher

3891
from openclaw/skills

Automatically fetch multi-dimensional on-chain data using Nansen CLI, compile a comprehensive and beautifully formatted daily report, and publish it to Binance Square. Auto-run on messages like 'generate nansen daily report', 'post nansen daily to square', or when the user triggers the slash commands `/nansen` or `/post_square`.

Content & Documentation

wechat-publisher

3891
from openclaw/skills

一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。

Content & Documentation