Staff rota built from hard and soft constraints, with coverage and fairness checks

by fidji DeepSeek English ~630 tokens
Public excerpt Locked
Feasibility first: shifts demanded versus shifts available, day by day and in total. Then the rota grid, and a verification table: coverage per shift, shifts per person, rest between shifts, weekend fairness, preferences met. Conflicts reported with the constraint to relax…

About this prompt

Builds a weekly shift rota for a small team from explicit constraints: coverage per shift, contracted shifts, availability, rest rules, no evening-then-morning turnarounds, fair weekend distribution. It first checks that a solution can exist at all, then builds the rota and verifies every constraint in a table. DeepSeek is used because rota building is a constraint problem: its step-by-step reasoning catches the conflicts a quick draft misses.

Example output

Provided by the author
FEASIBILITY Demand: 7 days × (2 + 2) = 28 shifts. Contracted: 6 + 6 + 6 + 5 + 5 = 28. Slack: 0 → any absence leaves a gap (see step 5). 4 people per day out of 5 → exactly one person off each day: days off = 1 + 1 + 1 + 2 + 2 = 7 ✓ ROTA (M = 7:00–14:00, A = 14:00–21:00) | | Mon | Tue | Wed | Thu | Fri | Sat | Sun | | Ana | M | M | OFF | M | M | M | M | | Ben | A | A | A | A | A | OFF | A | | Dan | M | M | M | A | A | A | OFF | | Eva | OFF | A | A | OFF | M | M | M | | Finn | A | OFF | M | M | OFF | A | A | VERIFICATION | Rule | Result | | Coverage | every day 2 M + 2 A ✓ | | Contract | Ana 6, Ben 6, Dan 6, Eva 5, Finn 5 ✓ | | No A → next-day M | Finn Mon A → Tue OFF; Eva Wed A → Thu OFF; Sun → Mon: Ben A → A, Finn A → A ✓ | | Weekend shifts | Ana 2, Eva 2, Finn 2, Ben 1, Dan 1 (8 slots / 5 people: best possible spread) ✓ | | Preferences | Ana 6/6 mornings, Ben 6/6 afternoons ✓ | …

Details

Model
DeepSeek
Prompt language
English
Who it's for
Managers of shops, cafés, clinics, support teams and volunteer groups who plan shifts by hand
Length
~630 tokens (estimate)
Delivered as
Prompt text, shown online after purchase
Category
Productivity

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt