XHS Auto for Openclaw

A professional automation workflow for generating, drafting, and validating Xiaohongshu social media posts.

luweizheng
v1.0.0
Mar 2, 2026
1
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install xhsauto

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 xhsauto 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?

XHS Auto is a powerful automation skill designed to handle the end-to-end lifecycle of Xiaohongshu (XHS) content creation. By leveraging the flexibility of Openclaw Skills, it connects user-provided topics with AI-driven copywriting and image generation engines. The tool ensures that every post adheres to platform-specific constraints, such as character limits and image ratios, while providing a robust debugging environment to validate content before it goes live.

XHS Auto Use Cases

  • Automating daily content creation for Xiaohongshu marketing accounts.
  • Batch generating AI-powered visuals and copy for brand promotion.
  • Validating post metadata and compliance using a simulated publishing environment.
  • Streamlining social media workflows for developers using CLI-based tools.

How XHS Auto Works

  1. The user provides a theme or idea for a new post.
  2. The system generates optimized copy, including a title (under 20 characters) and body text (under 950 characters).
  3. It checks for existing images; if none are provided, it constructs prompts and executes a generation script to create high-quality visuals.
  4. All generated assets, including the markdown file and images, are stored in a timestamped workspace directory.
  5. The skill runs a debug-publish command via xhs-kit to verify the content and output a validation report.

XHS Auto Setup

To get started with this skill, ensure you have the necessary dependencies installed:

# Install the core automation kit
pip install xhs-kit

# Install Playwright for browser-based authentication
playwright install chromium

# Install Python dependencies for image generation
pip install requests

For official publishing, you must also authenticate your account:

xhs-kit login-qrcode --terminal

XHS Auto Data Schema & Taxonomy

The skill organizes its output within the ${workspace}/xhs-auto/{timestamp}/ directory. The structure is as follows:

Path Content Description
{keyword}.md Contains title, body, hashtags, and asset references.
image.png The generated or provided image asset for the post.
scripts/ Contains xhs-image.py and xhs-image.sh for asset generation.
references/ Includes text-to-image and publishing guidelines.

XHS Auto Advanced Features

  • Multi-mode image generation supporting both text-to-image and image-to-image workflows.
  • Cross-platform compatibility with optimized Python scripts for Windows, macOS, and Linux.
  • Configurable API base support via environment variables for regional network optimization.
  • Automated compliance checking to prevent publishing errors before official submission.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins bashcurljqbase64xhs-kit
Github Stars: 0
forks: 0

Featured*