N NoBullshit.wiki 中文

Warehousing & Distribution scheduling supervisor - peak-season labor back-planning and staffing-mix tool, single file - permanent, part-time, and outsourced labor each have completely different lead times, so the back-planned table also computes 'which order must be placed today'

Works with:Claude / GPT-4 classCategories:Warehousing & DistributionLevel:Advanced Updated

You are a coding agent. Build a single-file HTML "peak-season
labor back-planning and staffing-mix tool" for a distribution
warehouse's scheduling supervisor to plan staffing through a
sales peak. Runs locally, no network, no external dependencies.

Positioning (design to this; this is not a roster generator):
peak staffing is not guessed - back-plan from forecast volume x
per-role productivity and the daily, per-shift gap becomes
obvious. The tool computes three things: gaps, mix constraints,
and order-placement back-dates. The roster itself stays with
the human - the tool computes gaps, the person schedules, and
the chain of responsibility stays with the person.

Four inputs:
1. Forecast volume: per-day forecast volume across the peak,
   expanded by wave times (pasted from the operations forecast)
2. Per-role productivity parameters (all blank [ ], nothing
   pre-filled - every warehouse's pick line, recheck station,
   and loading crew run at different rates):
   - Role list: picking / recheck / packing / loading / returns
     (editable)
   - Productivity per head per role (units/hour, separate rows
     for permanent and temporary staff)
   - Minimum headcount per role (below it, the line does not
     open)
3. Labor pool: permanent headcount with swap flexibility,
   part-timer availability cap, outsourced channel cap
4. Channel parameters (blank):
   - Lead times per channel: how many days ahead outsourcing
     must be ordered, part-timers booked, shift swaps declared
   - Training discount: a temp's effective productivity share
     on day one (the permanent-staff hours consumed by training
     count too - one permanent training two temps delivers a
     discounted day of their own)
   - Temp-share warning line: the share of temp staff in a
     shift above which the tool flags red

Computation (show the arithmetic on the page; no black boxes):
- Demand curve: per-day per-shift labor demand by role = wave
  volume / role productivity, with minimum-headcount floors
  applied
- Gap: demand - schedulable permanent staff = external need,
  shown by day and shift
- Mix constraints: how the gap might split between part-timers
  and outsourcing (constraints and unit-price fields displayed
  for the human to weigh; the tool shows constraints, it does
  not decide)
- Order back-dates: from the lead times - N days before peak
  day D, when N <= the outsourcing lead time, "the outsourcing
  order must drop today" flags red; likewise part-timers and
  swap declarations

Checks (any trigger flags red; silently shaving demand to pass
a check is forbidden):
1. Training-coverage check: a day where temp count, training-
   discounted productivity, and trainer hours consumed cannot
   support the waves - red, naming the day and role
2. Temp-share check: a shift where the temp share crosses the
   warning line - red (a night shift heavy on temps gets bitten
   by error rates and training costs; this is a brake for the
   decision, not a ban)
3. Flexibility-exhaustion check: permanent swap flexibility
   runs dry before the peak days - red, naming the exhaustion
   date
4. Minimum-headcount check: a role below its floor - red:
   "that line does not open that day, or gets merged"

Output:
- Labor demand and gap table: day x shift x role, gap column
  highlighted
- Mix and order-placement table: each channel's order deadline
  per day; the orders due today at the top
- Red list: which check failed, with the smallest fix
  (example: "D-3 needs 60 from outsourcing, lead time 7 days,
  deadline passed 2 days ago - order immediately or raise the
  part-timer cap")

Implementation requirements:
- Single-file HTML, inline CSS and JS, opens on double-click,
  no network requests
- Nothing persists; refresh clears; ship a sample dataset (a
  7-day peak including one temp-share breach day and one
  already-past order deadline) so the red flags show on open
- No system API connections

What you must not do:
- No generated rosters - the tool computes gaps, the person
  schedules; it holds no skills matrix and no personal
  preferences
- No choosing between part-timers and outsourcing on the
  user's behalf - display constraints and gaps; the choice is
  explicitly the supervisor's
- No forecasting volume - forecasts are inputs from operations;
  the tool neither corrects nor predicts them
- Never count temps as permanent-equivalent - the training
  discount and the share warning are this tool's core;
  bypassing them means the tool is hiding the peak night's
  biggest risk from its own user

Why it is written this way

The order back-dates are what separate this tool from a labor demand spreadsheet. Computing the gap is arithmetic; the scheduling supervisor's real timeline is that outsourcers lock people one to two weeks out, part-time platforms need two to three days, and shift swaps must be declared ahead - three clocks running at different speeds. Needing 60 people on D-3 when the outsourcing lead time is 7 days means those 60 are already unfillable. Turning "which order must drop" into red-flagged calendar dates lets the supervisor see each morning what must be locked today, instead of staring at a gap table three days before the peak with nothing left to order.

The training discount that also eats the trainer's own productivity guards against an optimistic assumption: 60 temps reported does not mean 60 people's output - day-one productivity is discounted, and every two or three temps consume most of one permanent's day just supervising. The error rates and training costs of peak nights all start there. The temp-share warning line is designed as a brake, not a ban: the red flag shows, the supervisor can still exceed it after weighing - but as a knowing decision, not an arithmetic slip.

Volume forecasts as untouched inputs draw the boundary between the tool and operations: forecast accuracy belongs to operations and history; the staffing tool computes gaps from the forecast it is given, and when the forecast is wrong the retrospective finds the forecast, not the schedule. Leave that boundary blurry and the tool grows a "smart volume correction" - and destroys the credibility of the whole table with a correction coefficient nobody knows about.

No auto-rostering and no mix decisions keep the responsibility chain with the supervisor: the skills matrix (who drives forklifts, who knows the recheck station), personal states, shift preferences - the tool knows none of it. Its honesty lies in outputting only what it knows - gaps, constraints, back-dates - and explicitly leaving the rest to the person.

Variables

Variable Description
Per-role productivity Units per hour per role, permanent vs temp - from your own history, never industry values
Channel lead times Minimum days ahead for outsourcing, part-timers, and swap declarations - per contracts and platform rules
Training discount Day-one effective productivity share and trainer-hours consumed - measured in your own training structure
Temp-share warning line Per-shift temp share red line - set per role by error sensitivity

peak-staffinglabor-mixsingle-file-tool