safety-stock-calculator
Dynamic safety stock and reorder point optimization skill based on demand variability, lead times, and service level targets
Best use case
safety-stock-calculator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Dynamic safety stock and reorder point optimization skill based on demand variability, lead times, and service level targets
Teams using safety-stock-calculator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/safety-stock-calculator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How safety-stock-calculator Compares
| Feature / Agent | safety-stock-calculator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Dynamic safety stock and reorder point optimization skill based on demand variability, lead times, and service level targets
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 accuracyRelated Skills
typography-calculator
Calculate typography scales, metrics, and responsive font sizing
Safety System Skill
Robot safety system design and validation for industrial and collaborative robots
prioritization-calculator
Automated calculation and scoring for product prioritization frameworks including RICE, ICE, MoSCoW, and custom weighted scoring. Normalizes scores, validates inputs, and generates priority rankings with confidence intervals.
patient-safety-event-analysis
Investigate patient safety events using RCA, FMEA, and other systematic analysis methods to identify contributing factors and develop corrective actions
power-analysis-calculator
Skill for statistical power analysis and sample size calculation
vasp-dft-calculator
VASP DFT calculation skill for electronic structure, band structures, and materials property predictions
madgraph-amplitude-calculator
MadGraph matrix element calculation skill for BSM physics, cross-section computation, and event generation
camb-cosmology-calculator
CAMB cosmological perturbation skill for CMB power spectra, matter power spectra, and cosmological parameter estimation
power-sample-size-calculator
Statistical power analysis and sample size determination
takt-time-calculator
Takt time and cycle time analysis skill for production line balancing and capacity planning.
niosh-lifting-calculator
NIOSH Lifting Equation calculator for manual material handling risk assessment.
asymptotic-notation-calculator
Automated derivation and simplification of Big-O, Big-Omega, and Big-Theta expressions for algorithm analysis