← 返回 Skills 市场
vinplezhang

Vinplezhang Xiaohongshu Publisher

作者 vinplezhang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
225
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install vinplezhang-xiaohongshu-publisher
功能描述
Draft and publish posts to 小红书 (Xiaohongshu/RED). Use when creating content for 小红书, drafting posts, generating cover images, or publishing via browser autom...
使用说明 (SKILL.md)

小红书 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 fontsfonts-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 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:

python3 \x3Cskill-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 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 post to the user's channel with all content formatted for easy copy-paste:

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

【标题】[标题]

【正文】
[正文内容]

【标签】[hashtags]

封面图:[path to cover image]

Known Limitations

  • Mac Chrome CDP: Chrome launched via SSH/node may fail to bind --remote-debugging-port on macOS (GUI session required). If browser start fails, fall back to manual publishing.
  • Login state: 小红书 creator portal requires login. If the session has expired, ask the user to re-login in their browser before proceeding.
  • Pillow emoji: Pillow cannot render color emoji (NotoColorEmoji.ttf) — use text/icon alternatives in cover images.

Cron Integration

This skill works with cron jobs for scheduled daily posting. Typical cron setup:

Schedule: 0 8 * * * (Asia/Shanghai)
Session: isolated agentTurn
Delivery: announce to user's channel

The cron job message should reference this skill and include the content plan/topic for the day.

安全使用建议
This skill appears coherent and limited to drafting, generating cover images, and automating browser publishing to 小红书. Before installing, confirm: (1) you are comfortable the skill will write drafts to agent memory (memory/xiaohongshu-draft.md) and send messages to your configured channel for review; (2) you will run the included gen_cover.py locally, which requires Pillow and CJK fonts — install them from official package managers; (3) browser automation uses your existing browser/session on a node (ensure that node/profile is secure and logged into the correct 小红书 account); and (4) if you enable cron/scheduling, double-check scheduling and approval flow to avoid unintended publishes. If any of these behaviors are unacceptable, do not enable cron or provide automated node access.
功能分析
Type: OpenClaw Skill Name: vinplezhang-xiaohongshu-publisher Version: 1.0.0 The skill provides a legitimate workflow for drafting and publishing Xiaohongshu posts, including a Python script (scripts/gen_cover.py) for image generation and browser automation instructions. It explicitly mandates user approval before publishing ('Never auto-publish') and contains no evidence of data exfiltration, malicious execution, or obfuscation.
能力评估
Purpose & Capability
Name/description match the included files and instructions: SKILL.md documents drafting, cover generation, review, and browser publishing; the only code file is a Pillow-based cover generator, which is appropriate for the stated functionality. No unrelated binaries or credentials are required.
Instruction Scope
Instructions remain on-purpose (create draft, generate cover, request user approval, then publish via browser automation). They write a draft to memory/xiaohongshu-draft.md and send content to the user's messaging channel for review, and they drive a browser tool that uses the user's logged-in session. This is expected, but users should note the skill reads/writes agent memory and sends messages to channels as part of its workflow.
Install Mechanism
No install spec is provided (instruction-only plus an included Python script). The script depends on Pillow and system CJK fonts; both are typical and the package install is local (pip/apt/brew). There are no downloads from untrusted URLs or archive extraction steps.
Credentials
The skill declares no required environment variables or credentials. Browser automation relies on an existing logged-in browser/profile (user-controlled). There are no unexpected credential requests or environment accesses.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It documents cron integration for scheduled posting; combined with autonomous invocation capability of the platform, that allows scheduled runs if the user configures them. SKILL.md explicitly instructs to await explicit user approval and not to auto-publish.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install vinplezhang-xiaohongshu-publisher
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /vinplezhang-xiaohongshu-publisher 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
xiaohongshu-publisher 1.0.0 — Initial Release - Drafts, reviews, and publishes full 小红书 (Xiaohongshu/RED) posts using browser automation. - Supports cover image generation (1080×1440) with customizable gradient, title, subtitle, and tags. - Integrates user review/approval step before publishing; never auto-publishes without explicit consent. - Provides clear fallback for manual posting if browser automation is unavailable. - Includes workflow documentation, requirements, and cron integration guidelines.
元数据
Slug vinplezhang-xiaohongshu-publisher
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Vinplezhang Xiaohongshu Publisher 是什么?

Draft and publish posts to 小红书 (Xiaohongshu/RED). Use when creating content for 小红书, drafting posts, generating cover images, or publishing via browser autom... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 225 次。

如何安装 Vinplezhang Xiaohongshu Publisher?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install vinplezhang-xiaohongshu-publisher」即可一键安装,无需额外配置。

Vinplezhang Xiaohongshu Publisher 是免费的吗?

是的,Vinplezhang Xiaohongshu Publisher 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Vinplezhang Xiaohongshu Publisher 支持哪些平台?

Vinplezhang Xiaohongshu Publisher 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Vinplezhang Xiaohongshu Publisher?

由 vinplezhang(@vinplezhang)开发并维护,当前版本 v1.0.0。

💬 留言讨论