reorder-policy
Skill2.2k starsChanged 6 months agoApache-2.0View on GitHub
How to decide whether and how much to reorder a SKU. Load this whenever a task involves reorder recommendations, purchase orders, or "should we restock" questions.
Trending
Quiet since September.about the whole repository
Who's talking about anthropics/cwc-workshops
- @github-trending.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 2 likes
- @nsega.dev“Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 …”Bluesky · May 8, 2026 · 2 likes
- @technews4869.bsky.social“github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops”Bluesky · Jul 27, 2026 · 1 likes
- @github-trending-js.bsky.social“📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript”Bluesky · Jul 17, 2026 · 1 likes
- ProSkillsMD/proskills“[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - …”GitHub · Sep 28, 2026
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub and Bluesky (17 times).
On GitHub · 12
- Sep 28, 2026[Candidate] anthropics/cwc-workshops/ship-your-first-managed-agent/incident-triage-runbook - incident-triage-runbook — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/skills/edgartools - edgartools-sec-data — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/research-desk/.claude/skills/workshop - workshop — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 27, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/weekly-report - weekly-report — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/supplier-selection - supplier-selection — ProSkillsMD/proskills0 reactions · 2 comments
7 more on GitHub
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/submit-solution - submit-solution — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/reorder-policy - reorder-policy — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/notify-templates - notify-templates — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-decomposition/.claude/skills/forecasting - forecasting — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] anthropics/cwc-workshops/agent-battle/skills/mining - mining — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 25, 2026agent-skills.github.anthropics.cwc-workshops: init at 0-unstable-2026-08-20 — sudosubin/agents.nix0 reactions
- Jul 18, 2026Github trending [anthropics/cwc-workshops] Claude工作坊多智能体实战 — web1992/github-trending0 reactions
On Bluesky · 5
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 8, 2026Code w/ Claude Extended にSF現地で参加できてWorkshopメインにしてたけど色々と知らなかったfeatureさわれて良かった。 基本はこのrepoの中の内容をやったけど個人で試しに動かしてみるて言うのも良さそう。… — @nsega.dev2 likes and reposts · 1 reply
- Jul 27, 2026github.com/anthropics/cwc-... GitHub - anthropics/cwc-workshops — @technews4869.bsky.social1 likes and repost
- Jul 17, 2026📦 anthropics / cwc-workshops ⭐ 1,496 (+37) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- May 7, 2026RT @jdnichollsc: How we Claude Code by @trq212 Workshops: https://github.com/anthropics/cwc-workshops Happy Claude Coding! <3 #AI #Claude… — @trq212-mir-rt.selfhosted.social0 likes and reposts · 1 reply
In this repository13 other files it gives its agents.
- agent-battle/CLAUDE.mdCLAUDE.md
- agent-decomposition/.claude/CLAUDE.mdCLAUDE.md
- eval-driven-agent-development/CLAUDE.mdCLAUDE.md
- miningSkill
- forecastingSkill
- notify-templatesSkill
- submit-solutionSkill
- supplier-selectionSkill
- weekly-reportSkill
- workshopSkill
- edgartools-sec-dataSkill
- eval-audit-and-sweepSkill
- incident-triage-runbookSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Confidence guard: If you obtained a forecast and confidence < 0.6, do not place a PO automatically.
- Very specific: line 37
Write an escalation to /mnt/user/sinks/outbox.jsonl using the notify-templates skill (escalation template), including the flags from the …
- Very specific: line 40
Expedite?: If on_hand / avg_daily_sales < lead_time_days (you'll stock out before the order arrives), pick the supplier with the shortest …
- Distinctive: line 61
If you can't action every SKU in one pass, say how many you handled, how many remain, and list the remaining SKU IDs so the next run picks …
- Distinctive: line 66
When one warehouse is low and another has surplus:
- Distinctive: line 68
Transfer: when the surplus warehouse has >30 days cover for itself, the 3–5 day transfer beats the best supplier lead, and the qty needed …
- Distinctive: line 71
Reorder: when no warehouse has surplus, the qty is large, or supplier lead is comparable to transfer lead anyway.
- Distinctive: line 73
Both: when the shortage is urgent and large — transfer a bridge qty now, PO the remainder.
- Distinctive: line 82
If you place more than five POs in one task, end with a one-line total committed spend.
- Distinctive: line 84
Do not place a second PO for a SKU that already has an open PO covering the need.
- Very specific: line 89
When you act, append to /mnt/user/sinks/purchase_orders.jsonl:
- Very specific: line 94
When you only recommend (no side-effect requested), return a structured ReorderDecision:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Copyright 2026 Anthropic PBC --><!-- SPDX-License-Identifier: Apache-2.0 -->Reorder Policy
This skill encodes StockPilot's reorder rules. Use it whenever you need to decide whether to reorder a SKU and how many units to order.
Inputs you need
| Value | Where to get it |
on_hand | Latest row for the SKU in /mnt/user/data/stock_levels.csv (sum across warehouses unless the task is warehouse-specific) |
reorder_point | /mnt/user/data/products.csv |
avg_daily_sales | Mean of units_sold over the last 14 days in /mnt/user/data/sales_history.csv |
lead_time_days | From the chosen supplier (see the supplier-selection skill) |
forecast_qty, confidence, flags | From the forecasting skill, only if the task looks forward more than 14 days or mentions a promo/season |
Decision rules
- Do we reorder at all? Reorder if
on_hand < reorder_point. Ifon_hand ≥ reorder_point, the answer is "no reorder needed" — stop here. How much? The target order quantity is 30 days of cover plus safety stock, minus what's already on hand:
safety_stock = 1.5 × avg_daily_sales × lead_time_days order_qty = (avg_daily_sales × 30) + safety_stock − on_handRound up to the supplier's
min_order_qtymultiple.- Confidence guard. If you obtained a forecast and
confidence < 0.6, do not place a PO automatically. Instead:- Write an escalation to
/mnt/user/sinks/outbox.jsonlusing the notify-templates skill (escalation template), including theflagsfrom the forecast. - In your final answer, state the recommended quantity and that it requires human review, with the reason.
- Write an escalation to
- Expedite? If
on_hand / avg_daily_sales < lead_time_days(you'll stock out before the order arrives), pick the supplier with the shortest lead time even if it's not the cheapest, and note "expedited" in the PO.
Worked example
SKU-0057: on_hand = 38, reorder_point = 120, avg_daily_sales = 18.2, chosen supplier lead_time_days = 7, min_order_qty = 50.
- 38 < 120 → reorder.
- safety_stock = 1.5 × 18.2 × 7 = 191.1
- order_qty = (18.2 × 30) + 191.1 − 38 = 546 + 191.1 − 38 = 699.1 → round up to next 50 → 700
- 38 / 18.2 = 2.1 days of cover, lead time is 7 → expedite.
Prioritization (when many SKUs are at risk)
Sort by tier, then by days-of-cover ascending within a tier:
- Stockouts —
on_hand = 0at any warehouse. Always first. - Will stock out before PO arrives —
days_of_cover < lead_time_days. Expedite or transfer. - High-velocity below reorder — top-100 sellers below reorder point.
- Routine replenishment — everything else below reorder point.
- Trending toward reorder — note only, no action.
If you can't action every SKU in one pass, say how many you handled, how many remain, and list the remaining SKU IDs so the next run picks them up.
Transfer vs reorder
When one warehouse is low and another has surplus:
- Transfer when the surplus warehouse has >30 days cover for itself, the 3–5 day transfer beats the best supplier lead, and the qty needed is ≲200 units. WH-CENTRAL is the default source.
- Reorder when no warehouse has surplus, the qty is large, or supplier lead is comparable to transfer lead anyway.
- Both when the shortage is urgent and large — transfer a bridge qty now, PO the remainder.
State which path you chose and why.
Compliance
- Any single PO over $10,000 needs a one-line rationale included with the PO so ops can copy it into the ERP.
- If you place more than five POs in one task, end with a one-line total committed spend.
- Do not place a second PO for a SKU that already has an open PO covering the need.
Output
When you act, append to /mnt/user/sinks/purchase_orders.jsonl:
{"sku": "SKU-0057", "supplier_id": "SUP-03", "qty": 700, "expedite": true, "reason": "below reorder point; 2.1d cover"}When you only recommend (no side-effect requested), return a structured ReorderDecision:
{"sku": "...", "reorder": true, "qty": 700, "supplier_id": "SUP-03", "expedite": true, "confidence": 0.85, "notes": "..."}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

