微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🦋

Bluesky 图文发布与定时推送

Publora Bluesky · v1.1.0
办公 安全 B 级 作者 sergebulaev 公开目录收录
1.2k 下载 0 安装 5.3k 收藏 11 浏览

简介

通过 Publora API 发布或定时 Bluesky 内容,支持图文混排、自动话题标签与链接解析,300字符严格限制。

原始描述

Post or schedule content to Bluesky using the Publora API. Use this skill when the user wants to publish or schedule Bluesky posts via Publora.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/publora-bluesky/
其它 Agent解压到它自己的 skills 目录,目录名用 publora-bluesky

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

publora-bluesky 是基于 Publora 平台的 Bluesky 社交发布技能,允许用户通过 API 直接发布或定时推送内容到 Bluesky 去中心化社交网络。该技能采用 bluesky-did:plc:xxx 格式的平台 ID(非数字 ID),需配合 publora 核心技能完成认证配置。

主要功能

  • 文本发布:严格 300 字符限制,超限即报错
  • 图片支持:单帖最多 4 张图片(JPEG 优先,WebP 自动转码),支持 altTexts 无障碍描述
  • 富文本自动解析:#hashtag 和 https://URL 自动转为 Bluesky AT Protocol 可点击 facets,无需手动计算字节偏移
  • 定时发布:ISO 8601 格式 scheduledTime 字段支持未来时间排期

认证机制

  • 必须使用 Bluesky 生成的 App Password(设置 → App Passwords),严禁使用主密码,符合 Bluesky 安全最佳实践
  • 通过 x-publora-key API 密钥鉴权

典型工作流

  1. 创建图文 post 获取 postGroupId
  2. 每张图片单独调用 get-upload-url(共用一个 postGroupId)
  3. 直传 S3 完成图片绑定

显著优点

  • 协议层封装完善:自动处理 AT Protocol 复杂的字节偏移计算,开发者只需写纯文本
  • 多图发布友好:altTexts 数组按位置映射,兼顾无障碍与内容结构化
  • 安全合规:强制 App Password,避免主密码泄露风险

潜在局限与风险

  • 无视频支持:当前版本仅支持图文,视频发布不可用
  • 严格字符限制:300 字符硬顶,中文、英文、emoji 混合时需注意实际字节占用
  • 多图上传繁琐:每张图需独立获取上传 URL,代码量较单层 API 多
  • 平台绑定:完全依赖 Publora 服务可用性,存在第三方中转延迟或故障风险

适合人群

  • 需要程序化管理 Bluesky 账号的内容创作者、SaaS 团队、社交媒体运营工具开发者
  • 希望避免直接对接 AT Protocol 复杂性的快速集成场景

常规风险

  • 密钥泄露:x-publora-key 与 Bluesky App Password 需妥善保管,建议环境变量注入
  • 定时任务漂移:依赖 Publora 调度系统,极端情况下可能出现秒级延迟
  • WebP 转码质量:自动转 JPEG 可能导致色彩偏移,对品牌色敏感需预检

技能正文


name: publora-bluesky description: > Post or schedule content to Bluesky using the Publora API. Use this skill when the user wants to publish or schedule Bluesky posts via Publora.

Publora — Bluesky

Post and schedule Bluesky content via the Publora API.

Prerequisite: Install the publora core skill for auth setup and getting platform IDs.

Platform ID Format

bluesky-{did} — Bluesky uses DID-based IDs, NOT numeric.

Example: bluesky-did:plc:abc123xyz

Get your exact DID from GET /api/v1/platform-connections.

Authentication

Bluesky requires:

  • Username (handle, e.g. yourname.bsky.social)
  • App password — NOT your main account password

Generate an app password at: Bluesky Settings → App Passwords → Add App Password.

⚠️ Using your main password is a security risk. Always use app passwords for API integrations.

Character Limit

300 characters strict. The API returns an error if exceeded.

Supported Content

Type Supported Notes
Text only ✅ Up to 300 chars
Images ✅ Up to 4 per post; JPEG preferred; WebP auto-converted
Videos ❌ Not currently supported
Hashtags ✅ Auto-detected and become clickable facets
URLs ✅ Auto-detected and become clickable links

Post to Bluesky

import requests

response = requests.post(
    'https://api.publora.com/api/v1/create-post',
    headers={
        'Content-Type': 'application/json',
        'x-publora-key': 'sk_YOUR_KEY'
    },
    json={
        'content': 'Dashboard live! #buildinpublic',
        'platforms': ['bluesky-did:plc:abc123xyz']
    }
)
print(response.json())

Post with Images

Up to 4 images per post. Each image requires its own get-upload-url call with the same postGroupId.

Use altTexts array for image accessibility — maps positionally to uploaded images (first altText → first uploaded image).

import requests

HEADERS = { 'Content-Type': 'application/json', 'x-publora-key': 'sk_YOUR_KEY' }

# Step 1: Create post with altTexts
post = requests.post('https://api.publora.com/api/v1/create-post', headers=HEADERS, json={
    'content': 'Dashboard live! #buildinpublic',
    'platforms': ['bluesky-did:plc:abc123xyz'],
    'altTexts': ['Screenshot of analytics dashboard showing user growth charts']
}).json()
post_group_id = post['postGroupId']

# Step 2: Get upload URL (one call per image)
upload = requests.post('https://api.publora.com/api/v1/get-upload-url', headers=HEADERS, json={
    'fileName': 'dashboard.jpg', 'contentType': 'image/jpeg',
    'type': 'image', 'postGroupId': post_group_id
}).json()

# Step 3: Upload to S3
with open('dashboard.jpg', 'rb') as f:
    requests.put(upload['uploadUrl'], headers={'Content-Type': 'image/jpeg'}, data=f)

Multiple Images with altTexts

json={
    'content': 'New features shipping this week! 🚀 #indiedev',
    'platforms': ['bluesky-did:plc:abc123xyz'],
    'altTexts': [
        'Screenshot of the new dashboard with dark mode enabled',
        'Mobile view of the app showing the updated navigation',
        'Code editor integration screenshot'
    ]
}
# Then upload 3 images with same postGroupId
# altTexts map positionally: index 0 → first uploaded image, etc.

WebP note: WebP images are automatically converted to JPEG by Publora.

Rich Text — Auto-Detection

Publora automatically detects and converts hashtags and URLs into clickable Bluesky facets:

  • #hashtag → becomes a clickable hashtag link
  • https://example.com → becomes a clickable URL

You do not need to do anything special — just include them in your content string. Publora handles the byte-offset calculations required by the Bluesky AT Protocol internally.

Schedule a Post

json={
    'content': 'Shipping on Friday! Stay tuned 👀 #buildinpublic',
    'platforms': ['bluesky-did:plc:abc123xyz'],
    'scheduledTime': '2026-03-16T10:00:00.000Z'
}

Tips for Bluesky

  • DID format — platform ID is bluesky-did:plc:xyz, not a number
  • App password required — never use main account password
  • 300 char limit — tight, be concise
  • Hashtags auto-link — Publora handles AT Protocol facets automatically
  • altTexts — always provide for accessibility; maps by position to uploaded images
  • Up to 4 images — each needs a separate get-upload-url call, all with same postGroupId

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

blueskysocial-mediaat-protocolcontent-publishingapi-integrationautomation

同类 Skill