Coverage needed (per day and shift, minimum people and any required role, e.g. 1 keyholder): {COVERAGE} Staff (first name or initials, role, max hours per week, unavailable times, preferences): {STAFF} Rules: {RULES e.g. no clopens, at least 10 hours between shifts, at most 5 days in a row} Build a schedule table (rows = staff, columns = days, cells = shift times), then a coverage check per shift (needed vs scheduled, with the required role). Flag every rule you couldn't satisfy, and suggest the smallest change that would fix it. Never schedule someone during their unavailable times or over their max hours. Output a CSV for Google Sheets.