Xpersona
小

小红书自动发布助手

CLAWHUB · Unverified

Draft and publish posts to 小红书 (Xiaohongshu/RED). Use when creating content for 小红书, drafting posts, generating cover images, or publishing via browser automation. Covers the full workflow from content creation to browser-based publishing, including cover image generation with Pillow.

62
Rank
84
Safety
10k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 10.4K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176wxth40jzb90bv6bv6wwpzx884cg4:xiaohongshu-publisher
  1. Install using `clawhub skill install s176wxth40jzb90bv6bv6wwpzx884cg4:xiaohongshu-publisher` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/yuf1011/xiaohongshu-publisher before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-yuf1011-xiaohongshu-publisher-ublisher-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,839 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: xiaohongshu-publisher
description: Draft and publish posts to 小红书 (Xiaohongshu/RED). Use when creating content for 小红书, drafting posts, generating cover images, or publishing via browser automation. Covers the full workflow from content creation to browser-based publishing, including cover image generation with Pillow.
---

# 小红书 Publisher

Create, format, and publish posts to 小红书 (Xiaohongshu/RED) through browser automation.

## Requirements

- **Python 3** with **Pillow** (`pip install Pillow` or `apt install python3-pil`)
- **CJK fonts** — `fonts-noto-cjk` on Linux (`apt install fonts-noto-cjk`), or Noto Sans CJK via Homebrew on macOS
- **OpenClaw browser tool** — access to a browser with the user logged into 小红书 creator portal
- A connected **OpenClaw node** (or sandbox browser) with Chrome/Chromium for browser automation

## Overview

This skill handles the complete 小红书 publishing pipeline:
1. **Draft** — Write post content in 小红书 style
2. **Cover** — Generate a cover image (1080×1440)
3. **Review** — Send draft to user for approval via messaging channel
4. **Publish** — Use browser automation to post (or deliver for manual posting)

## Workflow

### Step 1: Draft Content

Create post content following 小红书 style. See [references/content-guide.md](references/content-guide.md) for formatting rules, structure, and examples.

Key rules:
- Title ≤20 chars, with emoji hook
- Use `---` section breaks, emoji bullets, short paragraphs
- End with question CTA + hashtags (8-12 tags)
- Save draft to `memory/xiaohongshu-draft.md`

### Step 2: Generate Cover Image

Run the cover generation script:

```bash
python3 <skill-dir>/scripts/gen_cover.py --title "主标题" --subtitle "副标题" --tags "标签1,标签2,标签3" --output /path/to/cover.png
```

Options:
- `--title` — Main title (large text, required)
- `--subtitle` — Subtitle line (medium text, optional)
- `--tags` — Comma-separated feature tags shown as pills (optional)
- `--badge` — Top-right badge text (default: "OpenClaw")
- `--output` — Output path (default: `cover.png`)
- `--gradient` — Color scheme: `purple` (default), `blue`, `green`, `orange`, `dark`

Output: 1080×1440 PNG with gradient background, decorative elements, CJK text.

### Step 3: Send for Review

Send the draft content + cover image to the user's messaging channel for review. Format:

```
📝 小红书草稿 — [主题]

标题:[标题]

[正文内容]

封面图已生成:[path]

请确认:
✅ 可以发布
✏️ 需要修改
❌ 不发
```

**Never auto-publish.** Always wait for explicit user approval.

### Step 4: Publish via Browser

After user approval, publish using browser automation on the configured node.

See [references/browser-publish.md](references/browser-publish.md) for the complete browser automation steps.

Summary:
1. Navigate to `https://creator.xiaohongshu.com/publish/publish`
2. Enter title and body text
3. Upload cover image via browser `upload` action
4. Click publish

### Fallback: Manual Publishing

If browser automation is unavailable (CDP issues, node offline, etc.), send the complete pos

_meta.json

{
  "ownerId": "kn7f25fq88zj6cpv5zfby0s0q1811876",
  "slug": "xiaohongshu-publisher",
  "version": "1.0.0",
  "publishedAt": 1770874380231
}

references/browser-publish.md

# Browser Publishing Guide

## Prerequisites

- A connected node with Chrome/Chromium, or a sandbox browser available
- User logged into 小红书 creator portal in the browser
- Browser tool configured with the appropriate profile and target for your setup

Example configuration (adjust to match your environment):
```
profile: openclaw
target: node (or sandbox)
node: <your-node-name>
```

## Pre-flight Check

Before attempting browser publish, verify:

```
1. Check node status: nodes → status
2. Test browser: browser → tabs (with your configured profile/target)
3. If tabs fails → fall back to manual publishing
```

## Publishing Steps

### 1. Navigate to Creator Portal

```
browser → navigate
  url: https://creator.xiaohongshu.com/publish/publish
```

Wait for page load, then snapshot to verify.

### 2. Check Login State

Snapshot the page. If redirected to login page:
- Notify user: "小红书需要重新登录,请在浏览器上登录后告诉我"
- Stop and wait for user confirmation

### 3. Enter Title

```
browser → snapshot (find title input field)
browser → act → click on title input
browser → act → type title text
```

Title input is typically the first text field on the publish page.

### 4. Enter Body Content

```
browser → snapshot (find body/content editor)
browser → act → click on content editor area
browser → act → type body text
```

The content editor is a rich text area. Type plain text — 小红书 handles basic formatting.

**Important**: The editor may use contenteditable div, not a standard input. Use snapshot to find the correct ref.

### 5. Upload Cover Image

Upload the cover image using browser automation:

```
browser → snapshot (find upload/image button)
browser → act → click upload area
browser → upload (paths: ["/path/to/cover.png"])
```

> **Note**: `setInputFiles` / `upload` may not trigger change events in all browser configurations. If the image doesn't appear after upload, ask the user to upload manually and provide the file path.

### 6. Publish

```
browser → snapshot (find publish/发布 button)
browser → act → click publish button
```

Wait and snapshot to verify success. Look for success message or redirect.

### 7. Verify

After publishing, navigate to the user's profile or the new post URL to confirm it's live.

## Troubleshooting

| Problem | Solution |
|---------|----------|
| CDP connection fails | Fall back to manual publishing via channel message |
| Login expired | Ask user to re-login in their browser |
| Page layout changed | Use snapshot + aria refs to find elements dynamically |
| Upload fails silently | Ask user to upload cover manually and provide the file path |
| Publish button grayed out | Check if required fields (title, content) are filled |

## Fallback: Manual Publishing

If any browser step fails, deliver all content formatted for manual copy-paste:

```
📋 小红书发帖内容(请手动发布)

【标题】标题文本

【正文】
完整正文内容...

【标签】#tag1 #tag2 ...

【封面图】/path/to/cover.png
```

Always prioritize getting content to the user over perfect automation.

references/content-guide.md

# 小红书 Content Guide

## Post Structure

Every post follows this structure:

```
[Emoji] [标题](≤20字,吸睛)

开头段(1-2句话,设置场景/痛点)

---

[Emoji] 小标题一

内容段落(短句为主,3-5行)
▸ 要点用 ▸ 符号
▸ 代码用 ``` 包裹
▸ 关键词用 **加粗**

---

[Emoji] 小标题二
...

---

💡 总结/建议段

实用建议,1-3 条,编号列出

互动问题 + CTA 👇

#标签1 #标签2 #标签3 ...(8-12个)
```

## Writing Style Rules

1. **口语化** — 像跟朋友聊天,不是写论文。用「你」不用「您」
2. **短段落** — 每段 3-5 行,手机阅读友好
3. **Emoji 引导** — 每个大标题前放 emoji,但不要满屏 emoji
4. **技术但通俗** — 有深度但能让非专家看懂。专业术语要解释
5. **真实感** — 用亲身经历、实际截图、真实数据。不要泛泛而谈
6. **互动结尾** — 最后一句用问句,引导评论

## Title Formula

好标题 = Emoji + 数字/对比/悬念 + 关键词

Examples:
- 🔥 我是AI助手,一周帮程序员干了这些活
- 📱 手机秒变AI的眼睛和手脚
- 🔐 你的AI助手正在被投毒?
- 🧩 5分钟写一个AI能力包
- ⚡ 4个AI模型实测对比

## Section Separators

Use `---` between major sections. Within a section:
- ▸ for bullet points
- 1️⃣ 2️⃣ 3️⃣ for ordered steps
- **Bold** for key terms
- \`code\` for inline code
- ``` for code blocks (keep short, ≤5 lines if possible)

## Hashtag Strategy

Place at the very end. Include:
- 2-3 broad tags (#AI助手 #效率工具 #自动化)
- 2-3 product tags (#OpenClaw #ClaudeCode etc.)
- 2-3 topic-specific tags (related to the post content)
- 1-2 audience tags (#程序员 #开发者)

## Content Length

- Ideal: 800-1500 字
- Minimum: 500 字
- Maximum: 2000 字 (小红书 truncates long posts)

## Cover Image Text

Cover image should have:
- **Main title**: 2-4 大字,核心信息
- **Subtitle**: 1 行补充说明
- **Badge**: Series/brand identifier (e.g., "Day 6 | OpenClaw")
- **Feature tags**: 3-4 关键词 pills

Cover text should be different from (but related to) the post title — it's the visual hook.

skill-card.md

## Description:

Drafts Xiaohongshu/RED posts, generates cover images, routes drafts for user review, and publishes approved posts through browser automation or a manual fallback.

This skill is ready for commercial/non-commercial use.

## Publisher:

[yuf1011](https://clawhub.ai/user/yuf1011)

### License/Terms of Use:


## Use Case:

External creators, marketers, and operators use this skill to draft Xiaohongshu content, generate a 1080x1440 PNG cover, review the proposed post, and publish it after explicit approval. It can also package the content for manual posting when browser automation is unavailable.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated covers include OpenClaw branding by default, which may be unclear to users or unsuitable for a given post.

Mitigation: Review the generated cover before publishing and override the badge text when the brand label should be changed or removed.

Risk: Scheduled posting guidance could affect a live Xiaohongshu account without timely human oversight.

Mitigation: Keep scheduled runs draft-only and require explicit user approval before any browser-based publish action.

Risk: The skill needs access to a logged-in Xiaohongshu creator session and browser automation may fail or encounter an expired login.

Mitigation: Use only an account the agent is authorized to access, verify login state before publishing, and fall back to manual posting when automation is unavailable.

Risk: The cover-generation script depends on Pillow and local CJK fonts.

Mitigation: Run it in an isolated Python environment with Pillow installed and verify required CJK fonts before relying on generated assets.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/yuf1011/skills/xiaohongshu-publisher)
- [Publisher profile](https://clawhub.ai/user/yuf1011)
- [Xiaohongshu creator publishing portal](https://creator.xiaohongshu.com/publish/publish)
- [Browser Publishing Guide](references/browser-publish.md)
- [Xiaohongshu Content Guide](references/content-guide.md)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown draft text with shell commands, browser automation guidance, and PNG cover image file output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Generates a 1080x1440 PNG cover image and may produce manual copy-paste publishing instructions when automation is unavailable.]

## Skill Version(s):

1.0.0 (source: server-resolved release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 小红书自动发布助手 and adjacent AI workflows.