Skip to content

Noahmlng/xhs-draftbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xhs-draftbox

xhs-draftbox is an OpenClaw-ready Xiaohongshu draft skill bundle.

It does two things:

  1. Saves prepared图文内容 into 小红书创作者中心草稿箱.
  2. Opens the latest draft inside a managed browser profile so a human can review, edit, and publish manually.

Stable workflow

The intended production path is:

  1. bootstrap.mjs
  2. check-session.mjs
  3. login.mjs if QR login is needed
  4. save-draft.mjs
  5. open-managed-draft.mjs

save-draft.mjs is the stable saver. open-managed-draft.mjs is the stable human handoff.

Runtime requirements

  • macOS
  • Node.js 20+
  • npm / npx
  • Google Chrome

Important local state

  • 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

Useful commands

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

About

OpenClaw skill for saving Xiaohongshu creator-center drafts and handing them off in a managed browser profile.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages