xiaohongshu-auto-posting
Fungsinya
Skill ini memandu siklus konten Xiaohongshu lengkap untuk produk yang Anda atur. Skill ini ditujukan untuk pemasar dan kreator yang ingin dibantu meneliti topik, menulis postingan, dan melacak hasilnya di platform.
Kapan dipakai
- βSaat Anda ingin menemukan topik populer di Xiaohongshu untuk produk Anda.
- βKetika Anda ingin dibantu menulis postingan Xiaohongshu dengan gaya catatan yang sukses.
- βSaat Anda ingin menerbitkan postingan dan melacak kinerjanya setelah tayang.
Link skill
https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-auto-posting/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTeliti topik masalah populer di Xiaohongshu untuk produk perawatan kulit saya, tulis tiga draf postingan, dan tunggu persetujuan saya sebelum menerbitkan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini bekerja dalam beberapa tahap. Ia mengumpulkan topik dari pencarian, mengumpulkan referensi gaya, menulis postingan yang sesuai gaya itu, dan hanya menerbitkannya setelah Anda menyetujui. Setelah itu ia melacak kinerja setiap postingan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ia menerbitkan postingan tanpa bertanya kepada saya?
Tidak. Deskripsinya menyebutkan bahwa penerbitan dilakukan dengan persetujuan pengguna.
Apakah saya perlu masuk ke Xiaohongshu?
Ya, pusat kreator harus sudah masuk di browser yang dikonfigurasi sebelum langkah penerbitan.
Apakah ia melacak hasilnya?
Ya, tahap terakhir melacak metrik kinerja setelah penerbitan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 6.3k
- Peringkat
- #14323
- Lisensi
- MIT
- Diperbarui
- 24/8/2026
Komentar
- β¦
Skill lain dari repositori ini
browser-act-skill-forge
6.3kMembantu agent Anda menjelajahi sebuah situs web sekali dan menyimpan skill yang bisa dipakai ulang beserta skripnya, sehingga pengambilan data dari situs itu nanti lebih cepat.
browser-act
6.3kMembantu agent Anda menjalankan alat otomasi browser untuk membuka halaman, membaca konten yang sudah dirender, mengisi formulir, mengambil tangkapan layar, dan mengelola sesi yang sudah masuk.
1688-product-detail
6.3kMembantu agent Anda mengambil detail produk dari halaman grosir 1688.com, seperti tingkat harga, varian, statistik penjual, dan atribut.
airbnb-listing-detail
6.3kMembantu agent Anda mengambil detail publik sebuah listing Airbnb berdasarkan ID-nya, seperti foto, fasilitas, rating, dan aturan rumah.
Skill serupa
xurl
394kMembantu agent Anda memposting, membalas, mencari, dan membaca di X, mengirim pesan langsung, serta mengunggah media, memakai alat xurl yang sudah login.
connections-optimizer
280kMeningkatkan koneksi jaringan sosial Anda. Menyarankan siapa yang perlu di-follow atau di-unfollow, dan membantu membuat pesan personal untuk memperluas jaringan.
content-engine
280kMembuat konten untuk berbagai platform. Menyusun postingan, script, dan kalender konten yang cocok untuk X, LinkedIn, dan YouTube.