xiaohongshu-publisher
Xiaohongshu (RedNote/小红书) automation skill for content publishing and engagement. Publish image-text notes via the xhs API using cookies, and simulate browser interactions (search, browse, comment) via Playwright. 小红书自动发布与互动技能:通过 xhs API 直接发布图文笔记,通过 Playwright 模拟网页搜索、浏览与评论互动。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bighit1/xiaohongshu-publish-skillWhat This Skill Does
The xiaohongshu-publisher skill is an integrated automation framework designed for Xiaohongshu (RedNote) operations. It bridges the gap between programmatic content publishing and organic browser-based engagement. The skill is split into two primary modules: a robust API-based publishing engine for high-frequency content delivery, and a Playwright-powered browser automation module for emulating human-like interactions such as searching, browsing, and commenting. It is essential for creators and social media managers looking to maintain an active presence on the platform via OpenClaw.
Installation
Installation requires a standard Linux or macOS environment. First, execute the setup.sh script to create the necessary virtual environment (venv) and set up the browser data directory (xhs_browser_data). For local development on Windows, utilize the setup.ps1 script. Ensure that your .env file is properly configured with your XHS_COOKIE before attempting any publishing tasks, as these are critical for authentication. Once the environment is initialized, you can trigger scripts directly using the venv/bin/python interpreter to maintain dependency isolation.
Use Cases
- Automated Content Distribution: Efficiently publish bulk image-text notes from a central repository to your Xiaohongshu account.
- Community Management: Use the interaction module to monitor search trends and automatically engage with target audiences by posting comments on relevant posts.
- Content Strategy Testing: Use the 'dry-run' feature to validate formatting and API readiness before executing a full public release.
- Engagement Campaigns: Automate the process of searching for specific hashtags and interacting with user-generated content to boost your account visibility.
Example Prompts
- "Publish the images located in /assets/trip_report/ and use the title 'Top 10 Travel Spots' with the description provided in the summary file."
- "Perform a search for the keyword 'tech gadgets' and leave a polite comment on the top three posts found."
- "Can you check if my current Xiaohongshu cookie is valid by running a dry-run test with the latest blog draft?"
Tips & Limitations
- Safety & Risk: Always use the
--dry-runflag when testing new publishing workflows. Public posts should be verified in private mode first to ensure content quality and layout compliance. - Rate Limiting: When performing comment interactions, always implement a delay of at least 30 seconds between actions to mimic human behavior and avoid triggering platform anti-bot measures.
- Data Persistence: Note that
xhs_browser_datais local to your environment; protect this directory as it contains your session state. Consultreferences/troubleshooting.mdif you encounter login issues or session expirations.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bighit1-xiaohongshu-publish-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution