Install
openclaw skills install weibo-managerManage Weibo posts via Puppeteer with a secure request-approve-execute workflow for drafting, reviewing, and publishing text and images.
openclaw skills install weibo-managerControl Weibo via Puppeteer (Unofficial API). Supports requesting posts, admin approval flow, and executing posts with text/images.
Request -> Approve -> Execute workflow. Autonomous publishing is FORBIDDEN. The Agent must never call publisher.js directly without an explicit "Approve" signal from the admin.request_publish.js to create a pending task and notify admin (via Feishu).approve_post.js (which calls publisher.js) to publish.Creates a pending post file (pending_posts/post_TIMESTAMP.json) and sends a review card to Feishu.
node skills/weibo-manager/src/request_publish.js <chat_id> <content> [image_path1] [image_path2] ...
'First line\nSecond line') or \n. The script handles \n conversion to simulated Enter key presses.Example:
node skills/weibo-manager/src/request_publish.js "oc_123..." "Hello Weibo!\nThis is a new line." "skills/weibo-manager/assets/image.png"
Reads the pending post file and uses Puppeteer to publish it.
node skills/weibo-manager/src/approve_post.js <chat_id> <post_id>
post_1720000000000).Example:
node skills/weibo-manager/src/approve_post.js "oc_123..." "post_1720000000000"
skills/weibo-manager/cookies.json.
skills/weibo-manager/cookies.json.publisher.js splits content by \n and types each line followed by page.keyboard.press('Enter') to ensure proper formatting in the Weibo editor.input[type="file"] upload.skills/weibo-manager/pending_posts/.skills/weibo-manager/
├── SKILL.md
├── cookies.json # Auth
├── pending_posts/ # Queue
│ └── post_123.json
├── src/
│ ├── request_publish.js # Step 1
│ ├── approve_post.js # Step 2
│ └── publisher.js # Core logic
└── assets/ # Images