weibo-publisher
Skill32 starsChanged 7 days agoMITView on GitHub
Publish text and image posts to Weibo (m.weibo.cn) using browser automation. Use when the user needs to post content to Weibo programmatically, including text-only posts, image posts, or automated publishing workflows. Requires existing login session via browser cookies.
In this repository20 other files it gives its agents.
- baidu-hot-cnSkill
- coze_workflowSkill
- douyin-hot-trendSkill
- ec_creatorSkill
- geopulseSkill
- glm-asrSkill
- glm-visionSkill
- image_gen_cozeSkill
- longtask_systemSkill
- minimax-avSkill
- rss_fetcherSkill
- scribeSkill
- skills-hubSkill
- style-fingerprintSkill
- toutiao-news-trendsSkill
- web-region-captureSkill
- weibo-hot-searchSkill
- weixin-connectorSkill
- xhs-dlSkill
- zhihu-fetcherSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
Verification: Wait 2-3 seconds, then screenshot to confirm image preview is visible on page.
- Distinctive: line 67
Wait 5 seconds for backend processing
- Distinctive: line 73
Check latest post matches what was just published
- Distinctive: line 81
After successful publication, clean up temporary files:
- Distinctive: line 112
Always verify post exists on personal page before considering task complete
- Distinctive: line 113
Always close compose tab after successful verification
- Distinctive: line 114
If uncertain whether post succeeded, check personal page before retrying
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Weibo Publisher
Publish content to Weibo through browser automation on m.weibo.cn (mobile web version).
Prerequisites
- Browser must be running with valid Weibo login session
- Images must be placed in
/tmp/openclaw/uploads/before upload - Requires manual verification after posting (compose page doesn't auto-redirect)
Publishing Workflow
1. Open Compose Page
browser open https://m.weibo.cn/compose2. Input Text Content
Get snapshot to find textbox ref, then type content:
// Example: Post text
browser act kind=type ref=<textbox-ref> text="Your post content here"3. Upload Images (Optional)
Important: Images must be in /tmp/openclaw/uploads/ directory.
# Prepare image (example)
cp /path/to/image.png /tmp/openclaw/uploads/Upload using the upload button ref (not the hidden file input):
// Upload image - use the upload button ref
browser upload inputRef=<upload-button-ref> paths=["/tmp/openclaw/uploads/image.png"]
// Wait 2-3 seconds for upload to complete
// Take screenshot to verify preview appearsVerification: Wait 2-3 seconds, then screenshot to confirm image preview is visible on page.
4. Publish Post
Click the send button:
browser act kind=click ref=<send-button-ref>5. Verify Publication (Critical)
Do NOT rely on page redirect - compose page stays open.
Verification steps:
- Wait 5 seconds for backend processing
- Navigate to personal page:
browser open https://m.weibo.cn browser act kind=click ref=<profile-avatar-ref> // Top-left avatar - Check latest post matches what was just published
- Close compose page to prevent accidental repost:
browser action=close targetId=<compose-tab-id>
6. Cleanup (Required)
After successful publication, clean up temporary files:
# Remove uploaded image from temp directory
rm /tmp/openclaw/uploads/<filename>
# Optional: Clean up browser screenshots older than 7 days
find ~/.openclaw/media/browser/ -type f -mtime +7 -deleteNote: Temporary files are NOT automatically cleaned up. Cleanup is required - always run it after publishing.
Page Element References
Common refs on m.weibo.cn/compose:
- Text input:
ref=e15(textbox "分享新鲜事…") - Send button:
ref=e10("发送") - Image upload button:
ref=e25orref=e29( icon)
Note: Refs are dynamic - always get fresh snapshot before interacting.
Error Handling
| Issue | Solution |
| Image upload shows "图片选择失败" | File not in /tmp/openclaw/uploads/. Move file to correct location. |
| Send button not responding | Check if textbox is empty. Weibo requires at least text or image. |
| Post not appearing after 5s | Wait longer (network delay) or check login status. |
Anti-Duplication Measures
- Always verify post exists on personal page before considering task complete
- Always close compose tab after successful verification
- If uncertain whether post succeeded, check personal page before retrying
References
See references/workflow-examples.md for complete code examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

