amtrak
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmtrak Skill
Amtrak Skill
Overview
概述
Enables Claude to search and book Amtrak train tickets, check schedules and status, manage reservations, and access Amtrak Guest Rewards benefits across the national rail network.
让Claude能够搜索并预订Amtrak火车票、查询时刻表及列车状态、管理现有预订,以及在全美铁路网络中使用Amtrak Guest Rewards会员福利。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/amtrak/install.sh | bashOr manually:
bash
cp -r skills/amtrak ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/amtrak/install.sh | bash或者手动安装:
bash
cp -r skills/amtrak ~/.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 AMTRAK_EMAIL "your-email@example.com"
canifi-env set AMTRAK_GUEST_REWARDS "your-guest-rewards-number"
undefinedcanifi-env set AMTRAK_EMAIL "your-email@example.com"
canifi-env set AMTRAK_GUEST_REWARDS "your-guest-rewards-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 train routes and schedules
- Book tickets in various service classes
- Manage existing reservations
- Check real-time train status and delays
- Access Amtrak Guest Rewards benefits
- Book sleeper accommodations for long routes
- 搜索列车路线及时刻表
- 预订不同服务等级的车票
- 管理现有预订
- 查询实时列车状态及延误信息
- 使用Amtrak Guest Rewards会员福利
- 预订长途路线的卧铺车厢
Usage Examples
使用示例
Example 1: Book Train Tickets
示例1:预订火车票
User: "Find Amtrak from NYC to Washington DC tomorrow morning"
Claude: I'll search Amtrak for Northeast Corridor trains.
- Opens amtrak.com via Playwright MCP
- Enters NYP to WAS, tomorrow
- Shows morning departures:
- Acela 2151 6:00am: $89 Business, $189 First
- Regional 171 6:30am: $49 Coach, $99 Business
- Acela 2153 7:00am: $99 Business, $199 First
- Notes: Acela is fastest (2h 45m vs 3h 30m)用户:"查找明天早上从纽约到华盛顿特区的Amtrak列车"
Claude:我将为您搜索东北走廊的Amtrak列车。
- 通过Playwright MCP打开amtrak.com
- 输入出发地纽约(NYP)、目的地华盛顿(WAS)及明天的日期
- 显示上午出发的列车:
- Acela 2151 6:00am:$89 Business, $189 First
- Regional 171 6:30am:$49 Coach, $99 Business
- Acela 2153 7:00am:$99 Business, $199 First
- 备注:Acela是最快的(2h 45m vs 3h 30m)Example 2: Check Train Status
示例2:查询列车状态
User: "Is my train to Chicago on time?"
Claude: I'll check your train status.
- Finds reservation for Capitol Limited
- Checks real-time status:
- Train #29 currently 45 minutes late
- Current location: Pittsburgh
- Revised arrival: 9:45am instead of 9:00am
- Notes: Delays common on this route用户:"我去芝加哥的列车准点吗?"
Claude:我将为您查询列车状态。
- 找到您的Capitol Limited列车预订
- 查询实时状态:
- Train #29 currently 45 minutes late
- Current location: Pittsburgh
- Revised arrival: 9:45am instead of 9:00am
- 备注:该路线延误情况较为常见Example 3: Book Sleeper Room
示例3:预订卧铺车厢
User: "Book a roomette on the California Zephyr from Chicago to San Francisco"
Claude: I'll search sleeper accommodations.
- Searches CHI to EMY (Emeryville/SF)
- Shows California Zephyr options:
- Coach: $189 one way
- Roomette: $589 (includes meals)
- Bedroom: $1,089 (includes meals, private bath)
- Trip duration: 51 hours, stunning scenery
- Roomette fits 2, converts to beds at night用户:"预订从芝加哥到旧金山的California Zephyr列车的小卧室(Roomette)"
Claude:我将为您搜索卧铺住宿选项。
- 搜索CHI to EMY (Emeryville/SF)
- 显示California Zephyr选项:
- Coach: $189 one way
- Roomette: $589 (includes meals)
- Bedroom: $1,089 (includes meals, private bath)
- 行程时长:51小时,沿途风景优美
- 小卧室可容纳2人,夜间可转换为床铺Authentication Flow
认证流程
- Navigate to amtrak.com via Playwright MCP
- Click "Sign In" and enter email
- Enter password
- Handle security verification if prompted
- Verify Guest Rewards status displayed
- Maintain session for bookings
- 通过Playwright MCP导航至amtrak.com
- 点击"Sign In"并输入邮箱
- 输入密码
- 如有提示,完成安全验证
- 确认Guest Rewards会员状态已显示
- 保持会话以进行预订操作
Error Handling
错误处理
- Login Failed: Retry with Guest Rewards number
- Train Sold Out: Check adjacent dates, upgrade class
- Route Unavailable: Suggest connecting services
- Session Expired: Re-authenticate automatically
- Rate Limited: Wait 60 seconds, retry
- Delay Information Unavailable: Check again later
- 登录失败:使用Guest Rewards会员号重试
- 列车售罄:查询邻近日期、升级座位等级
- 路线不可用:建议转乘服务
- 会话过期:自动重新认证
- 请求受限:等待60秒后重试
- 延误信息不可用:稍后再次查询
Self-Improvement Instructions
自我改进说明
After each interaction:
- Track on-time performance by route
- Note pricing patterns and sales
- Log Guest Rewards earning rates
- Document UI changes
Suggest updates when:
- Amtrak updates booking interface
- Guest Rewards program changes
- New routes or services added
- Pricing structure changes
每次交互后:
- 按路线记录准点率
- 记录价格模式及促销活动
- 记录Guest Rewards积分赚取比例
- 记录界面变更
在以下情况时建议更新:
- Amtrak更新预订界面
- Guest Rewards会员计划变更
- 新增路线或服务
- 定价结构变更
Notes
备注
- Acela fastest on Northeast Corridor
- Long-distance trains include dining car
- Sleeper accommodations include all meals
- USA Rail Pass available for multi-trip travel
- Guest Rewards points don't expire with activity
- Bikes allowed on many routes (reservation required)
- Station access times vary (30min-2hr before departure)
- Acela在东北走廊速度最快
- 长途列车设有餐车
- 卧铺住宿包含所有餐食
- USA Rail Pass通票适用于多程旅行
- 有活动的情况下,Guest Rewards积分不会过期
- 许多路线允许携带自行车(需提前预订)
- 车站进站时间各不相同(出发前30min-2hr)