united-airlines
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUnited Airlines Skill
美国联合航空Skill
Overview
概述
Enables Claude to search and book United flights, manage reservations, track MileagePlus miles, check flight status, and access United's travel services through browser automation.
通过浏览器自动化功能,让Claude能够搜索并预订美国联合航空的航班、管理预订、追踪MileagePlus里程、查看航班状态,以及使用美国联合航空的各项旅行服务。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/united-airlines/install.sh | bashOr manually:
bash
cp -r skills/united-airlines ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/united-airlines/install.sh | bash或者手动安装:
bash
cp -r skills/united-airlines ~/.canifi/skills/Setup
设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set UNITED_EMAIL "your-email@example.com"
canifi-env set UNITED_MILEAGEPLUS "your-mileageplus-number"
undefinedcanifi-env set UNITED_EMAIL "your-email@example.com"
canifi-env set UNITED_MILEAGEPLUS "your-mileageplus-number"
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
功能
- Search and book United flights and partner airlines
- Manage existing reservations and seat assignments
- Check MileagePlus account balance and status
- Track real-time flight status and delays
- Access boarding passes and travel documents
- Upgrade seats using miles or Plus Points
- 搜索并预订美国联合航空及合作航空公司的航班
- 管理现有预订及座位分配
- 查看MileagePlus账户余额与会员状态
- 追踪实时航班状态与延误信息
- 获取登机牌及旅行文件
- 使用里程或Plus Points升级座位
Usage Examples
使用示例
Example 1: Book a Flight
示例1:预订航班
User: "Find United flights from Chicago to Denver next Friday"
Claude: I'll search United for those flights.
- Opens united.com via Playwright MCP
- Enters ORD to DEN, next Friday
- Filters by nonstop preference
- Shows options:
- UA 1234 6:00am: $189, Economy
- UA 5678 10:30am: $215, Economy
- UA 9012 3:15pm: $198, Economy Plus available +$79
- Notes MileagePlus earning: 1,400 miles用户:“帮我查找下周五从芝加哥飞往丹佛的美国联合航空航班”
Claude:我将为你搜索美国联合航空的相关航班。
- 通过Playwright MCP打开united.com
- 输入出发地ORD、目的地DEN,日期为下周五
- 筛选直达航班偏好
- 展示选项:
- UA 1234 上午6:00:189美元,经济舱
- UA 5678 上午10:30:215美元,经济舱
- UA 9012 下午3:15:198美元,可选经济增强舱(额外79美元)
- 备注MileagePlus里程累积:1400英里Example 2: Check MileagePlus Status
示例2:查看MileagePlus状态
User: "How many United miles do I have?"
Claude: I'll check your MileagePlus account.
- Logs into United account
- Navigates to MileagePlus dashboard
- Returns: 87,432 miles available
- Premier status: Gold (42,500 PQP earned this year)
- Plus Points: 280 available
- Miles expiring: None in next 18 months用户:“我有多少美国联合航空里程?”
Claude:我将为你查看MileagePlus账户。
- 登录美国联合航空账户
- 导航至MileagePlus仪表盘
- 返回结果:可用里程87,432英里
- 精英会员状态:金卡(本年度已累积42,500 PQP)
- Plus Points:280点可用
- 里程过期情况:未来18个月内无过期里程Example 3: Manage Reservation
示例3:管理预订
User: "Can I select a window seat for my Denver flight?"
Claude: I'll update your seat assignment.
- Navigates to My Trips
- Locates Denver reservation
- Opens seat map
- Shows available window seats: 12A, 18A, 23F
- Selects 12A (preferred forward location)
- Confirms seat change: Now assigned to 12A用户:“我能为我的丹佛航班选一个靠窗座位吗?”
Claude:我将为你更新座位分配。
- 导航至“我的行程”页面
- 找到丹佛航班的预订记录
- 打开座位图
- 展示可用靠窗座位:12A、18A、23F
- 选择12A(优选前排位置)
- 确认座位变更:已成功分配至12AAuthentication Flow
认证流程
- Navigate to united.com via Playwright MCP
- Click "Sign in" and enter MileagePlus number or email
- Enter password from secure storage
- Handle 2FA via email or SMS
- Verify Premier status loaded
- Maintain session for booking operations
- 通过Playwright MCP导航至united.com
- 点击“登录”并输入MileagePlus会员号或邮箱
- 从安全存储中提取密码并输入
- 通过邮件或短信处理双因素认证(2FA)
- 验证精英会员状态是否加载完成
- 维持会话以进行预订操作
Error Handling
错误处理
- Login Failed: Retry with email, try password reset
- Flight Sold Out: Show alternative times, waitlist options
- Seat Unavailable: Suggest alternative seats, check upgrade
- Session Expired: Re-authenticate with stored credentials
- Rate Limited: Wait 60 seconds, retry
- 2FA Required: Retrieve code from email/SMS
- 登录失败:使用邮箱重试,尝试重置密码
- 航班售罄:展示替代时段、候补选项
- 座位不可用:推荐替代座位,查看升级选项
- 会话过期:使用存储的凭据重新认证
- 速率限制:等待60秒后重试
- 需要双因素认证:从邮件/短信中获取验证码
Self-Improvement Instructions
自我改进说明
After each interaction:
- Track award availability patterns
- Note upgrade clearing times
- Log Premier benefit usage
- Document UI changes
Suggest updates when:
- United updates booking interface
- MileagePlus program changes
- New fare classes introduced
- App features added
每次交互后:
- 追踪奖励机票的可用模式
- 记录升舱成功时间
- 记录精英会员权益使用情况
- 记录UI变更
在以下情况时建议更新:
- 美国联合航空更新预订界面
- MileagePlus会员计划变更
- 引入新的票价等级
- 添加新的应用功能
Notes
注意事项
- Premier members get free seat selection
- Basic Economy has significant restrictions
- Award flights can be booked with miles
- Plus Points upgrade chances vary by route
- United Club access available for Premier 1K
- Polaris business class on international routes
- 精英会员可免费选座
- 基础经济舱有诸多限制
- 可使用里程预订奖励机票
- Plus Points升舱成功率因航线而异
- Premier 1K会员可使用United Club休息室
- 国际航线提供Polaris商务舱