xhs-draftbox is an OpenClaw-ready Xiaohongshu draft skill bundle.
It does two things:
- Saves prepared图文内容 into 小红书创作者中心草稿箱.
- Opens the latest draft inside a managed browser profile so a human can review, edit, and publish manually.
The intended production path is:
bootstrap.mjscheck-session.mjslogin.mjsif QR login is neededsave-draft.mjsopen-managed-draft.mjs
save-draft.mjs is the stable saver.
open-managed-draft.mjs is the stable human handoff.
- macOS
- Node.js 20+
- npm / npx
- Google Chrome
- Login state:
.state/<account>/storage-state.json - Latest local draft state:
.state/<account>/draft-local-state.json - Managed review browser profile:
.state/<account>/runtime/managed-browser-profile
cd /absolute/path/to/xhs-draftbox-repo
node ./scripts/bootstrap.mjs --json
node ./scripts/check-session.mjs --account default --json
node ./scripts/login.mjs --account default --json
node ./scripts/save-draft.mjs --account default --payload /absolute/path/to/payload.json --json
node ./scripts/open-managed-draft.mjs --account default --json
node ./scripts/repair-draft-assets.mjs --account default --json