mcpField
S
supply-chain-optimizer

supply-chain-optimizer

github.com/travisjneuman其他106337 次安装1 天前更新
代码仓库

关于 supply-chain-optimizer

面向供应链分析、库存管理和物流规划的参考技能,提供可复用的计算框架、评估矩阵与 KPI 模板。内容覆盖供应商评价、需求预测、运输选择和风险缓解。

主要功能

  1. 01供应链端到端映射
  2. 02EOQ、安全库存与补货点计算
  3. 03ABC-XYZ 库存分类
  4. 04供应商评分卡与绩效跟踪
  5. 05需求预测方法与准确度指标
  6. 06物流优化及风险评估

适用场景

  1. 01计算库存补货量和安全库存
  2. 02比较供应商总拥有成本与绩效
  3. 03选择需求预测方法并衡量误差
  4. 04识别供应链风险并规划缓解措施

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/travisjneuman/.claude --skill supply-chain-optimizer

安装后在 Claude Code 中输入/supply-chain-optimizer确认已加载。

详细介绍

供应链优化器

用于供应链分析、库存管理、物流优化和供应商评估的综合框架。

供应链映射模板

端到端供应链图
RAW MATERIALS → SUPPLIERS → MANUFACTURING → DISTRIBUTION → CUSTOMER

MAPPING STEPS:
1. Identify all nodes (suppliers, plants, warehouses, customers)
2. Map material flows between nodes
3. Map information flows (orders, forecasts, POs)
4. Map financial flows (payments, invoicing)
5. Record lead times at each stage
6. Identify bottlenecks and single points of failure

NODE DETAIL TEMPLATE:
| Node           | Type       | Location  | Lead Time | Capacity | Utilization |
| -------------- | ---------- | --------- | --------- | -------- | ----------- |
|                | Supplier   |           |           |          |             |
|                | Plant      |           |           |          |             |
|                | Warehouse  |           |           |          |             |
|                | DC         |           |           |          |             |

库存优化

经济订货量(EOQ)
EOQ = sqrt(2DS / H)

Where: D = Annual demand, S = Ordering cost/order, H = Holding cost/unit/year
Total Cost = (D/Q)S + (Q/2)H + DC

Example: D=10,000, S=$50, H=$5 → EOQ = 447 units, 22.4 orders/year
安全库存与再订货点
SAFETY STOCK: SS = z x sigma_dLT
REORDER POINT: ROP = (Avg Daily Demand x Lead Time) + Safety Stock

SERVICE LEVEL FACTORS:
| Service Level | z-Score | Use Case          |
| ------------- | ------- | ----------------- |
| 90.0%         | 1.28    | Basic coverage    |
| 95.0%         | 1.65    | Standard          |
| 99.0%         | 2.33    | High service      |
| 99.9%         | 3.09    | Critical items    |
库存 KPI 仪表板
指标公式目标
库存周转率COGS / 平均库存因行业而异
供货天数平均库存 / (COGS / 365)尽可能低
订单满足率完整履行的订单数 / 总订单数97%+
缺货率缺货事件数 / 总需求事件数< 2%
库存持有成本 %持有成本 / 平均库存价值15-30%
滞销库存 %无流动商品数 / SKU 总数< 5%
库存准确率盘点正确次数 / 盘点总次数99%+
GMROI毛利 / 平均库存成本> 2.0

ABC-XYZ 分析框架

ABC CLASSIFICATION (Value):
A Items: Top 20% of SKUs = ~80% of annual consumption value
  → Tight control, frequent review, accurate forecasts
B Items: Next 30% of SKUs = ~15% of value
  → Moderate control, periodic review
C Items: Bottom 50% of SKUs = ~5% of value
  → Minimal control, simple replenishment rules

XYZ CLASSIFICATION (Demand Variability):
X: Coefficient of Variation < 0.5 → Stable, predictable demand
Y: CV between 0.5 and 1.0 → Some variation, trend/seasonal
Z: CV > 1.0 → Highly irregular, sporadic demand

COMBINED MATRIX:
| Class | AX         | AY           | AZ            |
| ----- | ---------- | ------------ | ------------- |
| Strat | JIT/Kanban | Forecast     | Order on demand|
| Class | BX         | BY           | BZ            |
| Strat | Reorder pt | Buffer stock | Min/Max       |
| Class | CX         | CY           | CZ            |
| Strat | Bulk buy   | Periodic rev | Eliminate?     |

供应商评分卡

供应商评估矩阵
标准权重评分(1-5)加权得分备注
质量(PPM)25%
交付(OTIF)20%
定价20%
响应能力10%
财务状况10%
创新5%
可持续性5%
风险状况5%
总计100%__ / 5.0
RATING SCALE:
4.5-5.0  Strategic Partner — expand relationship
3.5-4.4  Preferred Supplier — maintain, develop
2.5-3.4  Approved Supplier — improvement plan required
< 2.5    Probation / Exit — find alternative
供应商绩效跟踪
KPI目标Q1 实际值Q2 实际值Q3 实际值Q4 实际值趋势
准时交付98%+
质量(PPM)< 500
交货周期(天)
价格偏差+/- 2%
响应时间(小时)< 24
纠正措施< 2/qtr

总拥有成本(TCO)

TCO = Acquisition Costs + Operating Costs + Disposal Costs

ACQUISITION COSTS:
  Purchase price
+ Shipping / freight
+ Customs / duties / tariffs
+ Procurement labor
+ Quality inspection
+ Supplier qualification
= Total Acquisition

OPERATING COSTS (over useful life):
  Maintenance & repair
+ Inventory carrying cost
+ Warranty claims
+ Downtime cost (if component fails)
+ Training / support
+ Quality failures (scrap, rework)
= Total Operating

DISPOSAL COSTS:
  Decommissioning
+ Recycling / disposal fees
+ Environmental compliance
= Total Disposal

TCO = Total Acquisition + Total Operating + Total Disposal
TCO 比较模板
成本要素供应商 A供应商 B供应商 C
单价
运费
关税 / 进口税
质量成本(估算)
库存持有成本
交货周期成本
风险溢价
单位 TCO
年度 TCO

需求预测方法

方法适用场景预测周期所需数据
移动平均需求稳定短期3-12 个周期的历史数据
指数平滑趋势检测短期加权近期数据
Holt-Winters季节性模式中期2 年以上的季节性数据
线性回归带有因果因素的趋势中期需求数据 + 驱动因素
ARIMA复杂时间序列短至中期50 个以上的数据点
机器学习多变量模式任意大型数据集
Delphi / 专家法新产品、突发事件长期专家小组
预测准确度指标
MAD (Mean Absolute Deviation):
MAD = (1/n) x SUM(|Actual - Forecast|)

MAPE (Mean Absolute Percentage Error):
MAPE = (1/n) x SUM(|Actual - Forecast| / Actual) x 100

BIAS (Tracking Signal):
Bias = SUM(Actual - Forecast) / MAD
Target: Between -4 and +4

ACCURACY BENCHMARKS:
| Forecast Horizon | Good MAPE | Acceptable MAPE |
| ---------------- | --------- | --------------- |
| 1 month          | < 15%     | < 25%           |
| 3 months         | < 25%     | < 35%           |
| 6 months         | < 30%     | < 45%           |
| 12 months        | < 35%     | < 50%           |

物流优化

运输方式选择
方式单位成本速度运力适用场景
卡车中快中区域运输、门到门运输
铁路低慢很高散装货物、国内长途运输
海运很低很慢很高国际运输、散装货物
空运很高很快低高价值、紧急、易腐货物
多式联运低至中中高长途运输、经济高效
仓库布局优化
SLOTTING STRATEGY:
Fast movers (A items) → Near shipping dock, prime pick locations
Medium movers (B items) → Middle zones
Slow movers (C items) → High racks, far locations

LAYOUT PRINCIPLES:
1. Minimize travel distance for highest-velocity items
2. Group items frequently ordered together
3. Separate receiving and shipping areas
4. Reserve staging areas for cross-docking
5. Maintain clear aisle widths for equipment

前置时间分析

TOTAL LEAD TIME:
Order Processing Time
+ Supplier Manufacturing Time
+ Transportation Time
+ Receiving / Inspection Time
+ Internal Processing Time
= Total Lead Time

LEAD TIME VARIABILITY:
Track actual vs. quoted lead times over 12+ orders
Calculate standard deviation
Use for safety stock calculations

LEAD TIME REDUCTION STRATEGIES:
| Strategy              | Typical Reduction | Effort    |
| --------------------- | ----------------- | --------- |
| Vendor-managed inv.   | 30-50%            | Medium    |
| Local sourcing        | 40-70%            | High      |
| Process automation    | 10-30%            | Medium    |
| Blanket POs           | 20-40%            | Low       |
| Consignment stock     | 50-80%            | Medium    |
| 3PL consolidation     | 10-25%            | Low       |

供应链风险评估

风险识别矩阵
风险类别风险事件可能性影响评分缓解措施
供应单一来源故障双重来源
需求需求激增/骤降缓冲库存、灵活调整
物流港口拥堵替代路线
地缘政治关税、制裁近岸外包
自然灾害地震、洪水地理多元化
网络安全系统遭入侵安全协议
质量批次故障检验、冗余
财务供应商破产财务监控
RISK SCORING:
Likelihood: 1 (Rare) to 5 (Almost Certain)
Impact: 1 (Negligible) to 5 (Catastrophic)
Risk Score = Likelihood x Impact

ACTION THRESHOLDS:
20-25  Critical — immediate action, executive attention
12-19  High — mitigation plan required within 30 days
6-11   Medium — monitor quarterly, contingency plans
1-5    Low — accept or monitor annually

KPI 仪表板模板

类别KPI目标
成本供应链成本占收入的比例5-10%
成本每笔订单成本尽可能降低
服务完美订单率95%+
服务按时足量交付率(OTIF)98%+
服务客户订单满足率97%+
效率库存周转率因行业而异
效率现金周转周期尽可能缩短
效率仓库利用率85%
效率预测准确度(MAPE)< 20%

另请参阅

评论

支持 Markdown