Shopify 技能创建
- 作者仓库星标 0
- 作者仓库 FarmFriend-Terminal-React
Shopify Operations Skill
Overview
This skill provides comprehensive Shopify store management capabilities through the Shopify Admin GraphQL API. It enables automated product creation, theme configuration, and store initialization.
Core Capabilities
1. Product Management
- Create products with variants, pricing, and metadata
- Bulk product upload and catalog management
- Product image and media attachment
- Inventory and pricing management
2. Theme Configuration
- Apply JSON-based settings to active themes
- Configure colors, typography, and layout
- Update theme assets without manual Liquid editing
- Theme switching and customization
3. Store Operations
- Initialize store settings and policies
- Configure shipping zones and tax settings
- Set up navigation menus
- Manage store metadata and SEO
Prerequisites
Environment Setup
- Python 3.7+ with
requestsandpython-dotenvpackages - Shopify Admin API access token (starts with
shpat_) - Store URL (format:
your-shop.myshopify.com)
Required Environment Variables
SHOPIFY_STORE_URL=your-shop.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_your_access_token_here
Installation
pip install requests python-dotenv
Usage Instructions
Product Creation
# Basic product creation
python3 scripts/shop_manager.py create_product \
--title "Classic T-Shirt" \
--price "29.99" \
--vendor "MyBrand" \
--tags "clothing,cotton" \
--description "Comfortable 100% organic cotton t-shirt"
Theme Configuration
# Update theme settings
python3 scripts/shop_manager.py update_theme \
--settings '{"colors": {"button": "#000000", "background": "#ffffff"}}'
Store Information Update
# Update shop settings
python3 scripts/shop_manager.py update_shop \
--name "My Store" \
--email "contact@mystore.com" \
--currency "USD"
Advanced Features
Bulk Operations
For large-scale operations, use the bulk operations API:
- Product bulk creation (100+ products)
- Inventory updates
- Price adjustments
Rate Limiting
The script includes intelligent retry logic:
- Automatic backoff on rate limits
- Exponential retry with jitter
- Request queuing for bulk operations
Error Handling
- Comprehensive error reporting
- Transaction rollback support
- Validation before API calls
Safety and Best Practices
Live Store Warning
⚠️ All operations affect the live store immediately
- Always verify
SHOPIFY_STORE_URLbefore execution - Test in development stores first
- Use dry-run mode when available
Data Protection
- Never commit API tokens to version control
- Use environment variables for sensitive data
- Implement proper access controls
Backup Recommendations
- Export data before bulk operations
- Maintain theme backups
- Document all automated changes
Progressive Disclosure
For Basic Operations
Use the simple CLI commands for common tasks like product creation and theme updates.
For Advanced Integration
Refer to the full Shopify Admin GraphQL API documentation for complex mutations and queries.
Troubleshooting
- Check API token permissions
- Verify store URL format
- Monitor rate limit headers
- Review GraphQL error responses
API Version Compatibility
- Current API version: 2024-10
- Backward compatibility maintained
- Regular version updates recommended
Support and Documentation
- Shopify Admin API docs: https://shopify.dev/docs/api/admin-graphql
- GraphQL best practices: https://shopify.dev/docs/apps/build/graphql-optimization
- Rate limiting guide: https://shopify.dev/docs/api/usage/rate-limits
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @0-CYBERDYNE-SYSTEMS-0 · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 需要 · Vendor-specific
- 检测到的系统要求
- 未声明
- 底层运行要求
- Python >=3.7
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 读取环境变量
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 This skill provides comprehensive Shopify store management capabilities through the Shopify Admin GraphQL API. It enables automated product creation, theme configuration, and store initialization.
Core Capabilities
Create products with variants, pricing, and metadata Bulk product upload and catalog management Product image and media attachment
Apply JSON-based settings to active themes Configure colors, typography, and layout Update theme assets without manual Liquid editing
Initialize store settings and policies Configure shipping zones and tax settings Set up navigation menus
Prerequisites
# Shopify Operations Skill
## Overview
This skill provides comprehensive Shopify store management capabilities through the Shopify Admin GraphQL API. It enables automated product creation, theme configuration, and store initialization.
## Core Capabilities
### 1. Product Management
- Create products with variants, pricing, and metadata
- Bulk product upload and catalog management
- Product image and media attachment
- Inventory and pricing management
### 2. Theme Configuration
- Apply JSON-based settings to active themes
- Configure colors, typography, and layout
- Update theme assets without manual Liquid editing
- Theme switching and customization
### 3. Store Operations
- Initialize store settings and policies
- Configure shipping zones and tax settings
- Set up navigation menus
- Manage store metadata and SEO
## Prerequisites
### Environment Setup
- Python 3.7+ with `requests` and `python-dotenv` packages
- Shopify Admin API access token (starts with `shpat_`)
- Store URL (format: `your-shop.myshopify.com`)
### Required Environment Variables
```bash
SHOPIFY_STORE_URL=your-shop.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_your_access_token_here
```
### Installation
```bash
pip install requests python-dotenv
```
## Usage Instructions
### Product Creation
```python
# Basic product creation
python3 scripts/shop_manager.py create_product \
--title "Classic T-Shirt" \
--price "29.99" \
--vendor "MyBrand" \
--tags "clothing,cotton" \
--description "Comfortable 100% organic cotton t-shirt"
```
### Theme Configuration
```python
# Update theme settings
python3 scripts/shop_manager.py update_theme \
--settings '{"colors": {"button": "#000000", "background": "#ffffff"}}'
```
### Store Information Update
```python
# Update shop settings
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Overview → Core Capabilities → 1. Product Management → 2. Theme Configuration → 3. Store Operations → Prerequisites
要点 -> All operations affect the live store immediately
文件/命令 -> requests · python-dotenv · shpat · your-shop.myshopify.com · SHOPIFYSTOREURL
内容 SHA-256 -> 6cfe1048ece2
原文结构
适用与边界
原文中的明确线索
requests、python-dotenv、shpat、your-shop.myshopify.com、SHOPIFYSTOREURL