Xiaohongshu (XHS) Content Assistant for Openclaw

A comprehensive automation tool for managing Xiaohongshu (XHS) accounts, supporting content publishing, searching, and social interactions.

luweizheng
v1.0.1
Feb 27, 2026
1
964
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install post2xhs

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 post2xhs 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 Xiaohongshu (XHS) Content Assistant?

This skill empowers developers and content creators to programmatically interact with Xiaohongshu (XHS), one of the most influential social platforms. By leveraging Openclaw Skills, users can bypass manual workflows to publish image-based posts, videos, or stylized text cards directly from their workspace. It handles complex authentication flows, including terminal-based QR codes and browser-level logins, ensuring secure and persistent access to account features.

Beyond publishing, the skill enables deep engagement by automating searches and social interactions. Whether you need to research trending topics or engage with your audience by responding to comments, this tool provides a structured interface to scale your social media presence using AI-driven automation.

Xiaohongshu (XHS) Content Assistant Use Cases

  • Automating social media marketing campaigns on Xiaohongshu.
  • Bulk uploading high-quality images and videos for brand accounts.
  • Researching trending topics and competitor content through automated search.
  • Enhancing audience engagement by responding to comments programmatically.
  • Generating stylized text card posts directly from raw text content.

How Xiaohongshu (XHS) Content Assistant Works

  1. Environment Initialization: The skill verifies the Python environment and installs necessary Playwright browser dependencies.
  2. Secure Authentication: Users authenticate via terminal QR codes or browser sessions; session cookies are stored locally for subsequent requests.
  3. Content Orchestration: The skill accepts parameters for titles, descriptions, media paths, and tags to format a post.
  4. Execution: Using Playwright, the skill automates the XHS web interface to perform actions like publishing or searching.
  5. Interaction Loop: Detailed feed IDs and tokens are returned, allowing for programmatic likes, favorites, and multi-level comment replies.

Xiaohongshu (XHS) Content Assistant Setup

Prerequisites

Ensure you have a Python interpreter and the necessary system libraries (like zbar for terminal QR codes).

Installation

# Install the package
pip install -U xhs-mcp-py

# Install required Playwright browser
playwright install chromium

Authentication

Check your status and log in using the recommended terminal QR code method:

# Check login status
xhs-mcp status

# Log in via terminal QR code
xhs-mcp login-qrcode --terminal

Xiaohongshu (XHS) Content Assistant Data Schema & Taxonomy

The skill organizes operations around specific identifiers retrieved during search or browsing. Below is the primary data structure for interactions:

Attribute Description Required For
feed_id Unique identifier for an XHS post Liking, Favoriting, Commenting
xsec_token Security token for feed access All engagement operations
comment_id Unique identifier for a specific comment Replying to comments
style Text card visual template publish-text-card command
cookies Local session data Persistent authentication

Xiaohongshu (XHS) Content Assistant Advanced Features

  • Model Context Protocol (MCP) support for seamless integration with AI coding agents and IDES via Openclaw Skills.
  • Multi-modal publishing support for image galleries, MP4 videos, and automated text-to-image cards.
  • Advanced login fallback logic supporting terminal QR codes, browser-based login, and image file exports.
  • Threaded interaction management for programmatically replying to specific users and comments.
  • Headless mode support for running automations in background environments or remote servers.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins convert
Github Stars: 0
forks: 0

Featured*