Clothing store inventory count specialist - broken-size map tool - paste a stock table and get the on-floor broken-size map - graded per the user-configured size grid and safety levels (volume size broken = red, edge size broken = yellow, full run = green), with each red style carrying three actions (pull from feature display / start a transfer inquiry / list as clearance candidate), refreshed after each weekly count, offline single file, no forecasting, no stock mutations
You are a coding agent building tools for
apparel stores. Build a single-file HTML
tool (no backend, no external dependencies,
fully offline) that generates an on-floor
broken-size map from a stock table, updated
weekly, for the count specialist and the
manager.
The real problem - broken-run facts sit
buried in the POS where nobody reviews them
weekly; broken styles keep holding feature
displays, keep getting recommended, maybe
still wear promo tickets - shoppers find
their size missing and leave while the
style burns display resources with nothing
left to sell them. The map's value is
"see it all in one weekly glance."
One - data import:
- Two paths - CSV file import, or direct
paste (straight out of Excel)
- Required columns - style number, color,
size, quantity; optional - weekly units
for the style (used for volume-size
detection when present; otherwise the
grid-position fallback applies)
- After import, show a raw-data preview
with manually confirmed column mapping
(guards against shuffled column order)
Two - configuration (set once, then
inherited):
- Size grid - fully user-defined (S-XXL or
26-34 or whatever), one slot per size
- Volume-size definition - one of two -
"by sales" (the size band with the
highest weekly units, requires the sales
column) or "by grid position" (the user
names the middle bands, e.g. M/L) -
support both
- Safety level - units below which a size
counts as "about to break" (default 1,
adjustable per size - volume sizes
deserve the higher level)
Three - the map (core output):
- One row per style-color - style / color /
units per size (numbers tinted red/
yellow/green) / grade
- Grading rules -
red = volume size broken or within the
safety level of breaking
yellow = only edge sizes broken, volume
sizes intact
green = full run selling
- Three-way roll-up - how many styles per
color, and their share of on-floor styles
- overall health in one line
- Default sort by red severity - styles
with more broken volume sizes first;
tie-break by style number
Four - actions for red styles (three fixed
lines each, copy-and-execute ready):
- Pull display - recommend pulling from
the feature display and resting a full-
run style there instead (display space
is scarce; broken runs can't afford it)
- Transfer inquiry - generate the "transfer
inquiry list" - red style x missing size,
one exportable table to take to nearby
stores / headquarters
- Clearance candidate - styles down to
one or two lone sizes go on the candidate
list (whether to clear is the manager's
call; the tool lists candidates only)
Five - boundaries:
- Offline single file; data never leaves
the browser; each import overwrites last
week (history exportable for archive)
- No sales forecasting ("how many days
does this size have left" is not
computed - that wants a sales model; the
sales column feeds volume-size detection
only)
- No POS connection, no stock mutation -
a read-only map, not a system
- Chinese interface, plain and restrained,
printable tables (the kind that gets
taped up at the weekly meeting)
Why it is written this way
Choosing a map over a report is a statement about use. Reports get queried (you already know the problem and go look it up); maps get scanned (you don't know where the problem is, and one glance finds the red zones). The count specialist opens this file weekly and tapes it to the meeting wall - the red/yellow/green distribution is the agenda itself, which stretch went red, how many more reds than last week, with nobody having to pre-formulate a question.
Supporting both volume-size methods (by sales / by grid position) is an admission of reality - stores with weekly data by size are the minority; most hold only quantities. Grid-position lets data-poor stores run too (M/L as volume sizes is common-sense for most categories), but as an approximation the interface must say so - stores with sales data should prefer the sales method, and the red zones will differ between the two, legitimately.
The three red-style actions are fixed on purpose - the failure mode of such tools is scope creep into "and reorder suggestions, and promotions, and next season's buy." Those have their own tools (the reorder-window tool owns reorder-or-not; the buy retrospective owns next season). The map answers only "which styles are broken now, at which sizes" - drawing the action boundary this narrow is what keeps each action concrete enough to copy.
No "days of cover" forecast continues the same discipline as the other inventory tools - sell speed needs traffic and display-execution inputs the tool lacks; invent a day count and someone will pull displays based on fiction. The map states quantities only, and the grading rule (volume size broken = red) already encodes the priority - that is enough.
The read-only, system-detached positioning drops adoption cost to the floor - export a sheet, paste, look. The first law of survival for store tools is to add zero maintenance burden to anyone.
Variables
| Variable | Description |
|---|---|
| Volume-size method | Pick "by sales" with weekly data (accurate) or "by grid position" without (approximate) - start approximate and switch once weekly data accumulates; the red zones will shift when you do, which is expected |
| Per-size safety levels | Units below which a size is "about to break" - volume sizes at 2 or higher (a one-day gap costs real sales), edge sizes at 1; tune each season against actual break frequency |
| Clearance candidate threshold | How many lone sizes before a style lists as a candidate - tool default 1-2 pieces, adjustable by brand exchange policy (exchangeable stock should route to transfer before clearance) |