costco

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Costco Skill

Costco Skill

Overview

概述

Automates Costco operations including bulk product search, warehouse availability, and order tracking through browser automation. Note: Membership required, purchases not automated.
通过浏览器自动化实现Costco操作自动化,包括批量商品搜索、仓库库存查询和订单跟踪。注意:需要会员资格,暂不支持自动下单。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/costco/install.sh | bash
Or manually:
bash
cp -r skills/costco ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/costco/install.sh | bash
或手动安装:
bash
cp -r skills/costco ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set COSTCO_EMAIL "your-email@example.com" canifi-env set COSTCO_PASSWORD "your-password"
undefined
canifi-env set COSTCO_EMAIL "your-email@example.com" canifi-env set COSTCO_PASSWORD "your-password"
undefined

Privacy & 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:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. 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 products and bulk items
  • Check warehouse availability
  • Track online orders
  • View instant savings
  • Compare member prices
  • Access order history
  • Check in-warehouse prices
  • Manage shopping list
  • 搜索商品及批量商品
  • 查询仓库库存
  • 跟踪在线订单
  • 查看即时优惠
  • 对比会员价格
  • 访问订单历史
  • 查询店内价格
  • 管理购物清单

Usage Examples

使用示例

Example 1: Search Products

示例1:搜索商品

User: "Find organic snacks at Costco"
Claude: I'll search for organic snacks.
- Navigate to costco.com
- Search "organic snacks"
- Filter by available options
- Present bulk options with pricing
用户:"在Costco找有机零食"
Claude:我将为你搜索有机零食。
- 导航至costco.com
- 搜索"有机零食"
- 筛选可用选项
- 展示带定价的批量商品选项

Example 2: Check Warehouse Stock

示例2:查询仓库库存

User: "Is this available at my local Costco?"
Claude: I'll check warehouse availability.
- Navigate to product page
- Check in-warehouse availability
- Report local stock status
- Note member pricing
用户:"这件商品在我当地的Costco有货吗?"
Claude:我将为你查询仓库库存。
- 导航至商品页面
- 查询店内库存情况
- 反馈本地库存状态
- 标注会员价格

Example 3: View Instant Savings

示例3:查看即时优惠

User: "What's on sale at Costco this month?"
Claude: I'll check instant savings.
- Navigate to Instant Savings
- Browse current deals
- List notable discounts
- Note expiration dates
用户:"Costco这个月有什么促销?"
Claude:我将为你查看即时优惠。
- 导航至即时优惠页面
- 浏览当前优惠活动
- 列出重点折扣商品
- 标注优惠截止日期

Example 4: Track Order

示例4:跟踪订单

User: "Track my Costco delivery order"
Claude: I'll check your order.
- Navigate to Orders
- Find recent order
- Check delivery status
- Report tracking info
用户:"跟踪我的Costco配送订单"
Claude:我将为你查询订单状态。
- 导航至订单页面
- 查找最近订单
- 查询配送状态
- 反馈跟踪信息

Authentication Flow

认证流程

  1. Navigate to costco.com via Playwright MCP
  2. Click Sign In
  3. Enter email from canifi-env
  4. Enter password
  5. Handle 2FA if enabled (notify user via iMessage)
  6. Verify membership access
  7. Maintain session cookies
  1. 通过Playwright MCP导航至costco.com
  2. 点击登录按钮
  3. 从canifi-env中获取邮箱并输入
  4. 输入密码
  5. 若启用双因素认证(2FA),通过iMessage通知用户获取验证码
  6. 验证会员权限
  7. 保存会话Cookie

Error Handling

错误处理

  • Login Failed: Verify membership status
  • Session Expired: Re-authenticate automatically
  • 2FA Required: iMessage for verification code
  • Membership Required: Some items need active membership
  • Out of Stock: Check other warehouses
  • Order Not Found: Check order number
  • Location Not Found: Verify zip code
  • In-Store Only: Some items not online
  • 登录失败:验证会员状态
  • 会话过期:自动重新认证
  • 需要2FA:通过iMessage请求验证码
  • 需要会员资格:部分商品需要有效会员资格
  • 库存不足:查询其他仓库
  • 未找到订单:核对订单编号
  • 未找到位置:验证邮政编码
  • 仅店内有售:部分商品无法在线购买

Self-Improvement Instructions

自我优化说明

When encountering new Costco features:
  1. Document new UI elements
  2. Add support for new features
  3. Log successful patterns
  4. Update for Costco changes
当遇到Costco新功能时:
  1. 记录新的UI元素
  2. 添加对新功能的支持
  3. 记录成功的操作模式
  4. 根据Costco的更新进行适配

Notes

注意事项

  • Costco requires paid membership
  • Executive members get 2% back
  • Kirkland is Costco's brand
  • Same-day delivery available
  • Gas prices for members
  • Pharmacy and optical separate
  • Business center has different items
  • Costco需要付费会员资格
  • 执行会员可享受2%返利
  • Kirkland是Costco的自有品牌
  • 支持当日达配送
  • 会员专享油价
  • 药房和眼镜部为独立区域
  • 商务中心有不同的商品品类