用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dangooy/trade-pipeline-skill --skill trade-pipeline-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | trade-pipeline-init |
| description | Interactive setup wizard for first-time trade-pipeline configuration |
| triggers | ["初始化配置","setup","configure trade pipeline","第一次使用","init"] |
When the user says "初始化配置", "setup", "configure trade pipeline", "init", "第一次使用", or when trade_pipeline/config/config.yaml contains example/placeholder data (seller name is "ACME EXPORT").
Use AskUserQuestion to guide the user through configuring their trade pipeline. Collect all information first, then write config.yaml in one step.
Ask with AskUserQuestion (multiSelect: false):
Then ask:
These can be combined into 2-3 rounds of AskUserQuestion, grouping related fields.
Ask with AskUserQuestion options:
question: "默认贸易条件?"
options:
- label: "FOB"
description: "Free On Board — 卖方交到港口,买方负责运输"
- label: "CIF"
description: "Cost, Insurance, Freight — 卖方负责运费+保险到目的港"
- label: "DDP"
description: "Delivered Duty Paid — 卖方全包到买方门口"
- label: "EXW"
description: "Ex Works — 买方自提"
Ask with AskUserQuestion options:
question: "默认币种?"
options:
- label: "USD"
- label: "CNY"
- label: "EUR"
question: "默认装运港?"
options:
- label: "QINGDAO,CHINA"
- label: "SHANGHAI,CHINA"
- label: "NINGBO,CHINA"
Ask:
Ask:
question: "现在添加第一个客户吗?"
options:
- label: "是,添加客户"
- label: "跳过,稍后再加"
If yes, ask buyer name, address, contact, email.
After collecting all info, generate the YAML config and write to:
trade_pipeline/config/config.yaml
Use the following structure:
sellers:
<seller_id>:
name_cn: <中文名>
name_en: <英文名>
address: <地址>
contact: <联系人>
tel: <电话>
email: <邮箱>
bank: { name: "", swift: "", account_no: "" }
buyers:
<buyer_id>: # if provided
name_en: <名称>
legal_names: [<名称>]
aliases: [<简称>]
address: <地址>
contact: <联系人>
email: <邮箱>
format_defaults:
standard:
seller_id: <seller_id>
currency: <币种>
price_unit: "<币种>/PC"
terms_id: "default_<币种小写>"
terms_templates:
default_<币种小写>:
payment: <付款条件>
delivery: "<贸易条件> <装运港>, Incoterms 2020."
lead_time: <交货期>
validity: "10 days"
[, , , , ]
Seller ID generation: take the first 2 meaningful words from the English name, lowercased, joined by underscore. Skip words like "co", "ltd", "inc", "limited".
Show the user a summary:
Seller: <英文名> (id: <seller_id>)
Terms: <贸易条件> | Currency: <币种> | Port: <装运港>
Buyer: <客户名> (if added)
Config written to: trade_pipeline/config/config.yaml
Quick demo:
python -m trade_pipeline --input examples/sample_inquiry.xlsx --order DEMO --buyer <buyer_id or _new>
python -m trade_pipeline init) is still available as a fallback