用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dangooy/trade-pipeline-skill --skill trade-pipeline-run命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | trade-pipeline-run |
| description | Execute the trade document pipeline (RFQ → Quotation → PI → CI → PL) or price write-back |
| triggers | ["处理询价单","生成报价单","做报价","run pipeline","generate quotation","帮我出单","价格填好了","回写价格"] |
When the user says: 处理询价单, 生成报价单, 做报价, 做PI, 做CI, 做PL, 跑管线, run pipeline, generate quotation, process inquiry, 处理这个Excel, 帮我出单
Before running, verify in order:
Current directory: must contain trade_pipeline/ directory. If not, cd to the repo root.
Installation check: run trade-pipeline --help. If that command is not found, try python -m trade_pipeline --help, then python3 -m trade_pipeline --help (Mac / Linux have no bare python). If all fail, prompt:
管线未安装。请在项目根目录(含 pyproject.toml)先建虚拟环境再安装:
Mac / Linux:
python3 -m venv .venv && source .venv/bin/activate
Windows PowerShell:
py -m venv .venv; .\.venv\Scripts\Activate.ps1
pip install -e .
(不能跳过虚拟环境:Homebrew 和多数 Linux 发行版的系统 Python 受 PEP 668 保护,
直接 pip install 会报 externally-managed-environment。)
Config check: Read trade_pipeline/config/config.yaml.
name_en contains "ACME EXPORT" or buyer email contains ".example.com" → inform user:
"当前使用示例配置,可以跑 demo 体验。真实业务请先说"初始化配置"运行 init skill。"Use AskUserQuestion to ask:
Question 1 — 询价单路径:
Question 2 — 订单号:
Question 3 — 选择客户:
trade_pipeline/config/config.yaml, extract buyer keys and name_enbuyer_id — name_en_new — 新客户(buyer 信息填 TBD)Run via Bash:
trade-pipeline --input <path> --order <order_no> --buyer <buyer_id>
If trade-pipeline command not found, fallback to:
python -m trade_pipeline --input <path> --order <order_no> --buyer <buyer_id>
Do NOT add --interactive flag (default to review.json mode for safety).
If successful (exit code 0):
--use-llm run, so ask the user to double-check item details.If buyer match failed (output contains "review.json"):
review.json's candidate_values only contains raw buyer_id strings (e.g.
global_fasteners) — not company names. Read trade_pipeline/config/config.yaml
yourself and look up each candidate id's name_en (and address, if helpful)
before showing anything to the user. Never show a bare buyer_id list.review.json to set resolved_value to that buyer_id, then rerun with --confirm.resolved_value without the user naming it.价格填好了, 回写价格, 重新生成PI/CI, price update, 单价已填
Locate the most recent quotation and model files:
output/<most_recent_order>/ for *_quotation.xlsx and *_model.jsonExecute:
trade-pipeline --price-update <quotation_path> --model <model_path>
Report:
trade-pipeline-init skill.output/<order_no>/.基于 SOC 职业分类