运营
- 作者仓库星标 0
- 作者仓库 FarmFriend-Terminal-React
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @0-CYBERDYNE-SYSTEMS-0 · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部接口密钥
- 需要 · Vendor-specific
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- Python >=3.7
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 命令执行
- 读取环境变量
- 网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# 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
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_URL` before 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 章节与文件索引
按说明文件中的顺序排列。
1、产品管理
2. 主题配置
3. 店铺运营
环境设置
批量操作
文件/命令 -> requests · python-dotenv · shpat_ · your-shop.myshopify.com · SHOPIFY_STORE_URL
内容校验值 -> 6cfe1048ece2
当前原文的自动摘译,尚未人工审校。
1、产品管理
创建具有变体、定价和元数据的产品 批量产品上传和目录管理 产品图片和媒体附件 库存和定价管理
2. 主题配置
将基于 JSON 的设置应用于活动主题 配置颜色、排版和布局 更新主题资源,无需手动 Liquid 编辑 主题切换和自定义
3. 店铺运营
初始化商店设置和政策 配置送货区域和税务设置 设置导航菜单 管理商店元数据和 SEO
环境设置
Python 3.7+,带有
requests和python-dotenv包 Shopify 管理 API 访问令牌(以shpat_开头) 商店 URL(格式:your-shop.myshopify.com)批量操作
对于大规模操作,请使用批量操作 API: 产品批量创建(100 多种产品) 库存更新 价格调整