Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Morningstar202604/awesome-skillkit --skill weibo-publishergit clone --depth 1 https://github.com/Morningstar202604/awesome-skillkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/weibo-publisher)<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/weibo-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/weibo-publisher/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/weibo-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/weibo-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00889 |
| Opus 5 | $0.00010 | $0.00445 |
| Sonnet 5 | $0.00004 | $0.00178 |
| Haiku 4.5 | $0.00002 | $0.00089 |
Grade A, and why
weibo-publisher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
微博 Publisher
微博发布/管理自动化客户端,支持两种模式:
- 官方开放平台 API —— 需申请 AppKey,适合生产系统集成
- Web 内部 API —— 仅需 Cookie,适合个人账号自动化
功能
post-official—— 官方 API 发布微博(文本 + 图片)post-web—— Web 内部 API 发布微博(仅需 Cookie)repost—— 转发微博comment—— 评论微博delete—— 删除微博upload-image—— 上传图片(返回 pic_id)
安全设计
- 默认 dry-run:所有写操作默认只打印请求计划,不联网;加
--execute才真正发送。 - 凭据隔离:
- 官方 API:
WEIBO_APPKEY、WEIBO_APPSECRET、WEIBO_ACCESS_TOKEN环境变量 - Web API:
WEIBO_COOKIE环境变量或--cookie-file
- 官方 API:
- 端点声明:所有端点在常量中集中维护。
使用示例
# 官方 API 模式
export WEIBO_ACCESS_TOKEN="your_token"
python weibo_publisher.py post-official --execute \
--text "Hello 微博!#话题#" \
--pic-ids "pic_id1,pic_id2"
# Web Cookie 模式(个人账号自动化)
export WEIBO_COOKIE="SUB=xxx; SSOLoginState=xxx; ..."
python weibo_publisher.py post-web --execute \
--text "Hello 微博!#话题#"
认证
官方 API:
WEIBO_ACCESS_TOKEN— 直接使用 access_token- 或
WEIBO_APPKEY+WEIBO_APPSECRET— 需自行实现 OAuth2 刷新
Web 内部 API:
WEIBO_COOKIE— 包含SUB、SSOLoginState等字段的完整 Cookie- 或
--cookie-file指定文件路径
export WEIBO_COOKIE="SUB=xxx; SSOLoginState=xxx; ..."
# 或
python weibo_publisher.py post-web --cookie-file ~/.weibo_cookie ...
端点核对(Web 模式首次使用必做)
Web 内部 API 无官方文档,端点可能随时变更。首次使用前请在浏览器 DevTools 核对。
当前端点(需核对):
- 官方发布:
POST https://api.weibo.com/2/statuses/update.json - 官方上传:
POST https://api.weibo.com/2/statuses/upload.json - Web 发布:
POST https://weibo.com/ajax/statuses/build - Web 上传:
POST https://weibo.com/ajax/statuses/upload
退出码
0成功1API 错误或参数错误
依赖
- Python 3.8+
- 标准库
publish_common(打包后与技能目录平级的_common/publish_common.py;仓库内位于skills/writing/_common/)
相关技能
xiaohongshu-publisher— 小红书发布csdn-publisher— CSDN 发布juejin-publisher— 掘金发布cross-post-orchestrator— 多平台编排
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 95 lines · 20 tokens per session scan A 230ca1584f84
weibo-publisher is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 889 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
js-reverse-automation
A workflow for examining JavaScript in a real browser to find where login data, API requests, form fields, or responses are encrypted or signed. It then produces code and connection documentation for using that logic elsewhere.
yao-chatgpt-crawler
Use when a user provides ChatGPT web AI-search keywords, repeat count, target entity, entity type, OpenCLI profile, and crawl interval preference, then needs repeated crawls aggregated into JSON plus a Kami HTML GEO report. Not for generic crawling, ChatGPT API chat, SEO writing, or one-off answers.
yao-doubao-crawler
Use when a user needs repeated Doubao AI-search collection from web or Android Appium into compatible JSON plus Markdown/Excel/HTML GEO reports. Requires keywords/questions and repeat count; target entity/type are required only for target-vs-competitor diagnosis. Not for generic scraping, Doubao API chat, hidden API…
browser-harness-authoring
Use when mapping a repeatable website workflow into a verified Hermes skill so later runs can follow known steps instead of rediscovering the site. Surveys browser compatibility, semantic targets, failure modes, recovery paths, decision gates, and expiry using dummy data and no irreversible submissions.
reddit-browse-and-post
Let an agent read Reddit by default, and publish only after the user explicitly opts in and approves the exact post. Everything here is account-agnostic: the user supplies credentials through environment variables or a browser login, never through chat.
twitter-agent
Build and run a Twitter/X agent with a distinct personality and automated workflows.