abc-xyz-segmentation
What it does
This skill ranks your products by value (ABC) and by how steady their demand is (XYZ), then recommends how much planning effort each group deserves. It is for inventory and supply planners managing many items.
When to use it
- āWhen you want to know which products deserve the most forecasting effort.
- āWhen you need to narrow a long list of products down to the ones that matter most.
- āWhen you want inventory policies that match how steady each product's demand is.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/operations/abc-xyz-segmentation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āSort my product list by sales value and demand steadiness, and tell me where to focus my planning time.ā
5 new skills a week. 1 minute to read.
How it works
The agent ranks items by annual value, measures demand variability for each, places them in a nine-box grid, and attaches a planning policy to each cell along with the value share it covers.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
ABC-XYZ Segmentation
Value tells you where the money is. Variability tells you whether forecasting, buffering or restructuring can work. Never output a classification without the policy consequences.
Required data
Per-SKU demand history (sku, period, qty) covering 12+ periods, plus unit value (unit_price or cost). Without unit value, ABC degrades to a volume ranking - say so and ask for prices before presenting conclusions about money.
Workflow
- ABC on annual value. Rank by annual consumption value; cumulative 80% = A, next 15% = B, rest = C. Report the actual concentration found (e.g. "15 SKUs = 80%"), not the folklore 20/80.
- XYZ on variability. CV = std/mean of period demand per SKU. Defaults: X < 0.5, Y 0.5-1.0, Z >= 1.0. These are conventions - check the CV histogram for natural breaks and state the thresholds used. SKUs with structural zero periods (intermittent) belong in Z regardless of CV arithmetic; mean-based CV understates their risk.
- Build the 9-box with SKU counts AND value share per cell. Value share is what makes managers act.
- Attach the policy per cell (adapt wording to context):
- A-X: tight forecasting pays; low buffer, frequent review, automate replenishment
- A-Y: forecast + healthy buffer; investigate variability drivers
- A-Z: do not chase forecasts - strategic buffer, lead-time negotiation, or make-to-order
- B-X / C-X: min-max autopilot; withdraw planner attention
- B-Z: buffer or longer promise dates; check if variability is self-inflicted (promotions, batching)
- C-Z: rationalization shortlist - kill, consolidate, or on-demand sourcing
- Name the reallocation. The deliverable is planner-hours and buffer money moving between cells - state explicitly which cells gain and lose attention.
- Validate. Sum of cell value shares must equal 100%; spot-check two SKUs' classifications against their raw series before presenting.
Pitfalls to check explicitly
- ABC computed on quantity while unit values vary 10x+ ranks the wrong items.
- Self-inflicted variability (order batching, month-end pushes, promotions) shows up as Z; flag it as a process fix, not a demand fact.
- Classifications rot - recommend re-running quarterly and tracking cell migrations.
- A dominant "C-Z is 60% of SKUs" finding usually signals assortment bloat, not a planning problem.
Output format
- The 9-box (counts + value share per cell)
- Policy table per occupied cell
- Attention-reallocation paragraph (from where, to where)
- Rationalization shortlist (top C-Z items by holding cost or shelf age, if data allows)
Worked example including a safety-stock stress test: https://github.com/gulmezeren2-byte/abc-xyz-inventory
Source: industrial-engineering-ai-skills by Eren Gulmez (MIT). The full method pack - entry skill, role agents, data-hygiene rules and artifact templates - lives there.
FAQ
What data do I need?
Demand history per product over at least 12 periods, plus unit prices. Without prices, the result is only a volume ranking.
Are the thresholds fixed?
No. The skill uses default thresholds, checks the data for natural breaks, and states the ones it used.
Does it just give labels?
No. Each group comes with a policy, such as forecasting closely or building a buffer.
Details
Original description by the author
Segment a SKU portfolio on value (ABC) and demand variability (XYZ), produce the 9-box with a planning policy per cell, and reallocate planner attention accordingly. Use when the user mentions ABC analysis, inventory segmentation, SKU rationalization, stok segmentasyonu, envanter sınıflandırma, or asks which items deserve forecasting effort. Differentiator - ABC alone is treated as half an answer; policy lives in the value x variability combination.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8864
- License
- MIT
- Updated
- 11/2/2026
Comments
- ā¦
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.