Xiaohongshu Auto-Interaction Skill for Openclaw

A sophisticated automation tool for Xiaohongshu that intelligently handles content discovery, likes, and favorites while maintaining historical records to avoid duplication.

luckychay
v1.0.0
Apr 8, 2026
0
697
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install xhs-auto-interaction

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-auto-interaction 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 Auto-Interaction Skill?

The Xiaohongshu Auto-Interaction skill is a robust automation solution built for the Openclaw Skills ecosystem. It enables users to perform intelligent searches, browse recommended content, and interact with notes through likes and favorites. By leveraging an improved script architecture, it ensures organic-looking behavior through randomized keyword selection and built-in error handling to manage platform-specific states efficiently.

This skill is particularly valuable for developers and marketers looking to maintain a consistent presence on social platforms without manual overhead. It integrates directly with the Model Context Protocol (MCP) to execute actions safely and provides comprehensive logging for transparent performance tracking.

Xiaohongshu Auto-Interaction Skill Use Cases

  • Automating engagement for accounts focused on specific niches such as Singapore education and study abroad services.
  • Maintaining a consistent interaction pattern to train the Xiaohongshu recommendation algorithm.
  • Scaling social media marketing efforts across multiple time slots using automated scheduling.
  • Preventing redundant interactions by tracking engagement history across different sessions.

How Xiaohongshu Auto-Interaction Skill Works

  1. The skill initializes an MCP session by connecting to the local service at the configured endpoint.
  2. It verifies the login status of the Xiaohongshu account to ensure the automation can proceed.
  3. A keyword is randomly selected from a pre-configured list of 15 niche-specific terms to diversify the search results.
  4. It crawls search results and the recommendation feed to gather a list of potential notes for interaction.
  5. The system loads the local history file to identify and skip notes that have already been liked or favorited.
  6. Intelligent interaction logic executes likes and favorites based on the current state of each note.
  7. Detailed statistics and note links are generated and appended to the execution log for manual review.

Xiaohongshu Auto-Interaction Skill Setup

1. Script Installation

Copy the improved interaction script into your local workspace and grant execution permissions:

cp scripts/xhs_interaction_improved.sh ~/.openclaw/workspace/
chmod +x ~/.openclaw/workspace/xhs_interaction_improved.sh

2. Schedule Automation

Use crontab to set up a recurring schedule for the Openclaw Skills automation:

# Open crontab editor
crontab -e

# Example: Execute at specific intervals throughout the day
31 12,14,16,18,20 * * * /home/user/.openclaw/workspace/xhs_interaction_improved.sh

3. Verification

Test the connection to the MCP service to ensure it is running properly:

curl http://localhost:18060/mcp

Xiaohongshu Auto-Interaction Skill Data Schema & Taxonomy

The skill manages its state and output through specific files within the workspace to maintain the integrity of Openclaw Skills operations:

File Type Path Purpose
History Log xhs_interaction_history.txt Stores ACTION:feed_id:timestamp to prevent duplicate likes/favorites.
Execution Log xhs_interaction_improved.log Detailed technical logs, including success/failure stats and note URLs.
Configuration Script Variables Defines MCP_URL, MAX_ATTEMPTS, and the keyword array for search.

Xiaohongshu Auto-Interaction Skill Advanced Features

  • Smart Duplicate Prevention: Uses a dedicated history tracking system to skip previously engaged content.
  • Keyword Expansion: Includes a built-in array of 15 targeted keywords focused on Singapore private universities for precise niche targeting.
  • Intelligent State Detection: Recognizes if a note is already liked or favorited via the MCP service to avoid redundant network requests.
  • Detailed Execution Analytics: Provides summary statistics including successful interaction counts and clickable note links in the logs.
  • Automated Error Handling: Automatically logs failures due to platform limits or network issues to prevent account flags.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*