Logo: Stockout Prevention

Stockout Prevention

Organisatioun
amzn
stockout-prevention

Monitors FBA inventory health, identifies stockout risks from sales velocity, and orchestrates prevention actions — primarily inbound-shipment gap analysis and restocking. Triggers on: inventory check, stockout risk, FBA stock levels, days of cover, days of supply, replenishment, "am I going to run out". Do NOT use for: catalog management, new product listings, advertising, or order fulfillment.

Iwwersiicht

Editeuramzn
Repositoryselling-partner-agentic-toolkit
Skill-Nummstockout-prevention
Stären
38
Forks
5
Matgeliwwert Dateien
3
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    amzn huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Stockout Prevention an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amzn/selling-partner-agentic-toolkit.git /tmp/selling-partner-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/selling-partner-agentic-toolkit/skills/stockout-prevention .claude/skills/stockout-prevention
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Stockout Prevention an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Stockout Prevention automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Stockout Prevention net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Stockout Prevention Skill

Description

Helps a Fulfilled-by-Amazon seller stay ahead of stockouts. It pulls current FBA inventory, derives sales velocity, computes days of cover per SKU, checks whether inbound shipments arrive in time, and proposes preventive actions. Write actions (e.g. price changes) are always drafted for the seller's approval — never executed silently.

When to use this skill

Use when the seller asks anything about inventory health, running out of stock, replenishment timing, or "what should I prioritize" for their FBA stock. Do not use for listing content, advertising, or order management.

Tools this skill orchestrates

All are SP-API MCP tools served via the Amazon Selling Partner Connector (the amazon-selling-partner MCP server):

StepToolPurpose
InventoryfbaInventory_getInventorySummariesCurrent fulfillable units per SKU
Velocitysales_getOrderMetricsUnits sold over a window (per SKU when possible)
InboundfbaInbound_listInboundPlansIn-transit shipments + ETAs
Actionlistings_patchListingsItemDraft a price change (VALIDATION_PREVIEW first)

Every call needs entityId (the seller's merchant id) and marketplaceIds (e.g. ATVPDKIKX0DER for US). If you don't know the entityId, ask the seller once and reuse it for the session.

Workflow (Pipeline + Inversion — ask before acting)

Step 1 — Assess inventory

Call fbaInventory_getInventorySummaries (granularityType Marketplace). Record sellerSku, productName, and fulfillableQuantity for each SKU.

Step 2 — Measure velocity

For each SKU with meaningful stock, call sales_getOrderMetrics over the last 30 days (granularity: Total, pass the sku). Compute:

avg_daily_units = unitCount / 30
days_of_cover   = fulfillableQuantity / avg_daily_units

Step 3 — Classify risk

  • CRITICAL — days_of_cover < 7
  • WARNING — 7 ≤ days_of_cover < 21
  • HEALTHY — days_of_cover ≥ 21 (do not flag these; say they look fine)

Reconciling with Amazon's canonical rule. Amazon's own analysis rule is days of supply < 14 → at risk. These bands are intentionally more conservative: 7–14 is the canonical at-risk range, and 14–21 is an early-warning buffer this skill adds so a fast-moving SKU is caught before it crosses 14. For a SKU in the 14–21 range, say it is approaching risk — not yet at-risk by Amazon's rule — rather than implying it already breached the threshold.

Present a short table: SKU · fulfillable · ~daily sales · days of cover · status.

Step 3b — Visualize the risk (render a chart artifact)

After the table, create a visual artifact so the seller can see the risk at a glance. Render an HTML/JS artifact (a single self-contained file) with a days-of-cover bar chart:

  • one bar per SKU, height = days of cover;
  • color each bar by status — red = CRITICAL (<7), amber = WARNING (7–21), green = HEALTHY (≥21);
  • draw a dashed threshold line at 7 and 21 days; label each bar with the SKU and its day count. Keep it clean and legible (large fonts, title "Days of Cover by SKU"). Use inline SVG or a lightweight chart approach — no external network calls.

Step 4 — Check the inbound pipeline (only for flagged SKUs)

Call fbaInbound_listInboundPlans. For each flagged SKU, find any in-transit shipment containing it and read its estimatedDeliveryWindow. Compute the gap:

stockout_date    = today + days_of_cover
shipment_arrives = estimatedDeliveryWindow.start
gap_days         = shipment_arrives - stockout_date   (positive = will stock out first)

Call this out explicitly: "You'll run out ~N days before the next shipment lands."

Step 4b — Visualize the gap (render a timeline artifact)

For the most critical SKU, create a second visual artifact: a horizontal timeline showing today, the projected stockout date, and the shipment arrival window — with the at-risk gap between stockout and arrival shaded red and labeled "~N days out of stock". Title it "Stockout vs. Inbound Shipment". Self-contained, no network calls.

Step 5 — Recommend options (for CRITICAL SKUs with a gap)

Offer concrete choices, each with its trade-off. Lead with the actions Amazon's own inventory guidance points to. Do not raise pricing as an option at all — this skill gives no pricing advice in either direction (see Step 6 if the seller names a price).

  • A. Get more units in, sooner — expedite an existing inbound shipment or create a new one so stock lands before the run-out date (this is where the fba-inbound-management skill takes over). This is the primary lever.
  • B. Accept the stockout and plan the recovery — note the cost (lost sales, BSR/rank recovery, and that running very lean can trigger the low-inventory-level fee), and line up the restock so it doesn't repeat.

Then ask the seller what else they'd like to explore rather than steering them:

"Would you like to look at anything else — for example some quick market research on demand, competing offers, or seasonality for this SKU — before deciding?" If they'd like it, offer market research (demand, seasonality, competing offers) using the analytics and catalog data available, so any decision is informed. Report what the data shows; do not translate it into a pricing recommendation.

If the seller raises price themselves, do not advise for or against it and do not discuss trade-offs. If they name a specific price, go to Step 6 and draft exactly that. If they ask whether they should change price, say pricing is their decision and this skill doesn't advise on it, then return to the restock options above.

Step 6 — Draft actions (DO NOT EXECUTE without approval)

Only if the seller has named a specific price, call listings_patchListingsItem with mode: VALIDATION_PREVIEW so nothing changes yet. Show them, as a numbered list:

  • exact SKU, current → the price they specified

Draft only. Add no commentary on whether the price is advisable, no projected effect, and no revert date — if the seller wants a revert, they will say so.

Then WAIT for the seller to type "approve" (or adjust). Never re-run the patch in live mode unless they explicitly approve.

Step 7 — Summarize

Recap what was found, what (if anything) was drafted, and the single most important next action. Keep it short and seller-friendly.

Guardrails

  • Give no pricing guidance, in either direction. Never suggest raising or lowering a price, never present a price change as an option, and never comment on whether a price the seller names is wise, safe, or advisable. Coming from Amazon, pricing advice carries implications this skill must not create. Lead with getting units in sooner. If the seller names a specific price, draft exactly that, mechanically, per price-change-guardrails.md; if they ask for advice, say pricing is their decision and this skill doesn't advise on it.
  • Read-only by default. The only write tool is listings_patchListingsItem, and it is run in VALIDATION_PREVIEW until the seller approves.
  • Never invent inventory or sales numbers — only report what the tools return.
  • If a healthy SKU comes back, say so plainly; do not manufacture risk.

References

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Stockout Prevention?

Monitors FBA inventory health, identifies stockout risks from sales velocity, and orchestrates prevention actions — primarily inbound-shipment gap analysis and restocking. Triggers on: inventory check, stockout risk, FBA stock levels, days of cover, days of supply, replenishment, "am I going to run out". Do NOT use for: catalog management, new product listings, advertising, or order fulfillment.

Firwat Stockout Prevention op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Stockout Prevention besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Stockout Prevention an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Stockout Prevention benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Stockout Prevention benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Stockout Prevention domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Stockout Prevention gratis?

Jo. amzn huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇