Langsung ke konten
Skillpedia
Media sosial6.3k Β· #14323

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/browser-act/skills/blob/main/solutions/social-listening/xiaohongshu-auto-posting/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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 in session_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_id is 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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa