uber
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUber Skill
Uber Skill
Overview
概述
Enables Claude to interact with Uber's ride-sharing platform to request rides, view trip history, check fare estimates, and manage account settings through browser automation.
让Claude能够通过浏览器自动化与Uber的拼车平台交互,实现叫车、查看行程历史、获取费用预估以及管理账户设置等功能。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/uber/install.sh | bashOr manually:
bash
cp -r skills/uber ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/uber/install.sh | bash或手动安装:
bash
cp -r skills/uber ~/.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 UBER_EMAIL "your-email@example.com"
canifi-env set UBER_PHONE "+1234567890"
undefinedcanifi-env set UBER_EMAIL "your-email@example.com"
canifi-env set UBER_PHONE "+1234567890"
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
功能特性
- Request rides with pickup/dropoff locations and ride type preferences
- Get fare estimates before booking
- View and export trip history with receipts
- Track driver location and ETA in real-time
- Manage saved places (home, work, favorites)
- Check Uber Cash balance and promotions
- 根据上下车地点和车型偏好叫车
- 预订前获取费用预估
- 查看并导出带收据的行程历史
- 实时追踪司机位置和预计到达时间
- 管理常用地点(家、公司、收藏地点)
- 查看Uber Cash余额和优惠活动
Usage Examples
使用示例
Example 1: Request a Ride
示例1:叫车
User: "Get me an Uber from my current location to SFO airport"
Claude: I'll request an Uber to SFO for you.
- Opens Uber via Playwright MCP
- Enters destination as SFO International Airport
- Shows available ride options with prices
- Confirms UberX at $45.50, arriving in 4 minutes
- Requests the ride and provides driver details用户:“帮我叫一辆从当前位置到旧金山国际机场的Uber”
Claude:我这就为你叫一辆去旧金山国际机场的Uber。
- 通过Playwright MCP打开Uber
- 输入目的地为旧金山国际机场
- 显示可用车型及对应价格
- 确认UberX车型,费用45.50美元,预计4分钟后到达
- 完成叫车并提供司机详情Example 2: Check Trip History
示例2:查询行程历史
User: "How much did I spend on Uber last month?"
Claude: I'll check your Uber trip history.
- Navigates to trip history section
- Filters trips from last month
- Calculates total: 12 trips totaling $287.45
- Offers to export receipts or add to LifeOS Finance tracking用户:“我上个月在Uber上花了多少钱?”
Claude:我这就帮你查询Uber行程历史。
- 导航至行程历史页面
- 筛选出上个月的行程
- 计算总费用:12次行程共计287.45美元
- 提供导出收据或添加至LifeOS财务追踪的选项Example 3: Get Fare Estimate
示例3:获取费用预估
User: "What would an Uber from downtown to the airport cost tomorrow at 6am?"
Claude: I'll get a fare estimate for that route and time.
- Uses Uber's fare estimator
- Shows UberX: $42-55, Comfort: $58-72, Black: $85-105
- Notes surge pricing unlikely at 6am
- Offers to schedule the ride in advance用户:“明天早上6点从市中心到机场的Uber费用是多少?”
Claude:我这就为你查询该路线和时间的费用预估。
- 使用Uber的费用估算工具
- 显示UberX:42-55美元,Comfort:58-72美元,Black:85-105美元
- 备注:早上6点不太可能出现动态加价
- 提供提前预约叫车的选项Authentication Flow
认证流程
- Navigate to uber.com via Playwright MCP
- Click "Log in" and enter phone number from canifi-env
- Handle SMS verification code (check iMessage via osascript)
- Complete 2FA if prompted
- Maintain session cookies for subsequent requests
- 通过Playwright MCP导航至uber.com
- 点击“登录”并输入canifi-env中存储的电话号码
- 处理短信验证码(通过osascript查看iMessage)
- 如遇提示,完成二次认证
- 保存会话Cookie以用于后续请求
Error Handling
错误处理
- Login Failed: Retry with alternate credentials, send iMessage notification
- No Drivers Available: Check again in 2 minutes, suggest alternative ride types
- Payment Failed: Alert user to update payment method manually
- Session Expired: Re-authenticate automatically
- Rate Limited: Wait 60 seconds, retry with exponential backoff
- 2FA Required: Extract code from iMessage, auto-enter
- 登录失败:使用备用凭据重试,发送iMessage通知
- 无可用司机:2分钟后重试,建议选择其他车型
- 支付失败:提醒用户手动更新支付方式
- 会话过期:自动重新认证
- 请求受限:等待60秒后重试,采用指数退避策略
- 需要二次认证:从iMessage提取验证码并自动输入
Self-Improvement Instructions
自我优化说明
After each interaction, document:
- New UI element selectors if Uber updates their interface
- Successful authentication patterns
- Common user request patterns to optimize responses
- Fare estimation accuracy vs actual charges
Suggest SKILL.md updates when:
- Uber adds new ride types or features
- Authentication flow changes
- API endpoints or selectors need updating
每次交互后,记录以下内容:
- 若Uber更新界面,记录新的UI元素选择器
- 成功的认证模式
- 常见用户请求模式,以优化响应
- 费用预估与实际收费的准确性对比
当出现以下情况时,建议更新SKILL.md:
- Uber新增车型或功能
- 认证流程变更
- API端点或选择器需要更新
Notes
注意事项
- Uber requires phone verification for security
- Scheduled rides can be booked up to 30 days in advance
- Business profiles may have different payment flows
- Some regions have different ride type availability
- Never store payment card details - redirect user to add manually
- Uber出于安全要求需进行电话验证
- 提前叫车可最多预约30天内的行程
- 商务账户可能有不同的支付流程
- 部分地区的可用车型有所不同
- 切勿存储支付卡详情 - 引导用户手动添加