shopify
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseShopify Skill
Shopify技能
Overview
概述
Automates Shopify store management including product management, order processing, inventory tracking, and store analytics through browser automation.
通过浏览器自动化实现Shopify店铺管理的自动化,包括商品管理、订单处理、库存跟踪及店铺数据分析。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/shopify/install.sh | bashOr manually:
bash
cp -r skills/shopify ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/shopify/install.sh | bash或手动安装:
bash
cp -r skills/shopify ~/.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 SHOPIFY_STORE "your-store.myshopify.com"
canifi-env set SHOPIFY_EMAIL "your-email@example.com"
canifi-env set SHOPIFY_PASSWORD "your-password"
undefinedcanifi-env set SHOPIFY_STORE "your-store.myshopify.com"
canifi-env set SHOPIFY_EMAIL "your-email@example.com"
canifi-env set SHOPIFY_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
功能
- Manage products and inventory
- Process and track orders
- View sales analytics
- Manage customer data
- Update store settings
- Handle discounts and promotions
- Manage shipping settings
- View financial reports
- 管理商品与库存
- 处理及跟踪订单
- 查看销售数据分析
- 管理客户数据
- 更新店铺设置
- 处理折扣与促销活动
- 管理配送设置
- 查看财务报告
Usage Examples
使用示例
Example 1: Check Orders
示例1:查看订单
User: "Show me today's Shopify orders"
Claude: I'll check today's orders.
- Navigate to Shopify admin
- Go to Orders section
- Filter by today's date
- List orders with status
- Present summary用户:"帮我查看今天的Shopify订单"
Claude:我将为您查看今天的订单。
- 导航至Shopify管理后台
- 进入订单板块
- 按今日日期筛选
- 列出订单及状态
- 呈现汇总信息Example 2: Update Inventory
示例2:更新库存
User: "Update the inventory for the blue t-shirt to 50"
Claude: I'll update that inventory.
- Navigate to Products
- Find blue t-shirt
- Edit inventory quantity
- Set to 50 units
- Save changes用户:"把蓝色T恤的库存更新为50件"
Claude:我将为您更新该商品库存。
- 导航至商品板块
- 找到蓝色T恤
- 编辑库存数量
- 设置为50件
- 保存更改Example 3: Check Analytics
示例3:查看数据分析
User: "Show me this week's sales on Shopify"
Claude: I'll pull sales analytics.
- Navigate to Analytics
- Select this week's range
- Gather sales data
- Present revenue and orders用户:"帮我查看本周Shopify的销售数据"
Claude:我将为您提取销售数据分析。
- 导航至数据分析板块
- 选择本周时间范围
- 收集销售数据
- 呈现营收及订单信息Example 4: Create Discount
示例4:创建折扣
User: "Create a 20% off discount code called SAVE20"
Claude: I'll create that discount.
- Navigate to Discounts
- Click Create discount
- Set code as SAVE20
- Configure 20% off
- Save discount用户:"创建一个名为SAVE20的20%折扣码"
Claude:我将为您创建该折扣。
- 导航至折扣板块
- 点击创建折扣
- 设置折扣码为SAVE20
- 配置20%折扣
- 保存折扣Authentication Flow
认证流程
- Navigate to store admin URL via Playwright MCP
- Enter email from canifi-env
- Enter password
- Handle 2FA if enabled (notify user via iMessage)
- Verify admin dashboard access
- Maintain session cookies
- 通过Playwright MCP导航至店铺管理后台URL
- 从canifi-env中读取邮箱并输入
- 输入密码
- 若启用双重认证(2FA),则通过iMessage通知用户
- 验证是否成功访问管理后台仪表盘
- 保存会话Cookie
Error Handling
错误处理
- Login Failed: Verify store URL and credentials
- Session Expired: Re-authenticate automatically
- 2FA Required: iMessage for verification code
- Permission Denied: Check staff permissions
- Product Not Found: Search by SKU or title
- Order Not Found: Search by order number
- Inventory Error: Check variant availability
- API Limit: Wait before continuing
- 登录失败:验证店铺URL及凭证
- 会话过期:自动重新认证
- 需要双重认证:通过iMessage发送验证码请求
- 权限不足:检查员工账号权限
- 未找到商品:通过SKU或标题搜索
- 未找到订单:通过订单编号搜索
- 库存错误:检查变体库存可用性
- API限制:等待后再继续操作
Self-Improvement Instructions
自我优化说明
When encountering new Shopify features:
- Document new admin UI elements
- Add support for new features
- Log successful management patterns
- Update for Shopify updates
当遇到Shopify新功能时:
- 记录新的管理后台UI元素
- 添加对新功能的支持
- 记录成功的管理模式
- 根据Shopify更新进行适配
Notes
注意事项
- Shopify has different plans with features
- Staff accounts have role-based access
- POS integrates with online store
- Apps extend functionality
- Themes affect storefront
- Shipping rates configured separately
- Payment processing via Shopify Payments
- Shopify不同套餐包含的功能不同
- 员工账号拥有基于角色的访问权限
- POS系统与线上店铺集成
- 应用可扩展店铺功能
- 主题影响店铺前端展示
- 配送费率需单独配置
- 通过Shopify Payments处理支付