hlzd-solution-matchlisted
Install: claude install-skill Alexxiang2008/hlzd-b2b-export-skills
# HLZD 方案匹配(Solution Match)
把"客户要什么" + "我能卖什么" → 3 套推荐:best_match / alternative / cost_effective。
---
## When to use
调用本 Skill 当用户:
- 拿到询盘(来自 `hlzd-inquiry-qualify` Grade A/B 输出的 enriched 询盘)
- 想给他 3 套选择(不是单 SKU)
- 想评分 vs 风险 vs 价格 三个维度看
**不要调用本 Skill 当**:
- 客户只要 1 个 SKU(直接卖就行)
- 还没拿到询盘(先用 inquiry-qualify)
---
## How this skill is invoked
```bash
# 1. 询盘(enquiry)JSON:含 product + quantity + certifications_required + lead_time_days + text
# 2. 产品目录(catalog)JSON:可选 — 默认用 lib.DEFAULT_CATALOG
cat << 'EOF' | py scripts/cli.py --stdin
{"product": "OCTG", "quantity": "500 tons", "certifications_required": ["API 5CT", "NACE MR0175"],
"text": "sour service oilfield", "lead_time_days": 60}
EOF
# 或
py scripts/cli.py --input enquiry.json --catalog catalog.json --pretty
```
输出:
```json
{
"$schema": "hlzd/solution-match/v1",
"best_match": { "sku": "...", "match_score": 96, "scoring_breakdown": {...}, "risks": [], "rationale": "..." },
"alternative": { "sku": "...", "match_score": 91, ... },
"cost_effective": { "sku": "...", "match_score": 80, ... },
"all_risks": ["missing_cert:rohs", "below_moq"]
}
```
---
## 5-维匹配评分
| 维度 | 满分 | 内容 |
|---|---|---|
| **D1 规格匹配** | 30 | 品类匹配 (8) + 认证匹配 (12) + 应用场景匹配 (10) |
| **D2 数量匹配** | 15 | 询盘数量 vs MOQ (8) + vs 月产能 (7) |
| **D3 交期匹配** | 20 | 客户期望 vs SKU 标准 lead_time |
| **D4 价格梯度** | 15 | tier 1 = 15; tier 0/2 = 10; 其他 = max(0, 15-abs(t-1)*8) |
| **D5 风险检查** | 20 | 干净 → 20; 每个 risk (-4) |
---
## 3 套方案生成策略
| 方案