ecommerce-full-pipeline
anbeime/skill · Agent Skill
自動化完整的電子商務流程:從趨勢產品發現和資料抓取到內容建立和推廣。
前往安裝 ↓總覽
| 發布者 | |
|---|---|
| 儲存庫 | anbeime/skill ↗ |
| 技能資料夾 | ecommerce-full-pipeline |
| 星 | 6,273 |
| 附帶檔案 | 1 |
| 授權 | 未標示 — 請向作者確認 |
| 最近更新 | 2026年8月25日 |
| 連結 | 技能原始碼 ↗ · 儲存庫 ↗ |
Mozgi 檢查
我們在技能檔案中發現的內容。詳細資訊需訂閱。
安裝
技能就是一個含 SKILL.md 的資料夾。選擇你的代理,在專案根目錄的終端機(macOS、Linux 或 Windows 的 Git Bash)執行指令。
把提示貼到 Claude、Codex 或其他助理:它會自行檢查並安裝技能。
Install the “ecommerce-full-pipeline” skill from mozgi.io (https://mozgi.io/skills/ecommerce-full-pipeline/) for me. 1. Download the archive: https://mozgi.io/skills/ecommerce-full-pipeline/download If it fails, take the skill folder from the source: https://github.com/anbeime/skill/tree/main/skills/ecommerce-full-pipeline/ecommerce-full-pipeline 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “ecommerce-full-pipeline” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/ecommerce-full-pipeline/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/anbeime/skill.git /tmp/skill mkdir -p .claude/skills cp -r /tmp/skill/skills/ecommerce-full-pipeline/ecommerce-full-pipeline .claude/skills/ecommerce-full-pipeline
重新啟動 Claude Code — 技能就會出現在清單中,手動呼叫:/ecommerce-full-pipeline。要套用到所有專案,請放在 ~/.claude/skills。
git clone --depth 1 --branch main https://github.com/anbeime/skill.git /tmp/skill mkdir -p .agents/skills cp -r /tmp/skill/skills/ecommerce-full-pipeline/ecommerce-full-pipeline .agents/skills/ecommerce-full-pipeline
Codex 會從目前資料夾往上到儲存庫根目錄,在 .agents/skills 中尋找技能;用 /skills 或 $ecommerce-full-pipeline 呼叫。所有專案:~/.agents/skills。
git clone --depth 1 --branch main https://github.com/anbeime/skill.git /tmp/skill mkdir -p .cursor/skills cp -r /tmp/skill/skills/ecommerce-full-pipeline/ecommerce-full-pipeline .cursor/skills/ecommerce-full-pipeline
Cursor 啟動時會載入技能;在 Agent 聊天輸入「/」呼叫。Cursor 也會讀取 .claude/skills 與 .agents/skills。所有專案:~/.cursor/skills。
git clone --depth 1 --branch main https://github.com/anbeime/skill.git /tmp/skill mkdir -p .gemini/skills cp -r /tmp/skill/skills/ecommerce-full-pipeline/ecommerce-full-pipeline .gemini/skills/ecommerce-full-pipeline
任務符合時,Gemini CLI 會提議啟用技能,由你確認。所有專案:~/.gemini/skills。
安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。
SKILL.md 內容
作者原文 · 唯讀跨境电商全链路自动化工具
任务目标
- 本技能用于:跨境电商从选品到推广的全流程自动化
- 能力包含:
1. 1688 商品采集:关键词搜索、详情抓取、图片下载、反爬回退(Mock 数据兜底)
2. 智能数据清洗:自动翻译标题、价格标准化、供应商评分、利润率计算、批量过滤
3. 多平台上架:一键生成微信小店/Shopify/TikTok 上架模板,支持 CSV/Excel/JSON 导出
4. 推广方案生成:自动关键词生成、竞品分析、广告文案撰写、预算规划
5. 短视频创作:基于商品图片自动生成竖屏推广视频(MoviePy + Ken Burns 特效)
6. 一键代发:1688 源头直接下单,支持无痕发货备注、Playwright 浏览器自动化
7. 爆品趋势挖掘:多源趋势聚合(Google Trends)、6 维爆品评分、自动触发后续流水线
8. 闲鱼选品捡漏:二手商品搜索、品牌识别、虚标过滤、6 维捡漏评分、价格监控、智能推荐
9. 全自动流水线:爆品挖掘→采集→清洗→上架→推广→视频,一键端到端执行
- 触发条件:用户需要开展跨境电商业务,包括选品、上架、推广、视频创作或二手选品捡漏时
前置准备
- Python 3.8+
- 依赖包安装:
pip install requests beautifulsoup4 lxml pyyaml pytrends moviepy pillow
- 1688 / 闲鱼需要登录态才能完整采集,建议在已登录的浏览器环境中使用
- 推广视频生成需要 ffmpeg(MoviePy 依赖)
操作步骤
流程一:全链路自动化(推荐)
# 自动挖掘爆品 → 采集 → 清洗 → 上架 → 推广 → 视频生成
python main.py auto-pipeline --seed-keywords "收纳盒,蓝牙耳机" --top-n 5 --product-limit 3 --platform all
流程二:1688 采集 → 上架 → 推广
# Step 1: 采集
python main.py scrape --keyword "蓝牙耳机" --pages 2 --detail --download-images
# Step 2: 清洗(过滤毛利率低于20%、供应商评分低于60分的商品)
python main.py clean --input data/raw_products.json --min-margin 0.20 --min-score 60
# Step 3: 上架(生成多平台模板)
python main.py publish --input data/cleaned_products.json --platform all --export all
# Step 4: 推广(关键词+竞品分析+广告文案+预算)
python main.py promote --input data/cleaned_products.json --limit 10 --daily-budget 50
# Step 5: 生成推广短视频
python main.py video --input data/cleaned_products.json --limit 5 --duration 15
流程三:爆品挖掘
# 自动挖掘趋势爆品
python main.py trend --categories electronics,home --top-n 10
# 指定种子词挖掘
python main.py trend --seed-keywords "充电宝,手机壳" --top-n 10
流程四:闲鱼选品捡漏
# 闲鱼搜索
python main.py xianyu --keyword "投影仪" --price-max 999 --pages 3 --condition 9成新
# 捡漏搜索(带参数需求)
python main.py hunt --keyword "投影仪 4K 云台" --budget 999 \
--min-lumens 1000 --require-4k --require-gimbal --require-wall
# 智能推荐(多关键词综合)
python main.py recommend --keywords "投影仪,家用投影,4K投影" --budget 999 \
--min-lumens 1000 --require-4k --require-gimbal
# 价格监控
python main.py monitor --keywords "投影仪,坚果投影" --budget 999
流程五:一键代发
python main.py fulfill --source-url "https://detail.1688.com/offer/xxx.html" \
--receiver-name "张三" --receiver-phone "13800138000" \
--receiver-address "北京市朝阳区xxx" --sku-spec "白色/大号" --quantity 1
核心逻辑
爆品挖掘评分模型
爆品评分 = 趋势速度 × 35% + (1-竞争度) × 25% + 利润潜力 × 25% + 供应稳定 × 15%
| 维度 | 权重 | 评分逻辑 |
|------|------|---------|
| 趋势速度 | 35% | Google Trends 搜索量变化率,近期涨幅越高分越高 |
| 竞争度 | 25% | 市场竞争强度反向指标,竞争越低分越高 |
| 利润潜力 | 25% | 1688 供货价与预估售价的利润率 |
| 供应稳定 | 15% | 供应商数量和供货稳定性 |
闲鱼捡漏评分模型
评分公式:价格优势(30分) + 性价比(20分) + 成色(15分) + 卖家信誉(15分) + 参数匹配(20分) - 风险扣分
| 维度 | 分值 | 评分逻辑 |
|------|------|---------|
| 价格优势 | 0-30 | 实际价/合理二手价的比值越低分越高,降价幅度加分 |
| 性价比 | 0-20 | 相对全新价的折扣率,折扣越大分越高 |
| 成色 | 0-15 | 全新15分 > 几乎全新13 > 99新12 > 9成新10 > 正常使用7 |
| 卖家信誉 | 0-15 | 百分百好评+10,想要人数加分 |
| 参数匹配 | 0-20 | 按用户需求参数(亮度/4K/云台等)的匹配度 |
| 风险扣分 | 0-30 | 低价高参数虚标、无品牌、商家批量出货等风险因素 |
品牌识别与虚标过滤
- 内置 30+ 品牌识别词典(投影仪/手机/笔记本/平板等品类)
- 虚标检测:低价高参数异常(如 ¥200 声称 3000+ 流明)
- 黑名单过滤:已知虚标品牌关键词、商家批量出货识别
数据清洗规则
- 自动翻译标题为英文(上架 Shopify/TikTok)
- 价格标准化(统一为 USD)
- 利润率 = (预估售价 - 供货价) / 预估售价
- 供应商评分过滤、起订量筛选
推广视频生成
- 基于 MoviePy 自动生成竖屏短视频(9:16)
- Ken Burns 慢推拉特效
- 商品图片轮播 + 标题叠加
- 时长可配置(默认 15 秒)
项目结构
ecommerce-tool/
├── main.py # CLI 入口(13 个子命令)
├── config.yaml # 配置文件
├── requirements.txt # 依赖
├── ecommerce_tool/
│ ├── scraper.py # 1688 采集模块
│ ├── cleaner.py # 数据清洗模块
│ ├── publisher.py # 多平台上架模块
│ ├── promoter.py # 推广方案模块
│ ├── video_generator.py # 短视频生成模块
│ ├── fulfillment.py # 一键代发模块
│ ├── trend_detector.py # 爆品挖掘模块
│ ├── xianyu_scraper.py # 闲鱼采集模块
│ ├── bargain_hunter.py # 捡漏分析模块
│ └── utils.py # 工具函数
CLI 命令一览
| 命令 | 说明 |
|------|------|
| scrape | 从 1688 采集商品 |
| clean | 清洗商品数据 |
| publish | 生成上架模板(微信小店/Shopify/TikTok) |
| promote | 生成推广方案(关键词/竞品/文案/预算) |
| video | 生成推广短视频 |
| fulfill | 一键代发下单 |
| pipeline | 全流程自动化(采集→清洗→上架→推广→视频) |
| trend | 自动挖掘爆品趋势 |
| auto-pipeline | 全自动爆品流水线(挖掘→采集→上架→推广→视频) |
| xianyu | 闲鱼商品搜索 |
| hunt | 闲鱼捡漏搜索 |
| recommend | 智能推荐(多关键词综合) |
| monitor | 价格监控 |
Python API 调用
from ecommerce_tool.scraper import Scraper1688
from ecommerce_tool.cleaner import DataCleaner
from ecommerce_tool.publisher import Publisher
from ecommerce_tool.promoter import Promoter
from ecommerce_tool.video_generator import VideoGenerator
from ecommerce_tool.fulfillment import FulfillmentEngine
from ecommerce_tool.trend_detector import TrendDetector
from ecommerce_tool.xianyu_scraper import XianyuScraper
from ecommerce_tool.bargain_hunter import BargainHunter
# 1688 采集
scraper = Scraper1688(config, logger)
products = scraper.search("蓝牙耳机", pages=2)
# 爆品挖掘
detector = TrendDetector(config, logger)
candidates = detector.discover(categories=["electronics"], top_n=10)
# 闲鱼捡漏
hunter = BargainHunter(config, logger)
results = hunter.hunt(
keyword="投影仪",
price_max=999,
spec_requirements={
"min_lumens": 1000,
"support_4k": True,
"has_gimbal": True,
"support_wall": True,
},
)
print(hunter.display_results(results))
注意事项
- 1688 / 闲鱼有反爬机制,建议设置合理请求间隔(1.5-3.5 秒)
- 网络不可用时自动回退 Mock 数据(开发调试用)
- 视频生成需要 ffmpeg 环境
- 推广文案和关键词为 AI 生成参考,实际投放需人工审核
- 闲鱼捡漏评分仅供选品参考,不构成交易建议
- 虚标过滤不能 100% 消除假货,购买前请仔细核实
相关链接
- 源码仓库: https://gitee.com/anbeime/ebay
常見問題
ecommerce-full-pipeline 技能有什麼用途?
自動化完整的電子商務流程:從趨勢產品發現和資料抓取到內容建立和推廣。
如何安裝 ecommerce-full-pipeline?
打開本頁的「安裝」區塊並選擇你的代理 — Claude Code、Codex、Cursor 或 Gemini CLI:那裡有把技能資料夾複製到正確位置的現成指令。也可以複製「透過助理」分頁中的提示,讓助理自行檢查並安裝技能。
ecommerce-full-pipeline 適用哪些 AI 模型?
技能是純 Markdown 指示(Agent Skills 格式),因此 ecommerce-full-pipeline 適用任何讀取 SKILL.md 的代理:Claude Code、Codex、Cursor、Gemini CLI、GitHub Copilot、OpenCode 等。只有在任務符合技能描述時,模型才會載入指示。
ecommerce-full-pipeline 是免費的嗎?
此技能由 anbeime 公開發布。技能本身免費 — 你只需向 AI 供應商支付實際使用的 token 費用。儲存庫未標示授權 — 商業使用前請向作者確認條款。
安裝技能安全嗎?
技能是代理會遵循的指示,安裝前請閱讀 SKILL.md 及相關檔案。技能資料夾中的腳本只有在代理執行時才會運行 — 留意它的動作,不要授予多餘權限。
技能和 MCP 伺服器或外掛有何不同?
MCP 伺服器或外掛為模型提供新工具 — 會執行並回傳結果的程式碼。技能提供的是知識與流程:如何處理任務、要遵循哪些步驟、好的成果長什麼樣子。它不需要伺服器或 API 金鑰。