Agent Skillsanthropics/cwc-workshops › supplier-selection

supplier-selection

GitHub

用于根据SKU选择最佳供应商。通过Python计算价格、交货期和可靠性的加权得分,并结合特定供应商的覆盖规则及仓库位置调整,最终选出最优选项并生成采购建议。

agent-decomposition/.claude/skills/supplier-selection/SKILL.md anthropics/cwc-workshops

触发场景

需要为SKU选择或排名供应商 比较不同供应商的报价 创建采购订单

安装

npx skills add anthropics/cwc-workshops --skill supplier-selection -g -y
更多选项

非标准路径

npx skills add https://github.com/anthropics/cwc-workshops/tree/main/agent-decomposition/.claude/skills/supplier-selection -g -y

不安装直接使用

npx skills use anthropics/cwc-workshops@supplier-selection

指定 Agent (Claude Code)

npx skills add anthropics/cwc-workshops --skill supplier-selection -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/cwc-workshops --all -g -y

预览 repo 内 skill

npx skills add anthropics/cwc-workshops --list

SKILL.md

Frontmatter
{
    "name": "supplier-selection",
    "description": "How to rank and pick a supplier for a SKU. Load this whenever a task involves choosing a supplier, comparing quotes, or creating a purchase order."
}

Supplier Selection

Ranking suppliers is arithmetic, not judgment. Compute it in Python via code execution — do not reason about it in prose.

Method

For a given SKU:

  1. Read /mnt/user/data/supplier_catalog.csv and filter to rows matching the SKU. This gives you (supplier_id, unit_price, min_order_qty) for each candidate.
  2. Join with /mnt/user/data/suppliers.csv on supplier_id to get lead_time_days and reliability.
  3. Normalize price and lead time across the candidates (min-max to [0,1], where 0 is best). Reliability is already on [0,1] where higher is better.
  4. Score each candidate:
    score = 0.5 × (1 − norm_price) + 0.3 × (1 − norm_lead_time) + 0.2 × reliability
    
  5. Pick the highest score. Tie-breaks: lowest unit_price, then lowest lead_time_days, then alphabetical supplier_id.

Do this in code

Write and run a short Python script — don't call a tool per supplier, and don't compare quotes by describing them. Example shape:

import csv
sku = "SKU-0057"
catalog = [r for r in csv.DictReader(open("/mnt/user/data/supplier_catalog.csv")) if r["sku"] == sku]
suppliers = {r["supplier_id"]: r for r in csv.DictReader(open("/mnt/user/data/suppliers.csv"))}
# join, normalize, score, sort — print the winner as JSON

Supplier-specific overrides

These quirks are not in the catalog data. Apply them after computing the score; if one changes your pick, say so in the rationale.

Supplier Override
SUP-01 Cascade Distribution Orders >500 units need 48h notice or they auto-split into two shipments — add to lead-time math for large POs.
SUP-02 Alpine Wholesale Closed Dec 20 – Jan 3. POs in that window aren't acknowledged until Jan 4. Land holiday replenishment before Dec 15.
SUP-03 Backcountry Supply Co Two short-ships on Tents & Shelter this year. Prefer an alternate for that category if lead is comparable.
SUP-04 Sierra Outfitters Unlisted 3% price break at 250+ units. If recommended qty is 200–249, often worth rounding up.
SUP-05 Granite Gear Partners West-coast DC only. Add 2–3 days to catalog lead time for WH-EAST deliveries.
SUP-07 Ridgecrest Imports Import-only; lead times are port-congestion sensitive. Don't rely on stated lead for an urgent order.
SUP-09 Summit Source MOQ is enforced strictly — they reject (not round up) below-MOQ POs.
SUP-12 Trailhead Mercantile New on roster. Treat reliability as one notch lower than stated until 6 months of history.

Warehouse lead-time adjustments

  • WH-WEST (Reno): most suppliers ship from east-coast DCs — add +2 days to catalog lead time as a rule of thumb unless a supplier note says otherwise.
  • WH-EAST (Carlisle): two-shift receiving dock; best destination for an expedited PO that needs same-day inbound scheduling.
  • WH-CENTRAL (Kansas City): overflow / transfer hub. If you're sourcing an inter-warehouse transfer rather than a PO, WH-CENTRAL is almost always the origin.

Expedite override

If the reorder-policy skill flagged expedite, ignore the score and pick the supplier with the lowest lead_time_days whose min_order_qty ≤ your target order qty.

Output

Return {"supplier_id": "SUP-03", "unit_price": 21.40, "lead_time_days": 7, "score": 0.81} and use that supplier_id in the PO.

版本历史

  • 059482d 当前 2026-07-24 12:31

同 Skill 集合

agent-decomposition/.claude/skills/forecasting/SKILL.md
agent-decomposition/.claude/skills/notify-templates/SKILL.md
agent-decomposition/.claude/skills/reorder-policy/SKILL.md
agent-decomposition/.claude/skills/submit-solution/SKILL.md
agent-decomposition/.claude/skills/weekly-report/SKILL.md
research-desk/.claude/skills/workshop/SKILL.md
research-desk/skills/edgartools/SKILL.md
agent-battle/skills/mining/SKILL.md

元信息

文件数
0
版本
059482d
Hash
0d4f991c
收录时间
2026-07-24 12:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 23:59
浙ICP备14020137号-1 $访客地图$