Shift Work Sleep & Recovery
Your body runs on a 24-hour clock that doesn't care what shift you drew this week. If you work nights, rotating schedules, doubles, or split shifts, you're fighting your own biology every day — and the generic "sleep hygiene" advice written for 9-to-5 office workers is useless to you. This skill covers circadian rhythm management, strategic napping, light exposure timing, meal scheduling, and recovery protocols designed for food service, healthcare support, protective services, transportation, and manufacturing workers who keep the world running on hours nobody else wants.
``agent-adaptation
# Localization note — shift work regulations and health resources vary by jurisdiction.
- Maximum shift lengths and mandatory rest periods vary:
US: FLSA has no federal limit on hours for adults; state laws vary. Healthcare
and transportation have specific federal limits (FMCSA, nurse staffing laws).
EU: Working Time Directive caps average at 48 hours/week with 11-hour rest between shifts.
UK: Same as EU Working Time Regulations (retained post-Brexit).
Australia: National Employment Standards; most awards specify minimum breaks.
- Swap occupational health resources:
US: NIOSH (cdc.gov/niosh), OSHA
UK: NHS occupational health, HSE (hse.gov.uk)
AU: Safe Work Australia, state WorkCover agencies
CA: CCOHS (ccohs.ca)
- Melatonin availability varies: over-the-counter in US/CA/AU, prescription-only in UK/EU.
Adjust supplement recommendations accordingly.
- Sleep clinic access: In universal healthcare systems (UK, AU, CA), referral through GP.
In US, check insurance coverage or community health centers.
CODEBLOCK0
YOUR CIRCADIAN CLOCK — THE SHORT VERSION
- Your body has a master clock in the brain (suprachiasmatic nucleus) that runs on ~24 hours.
- It takes cues primarily from LIGHT. Light = awake signal. Darkness = sleep signal.
- This clock controls: sleep drive, body temperature, cortisol, melatonin, digestion, immune
function, mood, cognitive performance.
- When you work nights, your clock says "awake" while your schedule says "sleep" — and
your clock almost always wins.
- Rotating shifts are worse than permanent nights because your clock never fully adjusts.
- It takes approximately 1 day per hour of shift change for partial adjustment.
A 12-hour night shift flip? Your body needs 7-12 days. Most rotations don't give you that.
THIS IS NOT A WILLPOWER PROBLEM. It's a biology problem.
CODEBLOCK1
LIGHT EXPOSURE PROTOCOL
NIGHT SHIFT (e.g., 7pm-7am):
- First half of shift: Maximize bright light exposure. Overhead fluorescents ON.
If possible, use a 10,000 lux light therapy lamp at your workstation.
- Second half of shift: Begin dimming. Reduce overhead lights if possible.
- Commute home: Wear wraparound sunglasses. Yes, even if it looks weird.
Morning sunlight is the strongest "wake up" signal and will destroy your
ability to fall asleep when you get home.
- Bedroom: COMPLETE darkness. Not "pretty dark." BLACK.
BLACKOUT SETUP ($15-30):
- Option 1 (Renters): Blackout curtains with Velcro strips on frame edges ($20-30).
Brand example: Deconovo thermal blackout curtains + 3M Command Velcro strips.
- Option 2 (Cheapest): Heavy-duty black trash bags + painter's tape on windows ($5).
Ugly but effective. No shame in it.
- Option 3: Blackout roller shades with side channels ($30-50 for permanent install).
- Sleep mask: As backup or addition. Contoured (Manta or Alaska Bear brand) so it
doesn't press on eyelids. $10-15.
- Cover ALL light sources in bedroom: Alarm clock, power strips, smoke detector LED.
Use electrical tape.
ROTATING SHIFTS:
- On day-shift weeks: Get morning sunlight within 30 minutes of waking.
- On night-shift weeks: Follow the night shift protocol above.
- On transition days: Wear sunglasses for the first 3 hours after your last night shift
to help your clock start swinging back.
CODEBLOCK2
MELATONIN PROTOCOL
- Dose: 0.5mg. NOT the 5mg or 10mg pills at the drugstore. Those are massively
overdosed and cause grogginess. Research supports 0.3-0.5mg as the effective dose.
You may need to buy 1mg tablets and cut them in half, or find 0.5mg formulations
(Natrol makes one).
- Timing: 5 hours before your desired sleep onset.
Example: Want to sleep at 8am after a night shift? Take melatonin at 3am.
- Consistency: Take it at the same time every shift day. Your clock responds to consistency.
- Duration: Use for the first 2-3 weeks of a new schedule, then taper off.
Melatonin is a clock-shifting signal, not a sleeping pill.
- Not a replacement for: Blackout curtains, light management, or proper sleep environment.
It's one tool, not the whole toolbox.
NOTE: Melatonin is OTC in the US, Canada, and Australia. In the UK and most of the EU,
it requires a prescription. If prescription-only in your country, discuss with your GP
and mention shift work as the reason.
CODEBLOCK3
NAP RULES FOR SHIFT WORKERS
- 20-minute power nap: Light sleep only. Set alarm for 25 minutes (5 min to fall asleep).
Boosts alertness for 2-3 hours. Best mid-shift if allowed, or pre-shift.
- 90-minute full cycle: One complete sleep cycle. Wake feeling refreshed, not groggy.
Best on days off or when you have a longer break.
- NOTHING IN BETWEEN: 30-60 minute naps put you into deep sleep then rip you out.
You'll feel worse than before. 20 or 90. Those are your numbers.
PRE-SHIFT NAP:
- Before a night shift: Nap 90 minutes, ending 1-2 hours before your shift starts.
This is the single best fatigue countermeasure available.
CAFFEINE + NAP COMBO (the "nappuccino"):
- Drink coffee immediately before a 20-minute nap.
- Caffeine takes 20-25 minutes to hit your bloodstream.
- You wake up with both the nap refresh AND the caffeine kick.
- Sounds counterintuitive. Works extremely well. Research-backed.
ON DAYS OFF:
- Do NOT try to flip entirely back to a day schedule if you're on permanent nights.
It destroys any circadian adjustment you've built.
- Compromise: Sleep until noon or 1pm on days off instead of staying up all night.
Social life during afternoon/evening hours.
CODEBLOCK4
CAFFEINE PROTOCOL
- Cutoff: Minimum 6 hours before intended sleep. 8 hours is better.
Night shift sleeping at 8am? Last caffeine at 2am maximum.
- Front-load: Drink coffee at the START of your shift, not the end.
- Half-life reminder: Caffeine's half-life is 5-6 hours. That 2am coffee still has
50% potency at 7am when you're trying to sleep.
- If you "need" caffeine in the last 3 hours of your shift, you need a nap instead.
MEAL TIMING
- Your gut has its own circadian clock. Eating during your biological night (roughly
midnight-6am) causes more GI distress than the same food during the day.
- Night shift strategy:
- Eat your main meal BEFORE your shift (6-7pm for a 7pm start).
- Light snacks during shift: nuts, cheese, crackers, fruit, yogurt.
- Avoid heavy, greasy, or spicy food between midnight and 6am.
- Small meal after shift if hungry, but don't force it.
- Rotating shifts: Eat meals at consistent times relative to your WAKE time,
not the clock on the wall. Wake + 1 hour = breakfast, regardless of actual time.
- Common trap: Eating a huge meal after a night shift, then trying to sleep.
Your body will choose digestion over sleep. Eat light or wait.
CODEBLOCK5
EXERCISE TIMING
- BEFORE shift: 20-30 minutes of moderate exercise (brisk walk, bodyweight circuit)
1-2 hours before clocking in. Boosts alertness for hours.
- AFTER shift: AVOID intense exercise. It raises core body temperature and cortisol,
both of which delay sleep onset by 1-2 hours.
- If after-shift is your only option: Gentle stretching or yoga. Nothing that makes
you sweat heavily.
- Days off: Exercise whenever works. Morning is ideal for circadian alignment on
day-schedule days.
- Minimum effective dose: 20 minutes, 3x per week. You don't need a gym membership.
Walking counts. Pushups in your living room count.
CODEBLOCK6
THE SCHEDULE MISMATCH PROBLEM
When you work nights or rotating shifts, your free time rarely overlaps with anyone
else's. This strains relationships, parenting, friendships, and social connection.
COMMUNICATION TEMPLATE FOR PARTNER/FAMILY:
"I need to sleep from [time] to [time]. During that window, I need the house
to be as quiet as possible and for you to handle [specific tasks]. I know this
is hard on you too. Let's find [specific overlap time] as our protected time
together every [frequency]."
PRACTICAL STRATEGIES:
- Establish one protected shared meal per day, even if it's "your breakfast,
their dinner."
- Use a shared calendar that shows your shifts, sleep blocks, AND available time.
Family members can't respect what they can't see.
- Have the "I'm not ignoring you, I'm unconscious" conversation proactively.
- Schedule date time the way you schedule shifts — it won't happen spontaneously.
- For parents: Quality over quantity. 30 focused minutes beats 3 hours of
exhausted presence.
CODEBLOCK7
SHIFT WORK DISORDER — SELF-CHECK
If you answer "yes" to 3+ of these, talk to a doctor:
- You've worked shifts for 3+ months and sleep problems persist despite trying
blackout curtains, melatonin, and consistent scheduling.
- You fall asleep unintentionally during your shift.
- You sleep less than 5 hours per day on average, despite having 7-8 hours available.
- You have persistent GI problems (nausea, heartburn, irregular bowel) that correlate
with your shift schedule.
- Your mood has significantly worsened since starting shift work (constant irritability,
hopelessness, loss of interest in things you used to enjoy).
- You've had a near-miss or accident due to fatigue at work or while driving.
WHERE TO GET HELP:
- Primary care doctor: Can diagnose shift work disorder, prescribe modafinil (for
wakefulness) or short-term sleep aids. Ask specifically about shift work disorder.
- Sleep specialist/clinic: For persistent cases. May do a sleep study.
- EAP (Employee Assistance Program): Free, confidential, through your employer.
Most shift workers don't know this exists. Ask HR for the number.
CODEBLOCK8 yaml
shift_work_session:
shift_pattern: null
shift_times: null
current_sleep_hours: null
primary_complaint: null
blackout_setup_complete: false
melatonin_timing_calculated: false
caffeine_cutoff_set: false
clinical_screening_done: false
CODEBLOCK9 yaml
triggers:
- name: shift_change_adjustment
condition: "user reports upcoming schedule change or rotation"
schedule: "on_demand"
action: "Recalculate light exposure timing, melatonin timing, caffeine cutoff, and meal schedule for new shift pattern"
- name: fatigue_screening
condition: "user reports persistent sleep problems lasting more than 4 weeks"
schedule: "on_demand"
action: "Run shift work disorder self-check and recommend professional evaluation if indicated"
- name: seasonal_light_adjustment
condition: "daylight savings change or significant seasonal shift"
schedule: "biannual_march_november"
action: "Remind user to adjust light exposure protocol and blackout setup for new daylight patterns"
``
轮班工作睡眠与恢复
你的身体运行在一个24小时的生物钟上,它并不关心你这周上什么班。如果你上夜班、轮班、双班或分班,你每天都在与自己的生理机能作斗争——而那些为朝九晚五的办公室职员编写的通用睡眠卫生建议对你毫无用处。这项技能涵盖昼夜节律管理、策略性小睡、光照时机、进餐安排以及恢复方案,专为那些在别人不愿工作的时间维持世界运转的餐饮服务、医疗支持、安保服务、运输和制造业工作者设计。
agent-adaptation
本地化说明——轮班工作法规和健康资源因司法管辖区而异。
美国:《公平劳动标准法》对成年人没有联邦工时限制;各州法律不同。
医疗和运输行业有特定的联邦限制(联邦汽车运输安全管理局、护士人员配置法)。
欧盟:《工作时间指令》将平均工时上限设定为每周48小时,班次之间需有11小时休息。
英国:与欧盟《工作时间条例》相同(脱欧后保留)。
澳大利亚:国家就业标准;大多数行业裁决规定了最低休息时间。
美国:美国国家职业安全卫生研究所(cdc.gov/niosh)、美国职业安全与健康管理局
英国:英国国家医疗服务体系职业健康、英国健康与安全执行局(hse.gov.uk)
澳大利亚:澳大利亚安全工作局、各州WorkCover机构
加拿大:加拿大职业健康与安全中心(ccohs.ca)
- - 褪黑素供应情况不同:美国/加拿大/澳大利亚为非处方药,英国/欧盟为处方药。
相应调整补充剂建议。
- - 睡眠诊所就诊:在全民医疗体系(英国、澳大利亚、加拿大)中,通过全科医生转诊。
在美国,检查保险覆盖范围或社区卫生中心。
来源与验证
- - 美国国家睡眠基金会——轮班工作睡眠障碍资源和睡眠时长建议。https://www.sleepfoundation.org
- 美国疾病控制与预防中心国家职业安全卫生研究所——针对雇主和员工的工作安排与疲劳指南。https://www.cdc.gov/niosh/topics/workschedules/
- 美国睡眠医学学会——关于轮班工作障碍诊断和治疗的临床指南。https://aasm.org
- 《内部时间》蒂尔·伦内伯格著——关于昼夜节律和社交时差的生物钟研究。参考慕尼黑时型问卷。
- 美国职业安全与健康管理局疲劳资源——工作场所疲劳风险因素和缓解策略。https://www.osha.gov/fatigue
- Anthropic公司,人工智能对劳动力市场的影响——2026年3月研究显示,该职业/技能领域的人工智能暴露度接近为零。https://www.anthropic.com/research/labor-market-impacts
使用时机
- - 有人上夜班,白天无法入睡
- 用户处于轮班制,感觉永久性时差
- 上双班或延长班次,精力耗尽
- 睡眠不足导致情绪问题、肠胃问题或思维受损
- 用户的人际关系因作息时间与他人不一致而受到影响
- 想知道自己经历的是正常的轮班工作疲劳还是需要临床干预的问题
操作指南
第1步:了解你在对抗什么
智能体行动:评估用户的具体轮班模式,识别主要的昼夜节律紊乱。
你的昼夜节律——简短版
- - 你的大脑中有一个主时钟(视交叉上核),运行周期约为24小时。
- 它主要接收来自光线的信号。光线=清醒信号。黑暗=睡眠信号。
- 这个时钟控制着:睡眠驱动力、体温、皮质醇、褪黑素、消化、免疫
功能、情绪、认知表现。
- - 当你上夜班时,你的时钟说清醒,而你的日程说睡觉——而且
你的时钟几乎总是赢。
- - 轮班比固定夜班更糟糕,因为你的时钟永远无法完全适应。
- 每改变1小时的班次,大约需要1天才能部分适应。
翻转12小时的夜班?你的身体需要7-12天。大多数轮班制度不会给你这个时间。
这不是意志力问题。这是生物学问题。
第2步:控制光照暴露
智能体行动:根据用户的具体轮班时间制定光照暴露时间表。
光线是改变昼夜节律最强大的工具。要有策略地使用它。
光照暴露方案
夜班(例如,晚上7点到早上7点):
如果可能,在工作站使用10,000勒克斯的光疗灯。
- - 班次后半段:开始调暗灯光。如果可能,减少头顶照明。
- 通勤回家:佩戴环绕式太阳镜。是的,即使看起来很奇怪。
早晨的阳光是最强的唤醒信号,会破坏你回家后入睡的能力。
遮光设置(15-30美元):
- - 选项1(租房者):遮光窗帘配合框架边缘的魔术贴条(20-30美元)。
品牌示例:Deconovo隔热遮光窗帘 + 3M Command魔术贴条。
- - 选项2(最便宜):重型黑色垃圾袋 + 窗户用美纹纸胶带(5美元)。
难看但有效。没什么不好意思的。
- - 选项3:带侧槽的卷帘式遮光帘(永久安装30-50美元)。
- 睡眠眼罩:作为备用或补充。选择立体式(Manta或Alaska Bear品牌),这样不会
压迫眼睑。10-15美元。
- - 遮盖卧室中所有光源:闹钟、电源排插、烟雾探测器指示灯。
使用电工胶带。
轮班制:
- - 在日班周:醒来后30分钟内接触早晨阳光。
- 在夜班周:遵循上述夜班方案。
- 在过渡日:最后一个夜班后的前3小时佩戴太阳镜,
帮助你的时钟开始回调。
第3步:安排褪黑素服用时间
智能体行动:根据用户的目标睡眠窗口计算褪黑素服用时间。
褪黑素方案
- - 剂量:0.5毫克。不是药店里的5毫克或10毫克药片。那些剂量严重
过量,会导致昏昏沉沉。研究支持0.3-0.5毫克为有效剂量。
你可能需要购买1毫克片剂并切成两半,或者找到0.5毫克制剂
(Natrol有生产)。
示例:夜班后想在早上8点睡觉?在凌晨3点服用褪黑素。
- - 一致性:每个轮班日在同一时间服用。你的时钟对一致性有反应。
- 持续时间:在新作息的前2-3周使用,然后逐渐减量。
褪黑素是时钟调整信号,不是安眠药。
- - 不能替代:遮光窗帘、光照管理或适当的睡眠环境。
它是一个工具,不是整个工具箱。
注意:褪黑素在美国、加拿大和澳大利亚是非处方药。在英国和大多数欧盟国家,
需要处方。如果在你的国家是处方药,请与你的全科医生讨论,
并说明轮班工作是原因。
第4步:掌握策略性小睡
智能体行动:根据用户的轮班模式推荐小睡时间和时长。
轮班工作者小睡规则
- - 20分钟能量小睡:仅浅睡眠。设置25分钟闹钟(5分钟入睡)。
可提升警觉性2-3小时。最适合班次中途(如果允许)或班次前。
- - 90分钟完整周期:一个完整的睡眠周期。醒来时神清气爽,不会昏沉。
最适合休息日或有较长休息时间时。
- - 中间时长绝对不行:30-60分钟的小睡会让你进入深睡眠然后强行唤醒。
你会感觉比之前更糟。20或90。就这两个数字。
班次前小睡:
- - 夜班前:小睡90分钟,在班次开始前1-2小时结束。
这是可用的最佳疲劳应对措施。
咖啡因+小睡组合(咖啡小睡):
- - 在20分钟小睡前立即喝咖啡。
- 咖啡因需要20-25分钟才能进入血液。
- 你醒来时既有小睡后的恢复感,又有咖啡因的提神效果。
- 听起来违反直觉。效果非常好。有研究支持。
在休息日:
- - 如果你是固定夜班,不要试图完全翻转回白天的作息。
这会破坏你已经建立的任何昼夜节律调整。
- - 折中方案:在休息日睡到中午或下午1点,而不是整夜不睡。
在下午/晚间时段进行社交活动。
第5步:管理咖啡因和进餐
智能体行动:根据用户的轮班计算咖啡因截止时间和进餐时间。
咖啡因方案
- - 截止时间:在计划睡眠前至少6小时。8小时更好。
夜班在早上8点睡觉?最晚在凌晨2点喝最后一杯咖啡。