Algo Sc Newsvendor
Solve the newsvendor problem for single-period ordering decisions under uncertain demand. Use this skill when the user needs to determine optimal order quantity for perishable goods, seasonal products, or one-time purchase decisions — even if they say 'how much to order for this season', 'perishable inventory', or 'single-period ordering'.
Install
npx skills add asgard-ai-platform/skills --skill algo-sc-newsvendorgit clone --depth 1 https://github.com/asgard-ai-platform/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/algo-sc-newsvendor ~/.claude/skills/algo-sc-newsvendorPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Newsvendor Model ## Overview The newsvendor model determines optimal order quantity for a single selling period with uncertain demand. Balances overage cost (Co = cost - salvage) against underage cost (Cu = price - cost). Optimal Q* satisfies: P(D ≤ Q*) = Cu / (Cu + Co). Known as the critical ratio solution. ## When to Use **Trigger conditions:** - One-time or seasonal purchasing decisions (fashion, holiday goods, event tickets) - Perishable products with no restocking opportunity - Setting initial stocking levels before demand is observed **When NOT to use:** - For continuous replenishment with stable demand (use EOQ) - When backorders are acceptable and demand carries over (multi-period models) ## Algorithm ``` IRON LAW: The Critical Ratio Determines Optimal Service Level Q* = F⁻¹(Cu / (Cu + Co)) where F⁻¹ is the inverse demand CDF. If margin is high relative to cost (Cu >> Co), order MORE (high service level). If margin is low relative to excess cost (Co >> Cu), order LESS (low service level). The optimal solution almost NEVER equals expected demand. ``` ### Phase 1: Input Validation Define: unit cost (c), selling price (p), salvage value (v), demand distribution (mean μ, std σ). Compute: Cu = p - c, Co = c - v. **Gate:** p > c > v (profitable with positive overage cost), demand distribution estimated. ### Phase 2: Core Algorithm 1. Critical ratio: CR = Cu / (Cu + Co) = (p - c) / (p - v)
Details
- Skill name
algo-sc-newsvendor- Repository
- asgard-ai-platform/skills
- Path
algo-sc-newsvendor/SKILL.md- License
- MIT
- Repo updated
- 6 June 2026
FAQ
What does the Algo Sc Newsvendor skill do?
Solve the newsvendor problem for single-period ordering decisions under uncertain demand. Use this skill when the user needs to determine optimal order quantity for perishable goods, seasonal products, or one-time purchase decisions — even if they say 'how much to order for this season', 'perishable inventory', or 'single-period ordering'.
How do I install the Algo Sc Newsvendor skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add asgard-ai-platform/skills --skill algo-sc-newsvendor. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Algo Sc Newsvendor 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'.
Algo Sc Routing
248asgard-ai-platform/skills
Solve vehicle routing problems to optimize delivery routes under capacity and time constraints. Use this skill when the user needs to plan delivery routes, minimize transportation costs, or optimize fleet utilization — even if they say 'delivery route optimization', 'fleet routing', or 'minimize driving distance'.
Algo Sc Eoq
248asgard-ai-platform/skills
Calculate Economic Order Quantity to minimize total inventory cost (ordering + holding). Use this skill when the user needs to determine optimal order size, balance ordering frequency against storage costs, or set reorder points — even if they say 'how much to order', 'optimal batch size', or 'inventory cost minimization'.
Biz Toc
248asgard-ai-platform/skills
Apply Theory of Constraints (TOC) to identify and manage system bottlenecks. Use this skill when the user needs to find what limits throughput, optimize a constrained process, apply the Five Focusing Steps, or implement Drum-Buffer-Rope scheduling — even if they say 'our output is stuck', 'what's the bottleneck', or 'why can't we produce more'.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.