shopify

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Shopify 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 | bash
Or 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
undefined

First, ensure canifi-env is installed:

First, ensure canifi-env is installed:

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"
undefined
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"
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

功能

  • 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

认证流程

  1. Navigate to store admin URL via Playwright MCP
  2. Enter email from canifi-env
  3. Enter password
  4. Handle 2FA if enabled (notify user via iMessage)
  5. Verify admin dashboard access
  6. Maintain session cookies
  1. 通过Playwright MCP导航至店铺管理后台URL
  2. 从canifi-env中读取邮箱并输入
  3. 输入密码
  4. 若启用双重认证(2FA),则通过iMessage通知用户
  5. 验证是否成功访问管理后台仪表盘
  6. 保存会话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:
  1. Document new admin UI elements
  2. Add support for new features
  3. Log successful management patterns
  4. Update for Shopify updates
当遇到Shopify新功能时:
  1. 记录新的管理后台UI元素
  2. 添加对新功能的支持
  3. 记录成功的管理模式
  4. 根据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处理支付