xiaohongshu-auto-posting
What it does
This skill guides a full Xiaohongshu content cycle for a product you set up. It is for marketers and creators who want help researching topics, writing posts and tracking results on the platform.
When to use it
- βWhen you want to find popular topics on Xiaohongshu for your product.
- βWhen you want help writing Xiaohongshu posts in the style of successful notes.
- βWhen you want to publish a post and track how it performs after it goes live.
Skill link
https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-auto-posting/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βResearch popular pain-point topics on Xiaohongshu for my skincare product, write three draft posts, and wait for my approval before publishing.β
5 new skills a week. 1 minute to read.
How it works
The skill works in phases. It collects topics from search, gathers style references, writes posts that match the style, and publishes them only after you approve. It then tracks the performance of each post.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Xiaohongshu Auto-Posting (XHS Auto-Posting)
End-to-end Xiaohongshu content operation: topic discovery β style reference β writing β publishing β performance tracking.
Language
All process output to user (progress updates, questions, status notifications) follows the user's language.
Objective
Automate a complete Xiaohongshu content operation cycle for a configured product: discover high-engagement pain-point topics via search, collect writing style references, generate platform-native content aligned with the style fingerprint, publish with user approval, and track post-publish performance metrics.
Prerequisites
- Xiaohongshu creator center (
creator.xiaohongshu.com) already logged in on a configured stealth browser (browser ID stored insession_state.json) workspaces/xhs-posting/workspace (auto-created on first run)
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session β skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
2. Login Verification
Covered in Phase 0.5 β login check is deferred until session state is loaded (Phase 0.2) and the browser is opened. If the user triggers Phase 6 directly (standalone tracking mode), still complete Phase 0.2 and Phase 0.5 first.
3. Session Lifecycle
Each execution generates a unique session name (xhs-<YYYYMMDD>-<HHMM>) to avoid cross-conversation conflicts. The session is opened once in Phase 0.5 and closed at the end of the workflow. All commands in this Skill reference the session via $SESSION β the actual name is determined at runtime.
Runtime Workspace
All runtime files (config, drafts, publish records, screenshots) are written to the user's working directory (CWD) under workspaces/xhs-posting/. This directory is auto-created on first run.
workspaces/xhs-posting/ β relative to user CWD
βββ session_state.json # account & product config
βββ config/
β βββ keywords.json # keyword pool
βββ tracking/
β βββ published.json # published note records
βββ reports/ # performance reports
βββ <YYYY-MM-DD>/ # per-run date directory
βββ topics/
βββ selected_topics.json
βββ style_fingerprint.json
βββ drafts/
βββ replies/
Quick Start
/xiaohongshu-auto-posting
Standalone triggers (jump directly to the corresponding phase, skipping Phase 0β4):
"track performance"/"see data"/"data collection"β Phase 6 performance tracking"settings"/"switch account"/"update keywords"β Phase 0 configuration wizard
Operational Rules
Three rules that apply to every browser-act session. Violating any one causes silent failures or long hangs. Full details in references/phase5-publish.md Β§0.
Rule 1 β Never pipe browser-act output directly
Redirect state output to a temp file, then grep the file. Piping may background the command when output contains multi-byte characters, making the result unavailable synchronously.
# WRONG
browser-act --session $SESSION state | grep "Publish"
# CORRECT
browser-act --session $SESSION state > /tmp/s.txt 2>&1 && grep "Publish" /tmp/s.txt
Rule 2 β Escape all non-ASCII content before passing to eval --stdin
Non-ASCII literals (Chinese, emoji) in JS source cause encoding errors in the subprocess pipeline. Escape to \uXXXX first:
def to_ascii_js(s):
return ''.join(r'\u{:04x}'.format(ord(c)) if ord(c) > 127 else c for c in s)
js = to_ascii_js(open('tmp/script.js', encoding='utf-8').read())
subprocess.run([..., 'eval', '--stdin'], input=js.encode('ascii'), ...)
Rule 3 β Use click, not eval, for actions that trigger navigation
eval hangs (~30 s timeout) when the callback causes a page redirect. Always use browser-act --session $SESSION click <index> for the publish button, then verify the URL immediately after.
Phase 0 β Initialization
0.1 Tool Check
Run browser-act browser list:
- Command not found β run
uv tool upgrade browser-act-cli || uv tool install browser-act-cli --python 3.12, then continue - Returns normally β continue
0.2 Session State Load
Read workspaces/xhs-posting/session_state.json:
- File does not exist, or
browser_idis empty β proceed to 0.3 First-time Configuration Wizard - File exists and `b
FAQ
Does it publish posts without asking me?
No, the description says publishing happens with user approval.
Do I need to be logged in to Xiaohongshu?
Yes, the creator center must be logged in on the configured browser before the publishing steps.
Does it track the results?
Yes, the final phase tracks performance metrics after publishing.
Details
Original description by the author
Automates the complete Xiaohongshu (XHS / Little Red Book) content operation workflow: pain-point topic collection β style case collection β topic selection β content writing β publishing β performance tracking. Use when user mentions xiaohongshu auto posting, xhs auto post, little red book posting, xiaohongshu post, xiaohongshu auto posting, xiaohongshu content operations, xhs content marketing, post to xiaohongshu, publish on xhs, post on xiaohongshu, xiaohongshu promotion, xiaohongshu operations, xiaohongshu automation, xhs automation, track xhs performance, track xiaohongshu performance, x
repo: browser-act/skills
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14323
- License
- MIT
- Updated
- 8/24/2026
Comments
- β¦
More skills from this repository
browser-act-skill-forge
6.3kHelps your agent explore a website once and save a reusable skill with scripts, so later data pulls from that site are faster.
browser-act
6.3kHelps your agent run a browser automation tool to open pages, read rendered content, fill forms, take screenshots and manage logged-in sessions.
1688-product-detail
6.3kHelps your agent pull product details from a 1688.com wholesale page, such as price tiers, variants, seller stats and attributes.
airbnb-listing-detail
6.3kHelps your agent fetch the public details of an Airbnb listing by its ID, such as photos, amenities, ratings and house rules.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.