xhs-auto-publish
Automate publishing image+text posts (图文笔记) on Xiaohongshu (小红书) creator platform. Use when the user wants to publish a Xiaohongshu post, create XHS content, auto-post to 小红书, or schedule social media posts for the Chinese market. Supports multi-image upload, title, body text, and hashtags. Requires a browser with CDP (Chrome DevTools Protocol) already logged in to creator.xiaohongshu.com.
Why use this skill?
Efficiently publish image and text posts to Xiaohongshu using OpenClaw's automation skill. Save time with CDP-based browser control for creators.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jerryops2026-del/xhs-auto-publishWhat This Skill Does
The xhs-auto-publish skill is a powerful automation tool designed for creators and marketers to streamline the content publishing process on Xiaohongshu (the Chinese equivalent of Instagram/Pinterest). By leveraging the Chrome DevTools Protocol (CDP), this skill enables your OpenClaw agent to interact directly with an authenticated creator.xiaohongshu.com session. It automates the tedious manual steps of uploading images, injecting titles and body text, and triggering the publishing event. It is designed to be head-less friendly while providing enough control to ensure content integrity, handling everything from file selection to React-based editor interactions.
Installation
To integrate this skill, run the following command in your terminal: clawhub install openclaw/skills/skills/jerryops2026-del/xhs-auto-publish. Ensure you have playwright-core installed globally via npm install -g playwright-core. You must also have a browser instance running with remote debugging enabled. For OpenClaw users, the managed browser environment (profile="openclaw") automatically configures the CDP endpoint at http://127.0.0.1:18800.
Use Cases
This skill is perfect for social media managers, individual influencers, and growth hackers. Use it to:
- Automate daily posting schedules to maintain consistent activity.
- Repurpose content from other platforms like Instagram or Twitter into Xiaohongshu-ready formats.
- Bulk-upload image carousels for structured content series.
- Schedule posts for peak traffic hours in China without manual oversight.
- Integrate with other AI tools to generate image content and push it directly to your creator account.
Example Prompts
- "OpenClaw, publish a new post to Xiaohongshu using the images in the folder './marketing_slides'. Use the title 'Must-Have AI Tools for 2024' and add hashtags #AI #Productivity. Use the body text from body.txt."
- "I need to schedule a post for my XHS account. Here are the 5 images, title is 'Review of the latest tech', and please use the hashtag #TechTrends. Perform a dry run first and save a screenshot so I can check the layout."
- "Hey, create a Xiaohongshu post for the current campaign. Title: 'Top 5 Coffee Spots', Body: 'Detailed breakdown of local cafes', Images: 'coffee1.jpg,coffee2.jpg'. Please ensure it's fully published."
Tips & Limitations
- Always run a
--dry-runfirst to preview the final layout; Xiaohongshu's editor can be sensitive to text formatting. - The cover image is critical; ensure it adheres to the 3:4 ratio for maximum click-through rates.
- Keep titles punchy and under 20 characters to avoid truncation in the feed.
- This skill requires an active, logged-in session. If the agent fails to connect, refresh your manual login to
creator.xiaohongshu.comin your browser. - Maximum of 18 images per post; ensure individual files are under 20MB.
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-jerryops2026-del-xhs-auto-publish": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution