Install
openclaw skills install @voronindenis5/sleep-shift-survivorUse when you work nights, rotating shifts, or on-call and your body has no idea when to sleep — generates shift-specific sleep schedules from circadian science: forward-rotation adaptation plans (phase delay is easier than advance), anchor-sleep windows for rapidly rotating schedules, strategic caffeine cutoffs timed to shift end not start, light/dark exposure choreography (bright light during night shifts, dark commute home, blackout sleep), clock-shift transition plans for switching between day and night blocks, drowsy-drive risk warnings on post-shift commutes, and shift-work disorder screening flags — because 20 percent of the workforce does shift work and gets told to just sleep more.
openclaw skills install @voronindenis5/sleep-shift-survivor~20% of workers in industrialized countries do shift work; nurses, drivers, factory, security, IT on-call, hospitality. Shift work disorder is real (excessive sleepiness + insomnia, ~10-30% prevalence among night workers), the health risks are documented (metabolic, cardiovascular), and the standard advice — "keep a regular schedule" — is useless to someone whose shift rotates.
Circadian science actually has usable answers, and this skill operationalizes them:
schedule add with a rotation pattern (e.g. 2D 2E 2N 4off — 2 days, 2 evenings, 2 nights, 4 off) and shift times.plan --from 2026-10-01 --days 28 produces the dated schedule: sleep windows per day (anchor-aware), naps, caffeine cutoff times, light/dark instructions per block.commute prints the countermeasure card for a specific shift end.log records actual sleep per day; screen checks shift-work-disorder flag criteria from the log; report summarizes sleep debt, anchor compliance, and schedule friction.# Define a rotation: 2 days, 2 evenings, 2 nights, 4 off
python3 scripts/shift_sleep.py schedule add "hospital" --pattern 2D,2E,2N,4off \
--day 07:00-15:00 --evening 15:00-23:00 --night 23:00-07:00
python3 scripts/shift_sleep.py schedules
# The dated plan (sleep windows, naps, caffeine cutoffs, light instructions)
python3 scripts/shift_sleep.py plan hospital --from 2026-10-01 --days 14
# Commute risk for a night shift ending 07:00
python3 scripts/shift_sleep.py commute --night-ends 07:00
# Log real sleep & screen
python3 scripts/shift_sleep.py log hospital --date 2026-10-03 --slept "08:30-14:00" --quality 3
python3 scripts/shift_sleep.py screen hospital
python3 scripts/shift_sleep.py report hospital
Storage: shift_sleep.json in cwd. 100% local. Informational planning, not medical advice — persistent symptoms → occupational health or sleep medicine.
| Element | Rule of thumb |
|---|---|
| Anchor sleep | fixed window (default 04:00–08:00) present in EVERY block when rotation is fast |
| Main sleep | longest window aligned to block: nights → morning-after sleep; days → night sleep |
| Strategic nap | 90 min (one full cycle) or 20 min (avoid slow-wave wake) before first night shift |
| Caffeine cutoff | shift end + 6h (half-life out of sleep attempt); flagged on every day |
| Bright light | during night shifts (first half); avoid in last 2h before day-sleep attempt |
| Dark commute | sunglasses on morning commute home post-nights |
| Transition days | between blocks: delay sleep 2h/day forward; long break → 24h+ reset |
commute card makes the threshold explicit.screen checked for SWD flags