fly-io
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFly.io Skill
Fly.io Skill
Overview
概述
Enables Claude to access the Fly.io dashboard to view and manage globally distributed applications, check machine status, monitor metrics, and view billing across Fly.io infrastructure.
让Claude能够访问Fly.io控制台,查看和管理全球分布式应用、检查机器状态、监控指标,并查看Fly.io基础设施的账单情况。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/fly-io/install.sh | bashOr manually:
bash
cp -r skills/fly-io ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/fly-io/install.sh | bash或者手动安装:
bash
cp -r skills/fly-io ~/.canifi/skills/Setup
配置步骤
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
First, ensure canifi-env is installed:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set FLY_EMAIL "your-email@example.com"
undefinedcanifi-env set FLY_EMAIL "your-email@example.com"
undefinedPrivacy & 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:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录服务
- 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
功能特性
- View app deployments
- Check machine status
- Monitor app metrics
- View volumes and storage
- Check certificates and domains
- View billing and usage
- 查看应用部署情况
- 检查机器状态
- 监控应用指标
- 查看卷与存储
- 检查证书与域名
- 查看账单与使用情况
Usage Examples
使用示例
Example 1: Check Apps
示例1:查看应用
User: "How are my Fly.io apps?"
Claude: I'll check your Fly.io dashboard.
- Opens fly.io/dashboard via Playwright MCP
- Logs into account
- Apps:
- my-api: 3 machines, Running (iad, lhr, sin)
- my-frontend: 2 machines, Running (iad, lhr)
- redis-cache: 1 machine, Running (iad)
- All apps healthy
- Global latency: <50ms avg用户: "我的Fly.io应用状态如何?"
Claude: 我将查看你的Fly.io控制台。
- 通过Playwright MCP打开fly.io/dashboard
- 登录账户
- 应用列表:
- my-api: 3台机器,运行中(iad, lhr, sin)
- my-frontend: 2台机器,运行中(iad, lhr)
- redis-cache: 1台机器,运行中(iad)
- 所有应用状态健康
- 全局延迟: 平均<50msExample 2: Check Machines
示例2:检查机器状态
User: "What's the status of my Fly machines?"
Claude: I'll check machine status.
- Views Machines section
- my-api machines:
- iad-1: shared-cpu-1x, 256MB, Running
- lhr-1: shared-cpu-1x, 256MB, Running
- sin-1: shared-cpu-1x, 256MB, Running
- CPU: 12% avg across regions
- Memory: 180MB / 256MB avg
- All health checks passing用户: "我的Fly机器状态如何?"
Claude: 我将检查机器状态。
- 查看机器板块
- my-api机器:
- iad-1: shared-cpu-1x, 256MB, 运行中
- lhr-1: shared-cpu-1x, 256MB, 运行中
- sin-1: shared-cpu-1x, 256MB, 运行中
- CPU: 各区域平均使用率12%
- 内存: 平均使用180MB / 256MB
- 所有健康检查均通过Example 3: View Billing
示例3:查看账单
User: "What's my Fly.io bill?"
Claude: I'll check your usage.
- Views Billing section
- Current month: $23.45
- Breakdown:
- Machines (compute): $18.00
- Volumes (storage): $3.00
- Bandwidth: $2.45
- Free tier credits applied
- Estimated monthly: $28用户: "我的Fly.io账单是多少?"
Claude: 我将查看你的使用情况。
- 查看账单板块
- 当前月份: $23.45
- 明细:
- 机器(计算): $18.00
- 卷(存储): $3.00
- 带宽: $2.45
- 已应用免费额度抵扣
- 预计月度账单: $28Authentication Flow
认证流程
- Navigate to fly.io/dashboard via Playwright MCP
- Enter email address
- Enter password
- Handle 2FA if enabled
- Maintain session for dashboard access
- 通过Playwright MCP导航至fly.io/dashboard
- 输入邮箱地址
- 输入密码
- 若启用则处理双因素认证(2FA)
- 维持会话以访问控制台
Error Handling
错误处理
- Login Failed: Retry credentials
- 2FA Required: Complete verification
- App Issue: Check logs
- Session Expired: Re-authenticate
- Machine Down: Check region status
- Deploy Failed: Check build logs
- 登录失败: 重试凭证
- 需要2FA: 完成验证
- 应用问题: 检查日志
- 会话过期: 重新认证
- 机器宕机: 检查区域状态
- 部署失败: 检查构建日志
Self-Improvement Instructions
自我优化说明
After each interaction:
- Track app patterns
- Note regional performance
- Log billing trends
- Document UI changes
Suggest updates when:
- Fly.io updates dashboard
- New features added
- Pricing changes
- Regions expand
每次交互后:
- 追踪应用模式
- 记录区域性能
- 记录账单趋势
- 文档化UI变更
在以下情况时建议更新:
- Fly.io更新控制台
- 添加新功能
- 定价变更
- 区域扩张
Notes
注意事项
- Edge computing platform
- Global by default
- Docker-based deploys
- Persistent volumes
- Built-in load balancing
- WireGuard networking
- Great for latency-sensitive apps
- 边缘计算平台
- 默认支持全球部署
- 基于Docker的部署
- 持久化卷
- 内置负载均衡
- WireGuard网络
- 非常适合对延迟敏感的应用