{"id":"ops-shift-coverage-gap-table","audience":"operations","category":"operations-work","track":"operations","technique":"format","level":"intermediate","title":"Build a staffing gap table that accounts for approved leave","free":false,"task":"You manage a dock team and need to see where next week is short. Write a prompt for a markdown table with the columns Shift, Needed, Available and Gap, one row per shift. Available means scheduled minus anyone on approved leave that day. Gap is Needed minus Available, with overstaffed shifts as negative numbers. After the table add one line, \"Total short: N\", counting only the shifts that are short (do not net out overstaffed ones). Nothing else.","materialLabel":"Your material (attached to your prompt automatically)","material":"WAREHOUSE STAFFING - week of Mar 10 (Dock team)\nNeeded headcount comes from the volume forecast. Names are from the posted schedule.\n\nMon Early (6a-2p): need 8. Scheduled: Ortiz, Baptiste, Chen, Dunn, Okafor, Ruiz, Svoboda (7)\nMon Late (2p-10p): need 8. Scheduled: Hale, Imani, Jarvis, Kline, Lopez, Moreau, Nasser, Pruitt (8)\nTue Early (6a-2p): need 6. Scheduled: Ortiz, Baptiste, Chen, Dunn, Okafor, Ruiz, Svoboda (7)\nTue Late (2p-10p): need 6. Scheduled: Hale, Imani, Jarvis, Kline (4)\nWed Early (6a-2p): need 6. Scheduled: Ortiz, Baptiste, Chen, Dunn, Nair, Ruiz (6)\n\nLEAVE APPROVED THIS WEEK\n- Priya Nair: Wed, full day\n- Tom Dunn: Fri, full day (no Friday shifts are in this plan)\n\nPosted by the scheduler on Friday. The Wednesday list was copied from the template and has not been updated since the leave was approved.","rules":[{"type":"maxWords","max":100}],"promptHints":[{"label":"Names the four columns","patterns":["shift.*needed.*available.*gap","columns?"]},{"label":"Subtracts approved leave","patterns":["leave","approved"]},{"label":"Handles overstaffed shifts","patterns":["negative","overstaff","not net","only (the )?shifts that are short"]},{"label":"Defines the total line","patterns":["total short"]},{"label":"Sets a length limit","patterns":["\\d+\\s*words","word (limit|count)","under \\d+"]}],"mistakes":[{"title":"Ignoring approved leave","why":"The AI trusts the schedule and counts Priya Nair on Wednesday.","fix":"Say: \"Available = scheduled minus anyone on approved leave that day.\"","checks":["r1"]},{"title":"Netting overstaffing","why":"The AI subtracts the extra person on Tuesday from the total.","fix":"Say: \"Total short counts only shifts that are short; do not net out overstaffed ones.\"","checks":["r2"]},{"title":"Not a table","why":"The AI writes a paragraph or a list.","fix":"Name the four columns and say one row per shift.","checks":["r0"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting and usually runs long, so a vague \"keep it short\" lands over the limit.","fix":"Cap each part instead of the total, for example \"each line under 15 words\".","checks":["maxWords"]}],"hint":"Say how to get Available (leave comes off), how to write overstaffing, and how to count the total.","mission":"Show which dock shifts are short next week.","musts":["Subtract approved leave","Overstaffed is negative","Total short ignores overstaffed"],"rubricLabels":["The output is a markdown table with the columns Shift, Needed, Available and Gap and one row for each of the five shifts","Wed Early shows Available 5 and Gap 1 (Priya Nair's leave removed), and Tue Early shows Available 7 and Gap -1","The Gap column reads 1, 0, -1, 2, 1 in schedule order, and the last line is exactly \"Total short: 4\" (not 3)"]}