Логотип Stockout Prevention

Stockout Prevention

Організація
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.

Огляд

Видавецьamzn
Репозиторійselling-partner-agentic-toolkit
Назва навичкиstockout-prevention
Зірки
38
Форки
5
Файли в пакеті
3
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: amzn. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Stockout Prevention у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Stockout Prevention в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Stockout Prevention, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Stockout Prevention не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Stockout Prevention у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Stockout Prevention — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Stockout Prevention у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Stockout Prevention?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Stockout Prevention?

Зі скількома забажаєте. У TypingMind ви можете використовувати Stockout Prevention із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Stockout Prevention?

Так. На GitHub цю навичку публікує amzn за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇