safety-stock-calculator
Dynamic safety stock and reorder point optimization skill based on demand variability, lead times, and service level targets
What this skill does
# Safety Stock Calculator
## Overview
The Safety Stock Calculator is a dynamic skill that optimizes safety stock levels and reorder points based on demand variability, lead time uncertainty, and service level targets. It uses statistical methods and optimization algorithms to balance inventory investment against stockout risk.
## Capabilities
- **Service Level to Safety Stock Conversion**: Calculate required safety stock to achieve target service levels using statistical methods
- **Lead Time Variability Modeling**: Incorporate lead time uncertainty into safety stock calculations
- **Demand Variability Analysis**: Analyze demand patterns and variability to determine appropriate buffer stock
- **Reorder Point Calculation**: Calculate optimal reorder points combining expected demand and safety stock
- **Order Quantity Optimization (EOQ)**: Determine economic order quantities balancing ordering and holding costs
- **Min/Max Parameter Setting**: Set minimum and maximum inventory parameters for replenishment systems
- **Multi-Echelon Inventory Optimization**: Optimize inventory across multiple distribution tiers
## Tools and Libraries
- Inventory Optimization Libraries
- scipy (statistical functions)
- pyomo (optimization)
- NumPy/Pandas
## Used By Processes
- Reorder Point Calculation
- Demand Forecasting
- ABC-XYZ Analysis
## Usage
```yaml
skill: safety-stock-calculator
inputs:
item:
sku: "SKU001"
unit_cost: 50.00
holding_cost_percent: 25
ordering_cost: 75.00
demand:
average_daily: 100
standard_deviation: 15
forecast_error_percent: 12
lead_time:
average_days: 5
standard_deviation_days: 1
service_level:
target_percent: 98.0
stockout_cost: 25.00
outputs:
calculations:
safety_stock_units: 87
reorder_point: 587
economic_order_quantity: 548
min_level: 587
max_level: 1135
inventory_parameters:
average_inventory: 361
annual_holding_cost: 4512.50
annual_ordering_cost: 4987.50
total_annual_cost: 9500.00
service_analysis:
expected_service_level: 98.2
expected_stockouts_per_year: 0.8
expected_stockout_quantity: 42
recommendations:
review_frequency: "daily"
next_review_date: "2026-01-26"
suggested_order_quantity: 548
```
## Integration Points
- Enterprise Resource Planning (ERP) Systems
- Inventory Management Systems
- Demand Planning Systems
- Procurement Systems
- Warehouse Management Systems (WMS)
## Performance Metrics
- Service level achievement
- Inventory turns
- Stockout frequency
- Excess inventory value
- Safety stock accuracy
Related in Sales & CRM
process-mapper
IncludedUse when a BizOps lead, COO, or process-improvement owner needs to document an end-to-end business process (procurement, employee onboarding, incident handoff, customer-onboarding, claims adjudication) in BPMN-style notation, measure cycle times by stage, surface where work spends most of its time waiting vs. being worked, and quantify the gap between processing time and total elapsed time. Pairs Lean / Six Sigma / Theory-of-Constraints canon with deterministic stdlib-only Python tools to produce a process map, a ranked bottleneck list (with severity + root-cause hypothesis), and a cycle-time analysis (P50, P90, value-add ratio, Little's-Law throughput). Distinct from sales-pipeline, system-reliability (SLO), and strategic-OKR work — this is tactical process documentation for internal operations.
payment-integration
IncludedIntegrate payments with SePay (VietQR), Polar, Stripe, Paddle (MoR subscriptions), Creem.io (licensing). Checkout, webhooks, subscriptions, QR codes, multi-provider orders.
customer-success-manager
IncludedMonitors customer health, predicts churn risk, and identifies expansion opportunities using weighted scoring models for SaaS customer success
sales-engineer
IncludedAnalyzes RFP/RFI responses for coverage gaps, builds competitive feature comparison matrices, and plans proof-of-concept (POC) engagements for pre-sales engineering. Use when responding to RFPs, bids, or proposal requests; comparing product features against competitors; planning or scoring a customer POC or sales demo; preparing a technical proposal; or performing win/loss competitor analysis. Handles tasks described as 'RFP response', 'bid response', 'proposal response', 'competitor comparison', 'feature matrix', 'POC planning', 'sales demo prep', or 'pre-sales engineering'.
customer-success-manager
IncludedMonitors customer health, predicts churn risk, and identifies expansion opportunities using weighted scoring models for SaaS customer success
sales-engineer
IncludedAnalyzes RFP/RFI responses for coverage gaps, builds competitive feature comparison matrices, and plans proof-of-concept (POC) engagements for pre-sales engineering. Use when responding to RFPs, bids, or proposal requests; comparing product features against competitors; planning or scoring a customer POC or sales demo; preparing a technical proposal; or performing win/loss competitor analysis. Handles tasks described as 'RFP response', 'bid response', 'proposal response', 'competitor comparison', 'feature matrix', 'POC planning', 'sales demo prep', or 'pre-sales engineering'.