RedBookSkills (Post-to-xhs) for Openclaw

A comprehensive automation skill for Xiaohongshu that handles content publishing, data retrieval, and automated community engagement.

cp3d1455926-svg
v1.0.0
Mar 30, 2026
0
740
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install redbook-skills

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 redbook-skills 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 RedBookSkills (Post-to-xhs)?

RedBookSkills is an advanced automation toolkit designed for the Xiaohongshu (XHS) platform. It allows users to programmatically manage their social media presence by automating the publication of images and videos, checking login statuses, and performing complex content searches. By leveraging Chrome DevTools Protocol (CDP), it provides a robust interface for both headless automation and manual browser intervention.

Beyond simple posting, this Openclaw Skills integration supports deep interaction workflows. Users can retrieve homepage recommendations, search for specific notes using keywords, extract detailed engagement metrics, and even automate comments or likes. It is an essential tool for creators and marketers looking to scale their operations on XHS while maintaining high-quality interaction patterns.

RedBookSkills (Post-to-xhs) Use Cases

  • Automating the publication of marketing images and videos directly to Xiaohongshu from local directories or URLs.
  • Monitoring account health by performing automated login checks and QR code retrieval for remote authentication.
  • Conducting market research by scraping trending feeds and keyword-based search results.
  • Scaling community management through automated commenting, responding to mentions, and post interactions like upvoting or bookmarking.
  • Extracting performance data such as views, likes, and click-through rates into CSV format for analytics.

How RedBookSkills (Post-to-xhs) Works

  1. The user provides content inputs such as titles, body text, and media paths (local or URL).
  2. The skill validates the input, ensuring required elements (like images for photo posts) are present and titles meet platform character limits.
  3. A dedicated Chrome instance is launched via a launcher script, supporting either headless mode for background tasks or windowed mode for manual observation.
  4. For publishing, the script interacts with the XHS creator center using specific DOM selectors to upload media and input text.
  5. For interaction, it navigates to the XHS home or notification pages, capturing API responses or DOM data to return structured results like feed IDs or comment snippets.
  6. The lifecycle concludes with a success or failure report, providing key information back to the user.

RedBookSkills (Post-to-xhs) Setup

To get started with this Openclaw Skills component, ensure you have a Python environment ready. Initialize your browser and login status using the following commands:

# Install dependencies and launch the dedicated browser
python scripts/chrome_launcher.py

# Check your current login status
python scripts/cdp_publish.py check-login

# If not logged in, trigger the login flow
python scripts/cdp_publish.py login

RedBookSkills (Post-to-xhs) Data Schema & Taxonomy

RedBookSkills organizes data through structured file inputs and command-line arguments to ensure platform compatibility:

Data Type Description File/Parameter
Post Metadata Stores the title and body of the post. title.txt, content.txt
Media Files Local paths or remote URLs for images/videos. --images, --video-url
Account Data Manages multiple profiles and session aliases. list-accounts
Engagement Data Extracted metrics (views, likes, etc.) in structured format. content-data --csv-file
Interaction IDs Unique identifiers for feeds and tokens for secure actions. feed_id, xsec_token

RedBookSkills (Post-to-xhs) Advanced Features

  • Multi-account management: Seamlessly switch between different XHS accounts using aliases and dedicated ports.
  • Remote CDP Support: Control Chrome instances running on different hosts or within WSL environments using the --host and --port flags.
  • Advanced Interaction Logic: Includes automatic scrolling, expanding nested replies, and handling 'more replies' buttons for deep data extraction.
  • Flexible Publishing Modes: Toggle between --preview mode for manual final checks and --headless for fully autonomous pipelines.
  • Automated Data Export: Directly export engagement metrics and notification data to CSV for integration with external BI tools.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*