Weibo Publish

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

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 25 · 1 current installs · 1 all-time installs
bynoah@noah-1106
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description (publish text/image posts to Weibo via browser automation) align with the SKILL.md: all runtime steps are browser actions, upload of images, verification on the profile page, and cleanup. No unrelated services, env vars, or binaries are requested.
Instruction Scope
Instructions are focused on browser automation and include shell actions for preparing and removing image files and screenshots. They explicitly require images to be placed in /tmp/openclaw/uploads/ and recommend deleting them and old screenshots in ~/.openclaw/media/browser/. These file-IO steps are proportionate to uploading images but do give the skill the ability to delete files under those paths if executed.
Install Mechanism
Instruction-only skill with no install spec and no code files. This minimizes install-time risk (nothing downloaded or written by an installer).
Credentials
The skill requests no declared environment variables or credentials. However it implicitly depends on a running browser with an active Weibo login session (i.e., it will act using browser cookies/session). That is expected for this purpose but is effectively the credential granting posting ability — users should be aware the skill will operate using whatever logged-in account the browser provides.
Persistence & Privilege
always:false and default autonomous invocation are used. The skill does not request persistent installation or modify other skills or system-wide config. Autonomous invocation is normal for skills but not combined here with other concerning privileges.
Assessment
This skill appears to do what it claims, but be careful before using it with your primary account: it will act using whatever browser session (cookies) is active, so it can post as that user. Only place images you intend to upload in /tmp/openclaw/uploads/, and be aware the instructions include rm commands that will delete files in that directory and recommend deleting screenshots in ~/.openclaw/media/browser/. If you are uncertain, test with a throwaway Weibo account and review the exact browser session being used. If you don't want automatic posting, avoid giving the agent autonomous permission to run this skill without manual confirmation.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk976g6yfyqspashsxd4z5sdmdh837n7n

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

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/compose

2. 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 appears

Verification: 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:

  1. Wait 5 seconds for backend processing
  2. Navigate to personal page:
    browser open https://m.weibo.cn
    browser act kind=click ref=<profile-avatar-ref>  // Top-left avatar
    
  3. Check latest post matches what was just published
  4. 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 -delete

Note: 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=e25 or ref=e29 ( icon)

Note: Refs are dynamic - always get fresh snapshot before interacting.

Error Handling

IssueSolution
Image upload shows "图片选择失败"File not in /tmp/openclaw/uploads/. Move file to correct location.
Send button not respondingCheck if textbox is empty. Weibo requires at least text or image.
Post not appearing after 5sWait 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.

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…