Algo Sc Safety Stock
Calculate safety stock levels to buffer against demand and lead time uncertainty. Use this skill when the user needs to set inventory buffers, determine service level trade-offs, or optimize safety stock across SKUs — even if they say 'how much buffer inventory', 'stockout prevention', or 'service level calculation'.
Install
npx skills add asgard-ai-platform/skills --skill algo-sc-safety-stockgit clone --depth 1 https://github.com/asgard-ai-platform/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/algo-sc-safety-stock ~/.claude/skills/algo-sc-safety-stockPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Safety Stock Calculation ## Overview Safety stock is buffer inventory held to protect against demand and lead time variability. Formula: SS = z × √(LT × σ²_d + d² × σ²_LT) where z=service factor, LT=lead time, σ_d=demand std dev, d=avg demand, σ_LT=lead time std dev. Directly trades inventory cost against stockout risk. ## When to Use **Trigger conditions:** - Setting inventory buffers for variable-demand items - Choosing target service levels and computing required safety stock - Optimizing safety stock across a portfolio of SKUs **When NOT to use:** - When demand is deterministic (use EOQ without safety stock) - For one-time purchase decisions (use newsvendor model) ## Algorithm ``` IRON LAW: Safety Stock Is a TRADE-OFF, Not a Target More safety stock = fewer stockouts but higher holding cost. The relationship is non-linear: going from 95% to 99% service level roughly DOUBLES safety stock. Going from 99% to 99.9% doubles it again. Always quantify the cost of each service level increment. z-values: 90%→1.28, 95%→1.65, 99%→2.33, 99.9%→3.09. ``` ### Phase 1: Input Validation Collect: historical demand data (weekly/monthly), lead time data (average and variability), target service level, unit cost and holding rate. **Gate:** Minimum 12 periods of demand data, lead time estimates available. ### Phase 2: Core Algorithm 1. Compute demand statistics: average demand (d), demand standard deviation (σ_d)
Details
- Skill name
algo-sc-safety-stock- Repository
- asgard-ai-platform/skills
- Path
algo-sc-safety-stock/SKILL.md- License
- MIT
- Repo updated
- 6 June 2026
FAQ
What does the Algo Sc Safety Stock skill do?
Calculate safety stock levels to buffer against demand and lead time uncertainty. Use this skill when the user needs to set inventory buffers, determine service level trade-offs, or optimize safety stock across SKUs — even if they say 'how much buffer inventory', 'stockout prevention', or 'service level calculation'.
How do I install the Algo Sc Safety Stock skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add asgard-ai-platform/skills --skill algo-sc-safety-stock. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Algo Sc Safety Stock popular?
It lives in asgard-ai-platform/skills, which has 248 GitHub stars and 30 forks.
Related skills
Algo Ad Bidding
248asgard-ai-platform/skills
Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the user needs to choose a bidding strategy, set up automated bidding, or optimize bid parameters — even if they say 'what bidding strategy should I use', 'target CPA setup', or 'smart bidding configuration'.
Algo Ad Budget
248asgard-ai-platform/skills
Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to distribute budget across multiple campaigns, optimize spend pacing, or maximize overall ROAS under budget constraints — even if they say 'how to split my ad budget', 'campaign budget optimization', or 'diminishing returns on ad spend'.
Algo Ad Ctr
248asgard-ai-platform/skills
Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict click probability, build an ad ranking model, or evaluate ad creative performance — even if they say 'predict click rate', 'ad relevance scoring', or 'which ad will get more clicks'.
Biz Bcg Matrix
248asgard-ai-platform/skills
Apply BCG Growth-Share Matrix to analyze a product or business unit portfolio for resource allocation decisions. Use this skill when the user needs to prioritize investments across multiple products, decide which products to grow vs harvest vs divest, or evaluate a portfolio's balance — even if they say 'which products should we invest in' or 'portfolio strategy' without naming BCG.
Algo Risk Var
248asgard-ai-platform/skills
Calculate Value at Risk to estimate maximum portfolio loss at a given confidence level. Use this skill when the user needs to quantify downside risk, set risk limits, or report regulatory risk measures — even if they say 'worst case loss', 'portfolio risk', or 'how much could we lose'.
Biz Dcf
248asgard-ai-platform/skills
Build Discounted Cash Flow (DCF) valuation models to estimate intrinsic value. Use this skill when the user needs to value a company, evaluate an investment, estimate fair share price, or build financial projections — even if they say 'what is this company worth', 'should we acquire them', or 'build me a valuation model'.
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.