grubhub
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGrubhub Skill
Grubhub Skill
Overview
概述
Automates Grubhub operations including restaurant browsing, order tracking, and perks management through browser automation. Note: Actual orders are not automated for security.
通过浏览器自动化实现Grubhub操作自动化,包括餐厅浏览、订单追踪和福利管理。注意:出于安全考虑,实际下单操作不会被自动化。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/grubhub/install.sh | bashOr manually:
bash
cp -r skills/grubhub ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/grubhub/install.sh | bash或手动安装:
bash
cp -r skills/grubhub ~/.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 GRUBHUB_EMAIL "your-email@example.com"
canifi-env set GRUBHUB_PASSWORD "your-password"
undefinedcanifi-env set GRUBHUB_EMAIL "your-email@example.com"
canifi-env set GRUBHUB_PASSWORD "your-password"
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
功能
- Browse restaurants and menus
- Search cuisines and dishes
- Track active orders
- View order history
- Manage saved restaurants
- Check Grubhub+ benefits
- Find deals and perks
- View pickup options
- 浏览餐厅和菜单
- 搜索菜系和菜品
- 追踪进行中的订单
- 查看订单历史
- 管理已收藏的餐厅
- 查看Grubhub+福利
- 查找优惠和福利
- 查看自提选项
Usage Examples
使用示例
Example 1: Browse Restaurants
示例1:浏览餐厅
User: "Find Indian restaurants on Grubhub"
Claude: I'll find Indian food.
- Navigate to grubhub.com
- Search "Indian"
- Filter by available
- Sort by rating
- Present top options用户:“在Grubhub上找印度餐厅”
Claude:我会帮你找印度菜。
- 导航至grubhub.com
- 搜索“印度菜”
- 筛选可配送的餐厅
- 按评分排序
- 展示推荐选项Example 2: Check Perks
示例2:查看福利
User: "What Grubhub perks do I have?"
Claude: I'll check your perks.
- Navigate to account perks
- View available offers
- List active deals
- Note expiration dates用户:“我有哪些Grubhub福利?”
Claude:我会帮你查看你的福利。
- 导航至账户福利页面
- 查看可用优惠
- 列出当前有效的活动
- 标注到期日期Example 3: Track Order
示例3:追踪订单
User: "Track my Grubhub order"
Claude: I'll track your delivery.
- Navigate to Order History
- Find active order
- Check delivery status
- Report ETA用户:“追踪我的Grubhub订单”
Claude:我会帮你追踪配送状态。
- 导航至订单历史页面
- 找到进行中的订单
- 查看配送状态
- 报告预计送达时间Example 4: Find Pickup
示例4:查找自提选项
User: "Find restaurants with pickup near me"
Claude: I'll find pickup options.
- Filter by pickup
- Browse nearby restaurants
- Note pickup times
- Present options用户:“找我附近支持自提的餐厅”
Claude:我会帮你找自提选项。
- 筛选支持自提的餐厅
- 浏览附近的餐厅
- 标注自提时间
- 展示选项Authentication Flow
认证流程
- Navigate to grubhub.com via Playwright MCP
- Click Sign In
- Enter email from canifi-env
- Enter password
- Handle 2FA if enabled (notify user via iMessage)
- Verify account access
- Maintain session cookies
- 通过Playwright MCP导航至grubhub.com
- 点击“登录”
- 输入canifi-env中设置的邮箱
- 输入密码
- 若启用了双因素认证,则处理该步骤(通过iMessage通知用户)
- 验证账户访问权限
- 维护会话Cookie
Error Handling
错误处理
- Login Failed: Clear cookies, verify credentials
- Session Expired: Re-authenticate automatically
- 2FA Required: iMessage for verification code
- Restaurant Closed: Note hours
- No Delivery: Check pickup option
- Order Not Found: Check order ID
- Perks Expired: Note expiration
- Address Error: Verify delivery address
- 登录失败:清除Cookie,验证凭据
- 会话过期:自动重新认证
- 需要双因素认证:通过iMessage发送验证码请求
- 餐厅已打烊:标注营业时间
- 无法配送:查看自提选项
- 未找到订单:检查订单ID
- 福利已过期:标注到期日期
- 地址错误:验证配送地址
Self-Improvement Instructions
自我改进说明
When encountering new Grubhub features:
- Document new UI elements
- Add support for new features
- Log successful patterns
- Update for Grubhub changes
当遇到Grubhub的新功能时:
- 记录新的UI元素
- 添加对新功能的支持
- 记录成功的操作模式
- 根据Grubhub的更新进行适配
Notes
注意事项
- Orders not automated for security
- Grubhub+ for free delivery
- Pickup option available
- Perks and rewards program
- Corporate accounts available
- Scheduled orders supported
- Part of Just Eat Takeaway
- 出于安全考虑,下单操作不会被自动化
- Grubhub+ 可享受免费配送
- 支持自提选项
- 提供福利和奖励计划
- 支持企业账户
- 支持预约订单
- 隶属于Just Eat Takeaway