Logo de Stockout Prevention

Stockout Prevention

Organização
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.

Visão geral

Publicado poramzn
Repositórioselling-partner-agentic-toolkit
Nome da habilidadestockout-prevention
Estrelas
38
Forks
5
Arquivos incluídos
3
LicençaApache-2.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 3

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por amzn no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Stockout Prevention no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Stockout Prevention em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Stockout Prevention automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Stockout Prevention não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Stockout Prevention faz?

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.

Por que usar Stockout Prevention no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Stockout Prevention é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Stockout Prevention no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/amzn/selling-partner-agentic-toolkit/tree/main/skills/stockout-prevention. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Stockout Prevention?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Stockout Prevention?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Stockout Prevention com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Stockout Prevention é gratuita?

Sim. A habilidade é publicada no GitHub por amzn sob a licença Apache-2.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇