bluesky

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Bluesky Skill

Bluesky Skill

Overview

概述

Automates Bluesky Social operations including creating posts, reposting, managing follows, and engaging with the decentralized social network through browser automation.
自动化Bluesky Social的各项操作,包括创建帖子、转发、关注管理,以及通过浏览器自动化与这个去中心化社交网络进行互动。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/bluesky/install.sh | bash
Or manually:
bash
cp -r skills/bluesky ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/bluesky/install.sh | bash
或手动安装:
bash
cp -r skills/bluesky ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,请确保已安装canifi-env:

canifi-env set BLUESKY_HANDLE "your-handle.bsky.social" canifi-env set BLUESKY_PASSWORD "your-app-password"
undefined
canifi-env set BLUESKY_HANDLE "your-handle.bsky.social" canifi-env set BLUESKY_PASSWORD "your-app-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭据,由您掌控。 Canifi LifeOS尊重您的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用您的已认证会话,全程不会获取您的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅可在您的本地设备访问,绝不会被传输。

Capabilities

功能特性

  • Create and publish posts
  • Repost and quote posts
  • Like content
  • Follow/unfollow accounts
  • Search users and content
  • Manage custom feeds
  • View notifications
  • Handle threads
  • 创建并发布帖子
  • 转发与引用帖子
  • 点赞内容
  • 关注/取消关注账号
  • 搜索用户与内容
  • 管理自定义订阅源
  • 查看通知
  • 处理帖子线程

Usage Examples

使用示例

Example 1: Create a Post

示例1:创建帖子

User: "Post on Bluesky about decentralized social media"
Claude: I'll create that Bluesky post.
- Navigate to bsky.app
- Click compose
- Write post about decentralization
- Add image if provided
- Publish post
用户:"在Bluesky上发布关于去中心化社交媒体的内容"
Claude:我来创建这篇Bluesky帖子。
- 导航至bsky.app
- 点击撰写按钮
- 撰写关于去中心化的帖子内容
- 如有提供则添加图片
- 发布帖子

Example 2: Quote Post

示例2:引用帖子

User: "Quote that post with my perspective"
Claude: I'll create a quote post.
- Find original post
- Click quote option
- Add your commentary
- Publish quote post
用户:"引用那篇帖子并附上我的观点"
Claude:我来创建引用帖子。
- 找到原帖子
- 点击引用选项
- 添加您的评论
- 发布引用帖子

Example 3: Explore Custom Feeds

示例3:浏览自定义订阅源

User: "Show me what's on the 'Science' custom feed"
Claude: I'll check that feed.
- Navigate to Feeds section
- Find Science feed
- Browse posts
- Summarize interesting content
用户:"看看'科学'自定义订阅源上有什么内容"
Claude:我来查看这个订阅源。
- 导航至订阅源板块
- 找到科学订阅源
- 浏览帖子
- 总结有趣的内容

Example 4: Search Content

示例4:搜索内容

User: "Find posts about AI safety on Bluesky"
Claude: I'll search for that topic.
- Use search function
- Search "AI safety"
- Browse results
- Present relevant posts
用户:"在Bluesky上查找关于AI安全的帖子"
Claude:我来搜索这个主题。
- 使用搜索功能
- 搜索“AI safety”
- 浏览结果
- 展示相关帖子

Authentication Flow

认证流程

  1. Navigate to bsky.app via Playwright MCP
  2. Enter handle and app password from canifi-env
  3. Verify home feed access
  4. Maintain session cookies
  1. 通过Playwright MCP导航至bsky.app
  2. 从canifi-env中获取用户名和应用密码并输入
  3. 验证主页订阅源访问权限
  4. 保存会话Cookie

Error Handling

错误处理

  • Login Failed: Verify handle and app password
  • Session Expired: Re-authenticate automatically
  • App Password Invalid: Notify user to generate new one
  • Rate Limited: Implement backoff
  • Post Failed: Check character limit (300)
  • User Not Found: Verify handle format
  • Feed Not Found: Search available feeds
  • Image Upload Failed: Check format and size
  • 登录失败:验证用户名和应用密码
  • 会话过期:自动重新认证
  • 应用密码无效:通知用户生成新密码
  • 请求受限:实现退避机制
  • 发布失败:检查字符限制(300字)
  • 用户未找到:验证用户名格式
  • 订阅源未找到:搜索可用订阅源
  • 图片上传失败:检查格式和大小

Self-Improvement Instructions

自我优化说明

When encountering new Bluesky features:
  1. Document new UI elements
  2. Add support for new post types
  3. Log successful patterns
  4. Update for AT Protocol changes
当遇到Bluesky新功能时:
  1. 记录新的UI元素
  2. 添加对新帖子类型的支持
  3. 记录成功的操作模式
  4. 根据AT Protocol的更新进行适配

Notes

注意事项

  • Uses AT Protocol (decentralized)
  • App passwords recommended over main password
  • Custom feeds are algorithmic views
  • Character limit is 300
  • Threading supported
  • Image alt text encouraged
  • No DMs currently
  • Moderation via labelers
  • 基于AT Protocol(去中心化协议)构建
  • 推荐使用应用密码而非主密码
  • 自定义订阅源是算法化的内容视图
  • 帖子字符限制为300字
  • 支持帖子线程
  • 建议添加图片替代文本
  • 目前不支持私信功能
  • 由标签服务商提供内容审核