Agent skill

economic-order-quantity

When the user wants to calculate optimal order quantities, minimize total inventory costs using EOQ models, or determine the economic lot size. Also use when the user mentions "EOQ," "Wilson formula," "economic lot size," "order quantity optimization," "production batch size," "quantity discounts," "EPQ" (Economic Production Quantity), "backorder models," or "reorder point calculations." For multi-echelon systems, see multi-echelon-inventory. For stochastic models, see stochastic-inventory-models.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill economic-order-quantity-kishorkukreja-awesome-supply-chain --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 45 KB
Bundled scripts: none
Path: skills/analysis/economic-order-quantity-kishorkukreja-awesome-supply-chain/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Instructs the agent to optimize order quantities to minimize total inventory costs by balancing ordering/setup costs and holding costs using EOQ models. It covers classic EOQ, a Python implementation, cost components, and extensions like quantity discounts and reorder-point calculations.

How it works

  • It defines the Classic EOQ problem: minimize TC(Q) = Purchase Cost + Ordering Cost + Holding Cost, with TC(Q) = DC + (D/Q)S + (Q/2)H, and EOQ = sqrt(2DS/H).
  • It computes key outputs: EOQ, orders per year, cycle time, total annual cost, purchase cost, ordering cost, holding cost, relevant cost, average inventory and value, and max inventory.
  • It provides a Python implementation class EOQModel that initializes with annual_demand, unit_cost, ordering_cost, and holding_cost_rate. It derives H = unit_cost * holding_cost_rate and returns a dictionary with EOQ metrics via calculate_eoq().
  • It includes a sensitivity_analysis method to vary a parameter (demand, ordering_cost, holding_rate, unit_cost) and produce a DataFrame of outcomes.
  • It includes a plot_cost_curve to visualize cost versus Q and mark the EOQ.
  • It offers a reorder_point method to compute reorder point given lead time and safety stock.
  • It includes an example function example_basic_eoq that demonstrates creating the model, computing EOQ, printing a cost breakdown, computing a reorder point for a 14-day lead time, and plotting the cost curve.
  • It extends to EOQ with quantity discounts (All-Units Discount Model). The class EOQWithQuantityDiscounts evaluates price breaks, computes EOQ at each price, determines feasible quantities, and returns candidate options with costs and orders per year, selecting the optimal by total cost. It also computes savings vs. no discount against the highest price.

When to use it

Use when the user wants to calculate optimal order quantities to minimize total inventory costs or determine the economic lot size. It is applicable when the user references EOQ, Wilson formula, economic lot size, order quantity optimization, production batch size, quantity discounts, EPQ, backorder models, or reorder point calculations.

What it can touch

  • Variables and parameters in the formulations:
    • Annual demand (D)
    • Unit cost (C)
    • Ordering cost per order (S)
    • Holding cost rate (r) and derived H = C * r
  • Outputs including EOQ, orders_per_year, cycle_time_days, total_annual_cost, purchase_cost, ordering_cost, holding_cost, relevant_cost, avg_inventory, avg_inventory_value, max_inventory, reorder_point.
  • For discount model: price_breaks as [(min_qty, unit_price), ...] and calculations of feasible quantities, total costs, and optimal candidate.

Caveats

  • The model assumes constant demand and known parameters; baseline EOQ assumptions include constant demand, constant lead time, no stockouts, instantaneous replenishment, and no quantity discounts unless the discount model is used.
  • The provided Python code uses imports (numpy, pandas, matplotlib) and includes example usage; ensure dependencies are available in the environment where the skill runs.
  • The All-Units Discount model depends on the defined price breaks and may require handling of edge cases if breaks are not well-ordered or if EOQ calculations yield non-feasible quantities.
From the SKILL.md

# Economic Order Quantity (EOQ) You are an expert in Economic Order Quantity (EOQ) models and inventory lot-sizing optimization. Your goal is to help determine optimal order or production quantities that minimize total inventory costs by balancing ordering/setup costs with holding costs. ## Initial Assessment Before calculating EOQ, understand: 1. **Business Context** - What type of inventory? (raw materials, finished goods, components) - Current ordering practices? (fixed quantity, min/max, ad-hoc) - Primary cost concerns? (ordering, holding, stockouts) - Production or purchasing environment? 2. **Demand Characteristics** - Annual demand volume (units/year)? - Demand pattern? (constant, seasonal, deterministic vs. stochastic) - Demand rate stability? - Planning horizon? 3. **Cost Parameters** - Unit cost of item ($)? - Ordering cost per order ($) or setup cost per production run? - Inventory carrying/holding cost rate (% per year)? - Stockout or backorder costs (if applicable)? 4. **Operational Constraints** - Supplier minimum order quantities (MOQs)? - Quantity discounts available? - Storage capacity limitations? - Production rate constraints? - Lead time from supplier? --- ## EO

What's inside
Steps it walks through
  1. Initial Assessment
  2. EOQ Model Fundamentals
  3. Classic EOQ Model
  4. Total Cost Function
  5. EOQ Formula Derivation
  6. Python Implementation: Classic EOQ
  7. Basic EOQ Calculator
  8. EOQ with Quantity Discounts
  9. All-Units Discount Model
  10. Economic Production Quantity (EPQ)
  11. EPQ Model for Production Environments
  12. EOQ with Planned Backorders
  13. Backorder Model
  14. Tools & Libraries
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the economic-order-quantity skill do?

When the user wants to calculate optimal order quantities, minimize total inventory costs using EOQ models, or determine the economic lot size. Also use when the user mentions "EOQ," "Wilson formula," "economic lot size," "order quantity optimization," "production batch size," "quantity discounts," "EPQ" (Economic Production Quantity), "backorder models," or "reorder point calculations." For multi-echelon systems, see multi-echelon-inventory. For stochastic models, see stochastic-inventory-models.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill economic-order-quantity-kishorkukreja-awesome-supply-chain --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going