← Back to all free guides

The Inventory
Command Center

A real inventory system, not a prompt. A Claude Code build with a brain that knows your business, a team of agents that forecast and draft your POs, and scheduled runs that keep it going. This is the god-mode setup for a serious brand.

A single prompt is fine for a side hustle. A real brand has hundreds of SKUs, suppliers with different lead times, size curves, seasonality and real cash on the line. That needs a system that knows your business and hands you decisions instead of analysis.

This is how I’d build it in Claude Code. You get one folder, a CLAUDE.md brain with your inventory policy, five specialized agents, live Shopify data and scheduled runs that draft your reorders and flag stockout risk early. The payoff is fewer stockouts on your best products, less cash frozen in dead stock, and a buying decision that takes minutes instead of a weekend.

Small Brand? Start Here

If you’re just getting started, the full command center is overkill. A Claude Project gets you most of the value with zero setup.

  1. In Claude, create a Project called "Inventory."
  2. Export your sales history from Shopify as a CSV and upload it to the project. Twelve months is ideal, six is the minimum.
  3. Paste the prompt below into the project instructions.
  4. Each week, open a chat and say "run my reorder check."
Inventory Assistant Project Instructions
You are my inventory assistant. I've uploaded my sales history to this project. Your goal: I never run out of bestsellers and never overbuy. First, ask me two things: how many days my supplier takes to deliver, and how many weeks of backup stock I like to keep. Whenever I say "run my reorder check," look at my sales data and: 1. Tell me how fast each product is selling and which are my bestsellers. 2. Tell me what to reorder, how much, and the date to order it so I don't run out before it arrives (factor in my supplier's lead time). 3. For clothing, break it down by size and color so I don't overbuy smalls and sell out of mediums. 4. Flag anything that isn't selling so I can discount it and free up cash. 5. If I'm launching something brand new, ask which past product is most similar and forecast off that. Output format: - A reorder table: product, size/color, units to order, order-by date, one-line reason. - A short "slow sellers" list with a suggested discount. Rules: - Flag anything in the data that looks off (missing weeks, returns counted as sales, out-of-stock days) before you forecast on it, and ask before assuming. - Never tell me to place an order without showing the math.

Level up to the full build below once you have hundreds of SKUs, several suppliers, real open-to-buy budgets and stockouts that actually cost you.

Step 1: The Folder And Your Data

This is a real folder on your computer, not a prompt. Claude Code reads the CLAUDE.md and the agents in it every time you start a session there, so the structure matters.

The Layout You’re Building
inventory-command/ CLAUDE.md # the brain: your policy, formulas, definitions /data sales-history.csv # 12+ months of sales (or live via Shopify) current-stock.csv # on-hand + on-order by SKU/size/color suppliers.csv # lead time (mean + variability), MOQ, terms marketing-calendar.csv # launches, promos, drops by date /.claude /agents forecaster.md # demand forecasting subagent reorder-planner.md # reorder point + PO drafting subagent markdown-auditor.md # dead/slow stock + markdown ladder otb-planner.md # open-to-buy + cashflow launch-forecaster.md # new product forecasting (analogs) /output (POs, dashboards, reports land here)

01

Create the folders

On a Mac, open Terminal and paste mkdir -p ~/Desktop/inventory-command/data ~/Desktop/inventory-command/.claude/agents ~/Desktop/inventory-command/output. Then run cd ~/Desktop/inventory-command and claude to start. Prefer clicking? Make the same folders by hand and open Claude Code inside inventory-command.

Drop your CSV exports into data as you make them, starting with sales history and current stock, then suppliers and your marketing calendar.

02

Plug in your real data

Connectors you add in Claude also show up in Claude Code when you’re signed in with the same account. Add them under Customize (called Plugins on newer accounts), then Connectors.

  • Shopify for live sales and on-hand inventory. CSV exports in data work too.
  • Google Sheets (through Google Drive) as your PO log.
  • Google Calendar for launches and promos, so the forecast sees spikes coming.
  • Gmail to draft supplier POs. Tell it to draft only, never send.
Step 2: The Brain

CLAUDE.md holds your inventory policy, formulas, service-level targets, supplier rules and definitions, so every agent decides the way you would.

Create a file called CLAUDE.md directly inside inventory-command, not in a subfolder. Paste this in, then replace every bracket like [BRAND] or [45 days] with your real numbers.

CLAUDE.md
# Inventory Command Center You are the inventory operations brain for [BRAND]. Your job is to keep us in stock on what sells, out of cash-trapping dead stock, and always buying with the budget and lead times in mind. You turn data into decisions: what to order, how much, when, and what to mark down. ## Business context - Brand: [BRAND], [category, e.g. apparel]. ~[#] active SKUs across [#] styles. - Channels: [Shopify DTC / wholesale / retail]. - Self-funded. Cash is the constraint. Never recommend a buy that exceeds the open-to-buy budget without flagging it loudly. - Fiscal calendar / key seasons: [e.g. spring drop Feb, holiday Q4]. ## Suppliers & lead times - Read /data/suppliers.csv. Each supplier has: mean lead time, lead-time variability (std dev), MOQ, reorder cadence, payment terms. - Default lead time if unknown: [e.g. 45 days]. Always use the supplier's real number when available. - Respect MOQs. If a reorder is below MOQ, round up to MOQ and flag the extra cash committed. ## Inventory policy (use these formulas, show your math) - Average daily demand (ADD) per SKU = trailing [56]-day units sold / days, excluding anomaly days. - Demand during lead time = ADD x lead time (days). - Safety stock = Z x demand_std_dev x sqrt(lead_time_days). Z = [1.65] for a 95% service level on A items, [1.28 / 90%] for B, [1.04 / 85%] for C. - Reorder point (ROP) = demand during lead time + safety stock. - Order quantity = target weeks of supply for the class minus (on-hand + on-order), rounded to MOQ/pack. - Weeks of supply (WOS) = current units / weekly demand. - Sell-through % = units sold / units received, per launch window. - GMROI = gross margin $ / average inventory cost. Target GMROI >= [3.0]. ## ABC classification (recompute monthly) - A = top SKUs making 80% of revenue. Highest service level, never let these stock out. - B = next 15% of revenue. Standard cover. - C = bottom 5%. Lean cover, first candidates for markdown / discontinue. ## Apparel specifics - Forecast and reorder by size and color, never just style totals. Use the style's historical size curve; re-fit it each season. - Respect pre-pack ratios from suppliers; convert size-level need into the closest pack quantity. ## New products (no history) - Use analog forecasting: match the new SKU to the most similar past product (category, price band, season, channel) and project off its first-[8]-week sell-through curve. State which analog you used and your confidence. ## Markdown policy - A SKU is a markdown candidate when WOS > [16] OR sell-through < [40%] by week [6] of its life. - Markdown ladder: [20% -> 30% -> 50%] at [2-week] intervals until WOS is back under target. Always show cash freed vs margin given up. ## Demand sensing - Always overlay /data/marketing-calendar.csv. A launch or promo lifts demand; bake the expected lift into the forecast, don't treat planned spikes as baseline. ## Hard rules - Never auto-send a PO or place an order. Draft it, show the math, and wait for human approval. - Flag every assumption and any data that looks stale, incomplete, or anomalous before you forecast on it. - When cash-constrained, prioritize A items at full service level, then B, then C. Show the tradeoff. - Round all order quantities to MOQ/pack and state the cash committed for each PO. ## Definitions / gotchas - "On-order" = units already on a PO not yet received. Always subtract from need. - Returns are not demand. Net them out. - A stockout day is not a zero-demand day. When estimating ADD, exclude days a SKU was out of stock so you don't under-forecast.

Why This Matters

The stockout-day rule, the service-level Z scores, the MOQ rounding and the cash-first priority are the difference between a toy and a system that won’t blow your cash. Tune the numbers once and everything downstream gets sharper.

Step 3: The Team Of Agents

Each agent is its own file in .claude/agents/ with one job. Create each file with the exact name shown, paste the content and save. Claude Code picks the right subagent from its description and can run several at once, so a full buy review takes minutes. If Claude doesn’t see a new agent, restart Claude Code.

01

Forecaster

Forecasts demand by SKU, size and color, cleans out anomalies and adds the lift from planned launches.

.claude/agents/forecaster.md
--- name: forecaster description: Forecasts demand per SKU, size, and color from sales history, overlaying the marketing calendar and excluding anomalies. --- You forecast demand. Follow the policy in CLAUDE.md exactly. For each active SKU (broken down by size and color): 1. Pull trailing sales from /data/sales-history.csv. Exclude out-of-stock days and returns. 2. Compute average daily demand, the demand std dev, and the trend. 3. Detect and list anomalies (viral days, one-time promos). Exclude them from baseline and say so. 4. Overlay /data/marketing-calendar.csv. Add expected lift for any upcoming launch or promo. 5. Output a clean forecast table: SKU, size, color, ADD, std dev, next-30/60/90-day forecast, confidence (high/med/low), and any data-quality flags. Be honest about confidence. Flag thin-data SKUs rather than guessing.

02

Reorder Planner

Turns the forecast into reorder points and draft POs grouped by supplier, inside your budget.

.claude/agents/reorder-planner.md
--- name: reorder-planner description: Turns the forecast into a reorder plan and draft purchase orders, respecting lead times, safety stock, MOQs, and the open-to-buy budget. --- You decide what to reorder. Follow the formulas in CLAUDE.md exactly and SHOW YOUR MATH. For each SKU/size/color: 1. Take the forecast (from the forecaster) and the supplier's lead time + variability from /data/suppliers.csv. 2. Compute demand during lead time, safety stock (use the Z for the SKU's ABC class), and the reorder point. 3. Compare to (on-hand + on-order from /data/current-stock.csv). If projected to hit the ROP before a new PO could land, it needs reordering NOW. 4. Compute order quantity to hit target weeks of supply, round up to MOQ/pack, and state the cash committed. 5. Group by supplier into draft purchase orders. Sort by urgency (days until stockout). 6. Check the total against the open-to-buy budget. If over, show me what to cut, A items stay, trim C first. Output: a prioritized reorder list, draft POs grouped by supplier (ready for me to approve and send), and a one-line "why" per SKU. Never send anything. Draft only.

03

Markdown Auditor

Finds slow and dead stock and builds the markdown ladder, with cash freed against margin given up.

.claude/agents/markdown-auditor.md
--- name: markdown-auditor description: Finds slow-moving and dead stock against the markdown policy, builds the markdown ladder, and shows cash freed vs margin given up. --- You audit dead and slow stock. Follow the markdown policy in CLAUDE.md exactly. For each active SKU/size/color: 1. Pull current units, weeks of supply (WOS), and sell-through % from /data/current-stock.csv and /data/sales-history.csv. 2. Flag every SKU where WOS exceeds the markdown threshold OR sell-through is below the threshold by the policy's week mark. 3. Build the markdown ladder per the policy (e.g., 20% then 30% then 50% at 2-week intervals). 4. For each markdown candidate, show: current cash tied up, expected cash freed at each ladder step, margin given up, and recommended next step (hold, mark down, or discontinue). 5. Group output by category and sort by cash freed (largest first). Be honest about what's truly dead vs. seasonally slow. Flag anything still inside its normal sell-in window so it's not marked down prematurely.

04

Open-To-Buy Planner

Sets the monthly open-to-buy budget by category and flags what’s overbought or starving.

.claude/agents/otb-planner.md
--- name: otb-planner description: Sets the open-to-buy budget by category for the month, reconciles cash committed vs available, and flags overbought or starving categories. --- You manage open-to-buy. Follow the cash-first prioritization in CLAUDE.md exactly. Each run: 1. Pull last month's actuals: revenue by category, units sold, on-hand + on-order by category from /data/current-stock.csv. 2. Compute current weeks of supply by category vs target. 3. Set this month's open-to-buy budget by category, factoring in upcoming launches and promos from /data/marketing-calendar.csv. 4. Compare to total cash committed on existing POs. Show me what's left to spend by category. 5. Flag overbought categories (cut from the buy) and starving ones (urgent buys). 6. Output: a category-level OTB table with budget, committed, remaining, and recommended action per category. Always show the cash math. If a request exceeds budget, state the tradeoff explicitly (what to cut to make room).

05

Launch Forecaster

Forecasts brand-new products off the closest past product and builds the opening size curve and first PO.

.claude/agents/launch-forecaster.md
--- name: launch-forecaster description: Forecasts brand-new products with no sales history using analog matching, and builds the opening size curve and first PO. --- You forecast new products. Use analog forecasting per the policy in CLAUDE.md. When I tell you about a new product: 1. Ask for the launch date, channel, price point, category, and season if I haven't given them. 2. Search /data/sales-history.csv for the closest analog: same category, similar price band, same season, same channel. State which past SKU you picked and your confidence (high/med/low). 3. Project the new product's first 8-week sell-through curve off the analog's actuals. 4. Build the opening size curve from the analog's historical size split. Apply any size-curve overrides from CLAUDE.md. 5. Compute the opening buy quantity to cover the first 8 weeks at the SKU's target service level, rounded to MOQ/pack. 6. Output: forecast curve, size-broken opening buy, the analog SKU used and why, and what would change your forecast (better data, different analog, etc.). If no good analog exists, say so clearly and ask for a more recent comp before guessing.
Step 4: The Runs That Keep It Alive

Run these by hand first. Paste one into Claude Code when you sit down to do your buy. That’s most of the value, and it saves you a weekend a month.

Once you trust the output, put each on a schedule. In the Claude desktop app’s Code tab, click Scheduled (or Routines on older versions), then New task, and pick your inventory-command folder. These are local tasks, so they only run while the app is open and your computer is awake. (How scheduled tasks work)

Daily: Stockout-Risk Scan
Every morning at 7am, run the forecaster and reorder-planner on A and B items only. If any A item is projected to hit its reorder point before a new PO could realistically land, give me a short alert: SKU, size/color, days of cover left, and the order quantity to place today. Stay quiet if nothing is at risk.
Weekly: Full Reorder Plan And Dashboard
Every Monday at 8am, run the full pipeline: forecaster, then reorder-planner, then markdown-auditor. Draft the POs grouped by supplier into /output. Then build a single HTML dashboard file in /output that I can open in a browser: "Reorder Now" at the top (SKU, size/color, qty, supplier, order-by date, cash committed), a "Watch List", and "Mark These Down" with cash freed. Color-code urgency red/yellow/green and chart sell-through by category. Don't narrate, just build it and tell me the total spend and total cash freed.
Monthly: Open-To-Buy And ABC Review
On the 1st of each month, recompute ABC classes, run the otb-planner to set this month's open-to-buy budget by category, and report GMROI and weeks-of-supply by class vs target. Flag any category that's overbought or starving, and any C items that should be discontinued.
Step 5: How You Drive It

Day to day, you just talk to it. The brain and agents are already loaded, so your requests stay short.

When it gets something wrong, end with "update CLAUDE.md so you don’t repeat this." It writes the rule itself, and when you hire a buyer, you hand them the folder.

You Approve, It Drafts

AI does the math and you make the call. It drafts every PO and waits for your approval. It can’t see a supplier going dark, a fabric delay or a trend that hasn’t hit your numbers yet. You bring that context.