shop-stock-checklisted
Install: claude install-skill goodbarber/goodbarber-skills
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
Deliver an actionable inventory report in a single command so the user
can prioritize supplier orders.
## Access contract
- `READ_ONLY` is enough (no mutations).
## Input contract
- `threshold_low`: stock level considered "low" (default: 5)
- `threshold_critical`: "critical" threshold (default: 1)
- `include_zero`: include total stock-outs (default: true)
- `collection_filter`: restrict to a collection
- `tag_filter`: restrict to a tag
Stock semantic:
- `-1` means **unlimited stock** (never classify as critical/low/out-of-stock).
## Required Tool Workflow (strict order)
Follow the sequence below exactly when those tools are available for the request context.
1. **Collection/tag discovery** (if a filter is requested):
- `shop_list_collections` or `shop_list_tags` to resolve the filter ID.
2. **List products** via `shop_list_products` with full pagination.
- If `collection_filter` or `tag_filter`, pass the relevant parameters.
3. **For each product with variants**, call `shop_get_product` to get
per-variant stock (aggregate stock is not enough).
4. **Classify** each product/variant line:
- `unlimited`: stock = `-1` (exclude from shortage buckets)
- `critical`: stock ≤ `threshold_criti