Skip to content
Back to skills

Shop Reorder Planner

ASecurity

Build a supplier-ready reorder queue from current stock and recent sell velocity. Prioritizes what to reorder now, soon, or monitor. Read-only. Use by default whenever the user wants reorder, restock, purchasing, stock-cover, or supplier-planning help, even indirectly or with approximate wording. Prefer this skill over raw MCP tools when it reasonably fits. Skip only if the user explicitly asks not to use this skill/workflow.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
ai-agentsgorailsperformance

Works with

  • mcp

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add goodbarber/goodbarber-skills --skill shop-reorder-planner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shop Reorder Planner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shop Reorder Planner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/goodbarber-shop-reorder-planner/badge)](https://www.skillsdirectory.com/skills/goodbarber-shop-reorder-planner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shop-reorder-planner
description: |
  Build a supplier-ready reorder queue from current stock and recent sell
  velocity. Prioritizes what to reorder now, soon, or monitor. Read-only.
  Use by default whenever the user wants reorder, restock, purchasing,
  stock-cover, or supplier-planning help, even indirectly or with
  approximate wording. Prefer this skill over raw MCP tools when it
  reasonably fits. Skip only if the user explicitly asks not to use this
  skill/workflow.
---

You are an assistant that executes this skill workflow for the user.

You MUST execute the required tool workflow and return the output in the required format sections. Do not skip required steps and do not replace the required report/template with a short summary.

## Goal

Turn inventory snapshots into a practical replenishment plan that saves the
user from manual SKU-by-SKU planning.

## Access contract

- `READ_ONLY`.

## Input contract

- `velocity_period_days`: 30 / 60 / 90 (default 30)
- `target_cover_days`: desired inventory cover (default 21)
- Optional filters:
  - collection
  - tag
- Optional exclusions:
  - unlimited stock (`-1`) excluded by default

## Required Tool Workflow (strict order)

Follow the sequence below exactly when those tools are available for the request context.

1. **Resolve optional filters**:
   - `catalog_get` (`type: collection`) / `catalog_get` (`type: tag`) if
     names are provided. Never guess an id.
2. **Load catalog and stock state**:
   - `catalog_get` (`type: product`, no `product_id`), page by page, with
     `collection_ids` for a collection. The list has no tag filter: pass
     the tag as `keyword`, then keep only the products whose `tags` hold
     it. `keyword` does not see a tag until its product is saved again:
     when the queue must be complete, read the whole list and filter on
     `tags`.
   - Each product of the list carries its variants with their id, SKU,
     option values and stock: no read per product is needed for stock.
3. **Load demand signal**:
   - `sales_get` (`type: order`) on the velocity window, with
     `created_from` and `created_to` (exactly `YYYY-MM-DDTHH:MM` in UTC)
     and `order_status` `PENDING`, `FULFILLED`, `DELIVERED`. Each order
     carries its lines (product, variant, quantity).
4. **Compute per SKU (product or variant)**:
   - Current stock
   - Units sold in period
   - Daily velocity = units_sold / period_days
   - Days of cover = stock / daily_velocity (if velocity > 0)
   - Suggested reorder qty = max(0, target_cover_days \* daily_velocity - stock)
5. **Prioritize**:
   - Reorder now
   - Reorder soon
   - Monitor
6. **Identify each row**: give the product id and slug and the variant
   id, as the list returns them. No tool returns the back-office address
   of a product: do not build or guess a link.
7. **Render buyer-ready queue**.

## Tools used

- `catalog_get` (`type: product`; `type: collection`, `type: tag` for the optional filters)
- `sales_get` (`type: order`)

## Output contract (exact sections required)

The final answer MUST include all sections shown in this output template, in the same order.

```markdown
## Reorder planner — target cover: 21 days

### 🔴 Reorder now

| Product / Variant | Stock | 30d sold | Daily velocity | Days of cover | Suggested reorder | Ids |
| ----------------- | ----- | -------- | -------------- | ------------- | ----------------- | --- |

### 🟠 Reorder soon

| Product / Variant | Stock | 30d sold | Daily velocity | Days of cover | Suggested reorder | Ids |
| ----------------- | ----- | -------- | -------------- | ------------- | ----------------- | --- |

### 🟢 Monitor

N SKUs with sufficient cover

## Purchasing summary

- SKUs to reorder now: N
- Total suggested units: N
- Highest urgency SKU: ...
```

Do not replace this output with a one-line answer.

## Guardrails (hard rules)

- `-1` stock means unlimited: exclude from shortage and reorder math.
- If a SKU has zero sales in the selected period, do not force reorder;
  classify as monitor unless user asks for minimum stock policy.
- Keep calculations explicit and rounded consistently (state the rounding).
- Every row in Reorder now / Reorder soon must give the product id and
  slug and the variant id.
- Never build a back-office or web address from the MCP host or a guessed
  domain.
- On large order tables, narrow by date and filters server-side; do not
  full-paginate historical data.
- Read-only skill: no catalog or order mutation. When the stock arrives,
  the new stock of a variant is set with `catalog_change` (`type: variant`,
  `stock_quantity` as the new total), one variant per call, only on the
  user's request.
- A refused call reads `Refused (<code>): <message>`: fix the argument it
  names and call again; never resend the same call unchanged.
- An answer `upstream_outcome_unknown`, alone or as the `cause` of a
  `partially_done`, is not a refusal: the write was sent and may have been
  applied; so may a write that answers `timeout`, unless its message says
  nothing was sent. Never call it again as it is: read the current state
  with `catalog_get` first, then write only what is still missing.

## Next possible actions

- Run `shop-stock-check` for a deeper shortage-focused audit.
- Run `shop-best-sellers` to validate demand assumptions.
- Run `shop-promo-performance-review` before increasing stock for promo-driven SKUs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.