SuperAPI AI 工具集

posting-to-atproto

通用与其它

查看项目

更新于 10-15 23:43

技能介绍

用途:这是面向 ATProtocol/Bluesky 的发布指南,用于创建短帖、线程、回复以及长文博客条目。

主要能力:短帖受 300 字素限制,@提及与 URL 需要 facet(使用字节偏移而非字符偏移)。工具 tools/thread.py 会自动检测 @提及与 URL 的 facet。

使用方式:单帖执行 uv run python tools/thread.py "Post text here";线程执行 uv run python tools/thread.py "Post 1" "Post 2" "Post 3";回复线程使用 --reply-to at://did:.../app.bsky.feed.post/... 参数;也可用 --file draft.txt,草稿中帖子以 '---' 分隔。

长文:超过 300 字素时使用 GreenGale 博客,内容以 app.greengale.document 记录存储在 PDS,可在 https://greengale.app/<handle>/<rkey> 查看。发布命令为 uv run python .skills/posting-to-atproto/scripts/publish-greengale.py --title "Post Title" --rkey "url-slug" --file content.md,可选参数包括 --subtitle、--theme(github-dark、github-light、dracula、nord、solarized-light、solarized-dark、monokai)、--visibility(public、url 即不列出、author 即私有)。相同 --rkey 会覆盖已有帖子(使用 putRecord),markdown 上限 100,000 字符。

限制与常见错误:超过 300 字素需拆分为线程或改用 GreenGale;提及未成链接通常是 facet 字节偏移不正确;线程帖子未连接需检查 root 与 parent 引用。