XHS Auto Publish for Openclaw

A powerful automation skill for generating and publishing Xiaohongshu notes using manual themes or AI-driven trend discovery.

luckychay
v1.0.0
Apr 8, 2026
0
470
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xhs-note-auto-publish

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xhs-note-auto-publish using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is XHS Auto Publish?

XHS Auto Publish is a specialized automation tool designed for the Xiaohongshu (Little Red Book) platform. As part of the Openclaw Skills ecosystem, it leverages advanced scripting to handle the entire content lifecycle—from initial topic selection to final publication. The skill is built around the xhs-auto-publish-v2.sh engine, providing developers and marketers with a programmatic way to maintain a consistent social media presence without manual intervention.

By integrating seamlessly with the OpenClaw agent, this skill ensures that generated content remains high-quality and relevant. Whether you are targeting specific keywords like Singapore Kaplan Academy or looking for the agent to find its own viral trends, this skill provides the infrastructure to scale your digital marketing efforts efficiently.

XHS Auto Publish Use Cases

  • Automated posting for educational consultancy focusing on Singapore universities.
  • Hands-free social media management using the auto-topic selection mode to capture trending XHS keywords.
  • Scheduled content distribution via cron jobs for consistent account activity.
  • Programmatic generation of branded covers using ImageMagick integration.

How XHS Auto Publish Works

  1. Parameter Parsing: The skill analyzes user input to determine if the workflow should use a specific theme or the --auto discovery mode.
  2. Prompt Construction: Based on the selected mode, it builds a specific prompt designed for high-conversion Xiaohongshu notes.
  3. Idempotency Check: It verifies if a similar task is already running to prevent duplicate posts and maintain account integrity.
  4. Agent Execution: The OpenClaw agent is invoked to generate the text and images (using ImageMagick for covers) and execute the publication.
  5. Result Feedback: The system provides a real-time status update to the user regarding the success or failure of the post.

XHS Auto Publish Setup

To get started with this skill, ensure you have the core xhs skill installed and configured. Follow these steps in your terminal:

# Navigate to your OpenClaw workspace
cd ~/.openclaw/workspace

# Run the setup script if available, or ensure the script has execute permissions
chmod +x ./scripts/xhs-auto-publish-v2.sh

# Test the installation with a specific topic
./scripts/xhs-auto-publish-v2.sh "Singapore Study Guide"

XHS Auto Publish Data Schema & Taxonomy

The skill maintains a clean directory structure within the Openclaw Skills environment to manage scripts and references:

Directory/File Description
SKILL.md Core documentation and metadata for the skill.
scripts/xhs-auto-publish-v2.sh The primary execution script for the publishing logic.
references/ Contains supplementary materials and deep-dive README files.
scripts/setup.sh Automated configuration script for dependencies.

All generated content includes mandatory hashtags such as #SingaporeStudyAbroad and #SingaporePrivateUniversity to ensure SEO visibility on the platform.

XHS Auto Publish Advanced Features

  • Trend Discovery Mode: Use the --auto flag to let the skill research current hot topics on Xiaohongshu automatically.
  • Intelligent Image Generation: Automatic creation of high-contrast, text-heavy covers optimized for the XHS feed using ImageMagick.
  • Multi-Mode Support: Seamlessly switch between user-defined external themes and autonomous content generation.
  • Built-in Idempotency: Prevents account spamming by ensuring the same task isn't processed multiple times simultaneously.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*