Sleep Hygiene Overhaul
Poor sleep is not a character flaw or a busyness badge. It is a reversible physiological problem in most cases. This protocol applies the evidence-based interventions with the strongest research support: sleep restriction, stimulus control, consistent timing, and environmental optimization. Most people see measurable improvement within 7-14 days. This skill addresses common sleep dysfunction — not clinical insomnia disorder, sleep apnea, or restless leg syndrome, which require medical evaluation.
Sources & Verification
- - Walker, M., Why We Sleep: Unlocking the Power of Sleep and Dreams, Scribner, 2017 — the most accessible synthesis of sleep science for general readers
- American Academy of Sleep Medicine (AASM) Clinical Practice Guidelines for Insomnia — the clinical standard for behavioral sleep interventions. aasm.org
- Edinger et al., "Cognitive behavioral therapy for adults with insomnia," Sleep, 2021 (DOI: 10.5664/jsl.8558) — CBT-I outperforms sleep medication in long-term outcomes
- Czeisler, C.A., "Duration, timing and quality of sleep are each vital for health," Sleep Health, 2015 — consistent wake time as the strongest single lever
- Chang et al., "Evening use of light-emitting eReaders negatively affects sleep," PNAS, 2015 (DOI: 10.1073/pnas.1418490112) — blue light suppresses melatonin
- Drake et al., "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed," Journal of Clinical Sleep Medicine, 2013 — caffeine 6 hours before bed cuts sleep by 1 hour
- National Sleep Foundation sleep duration recommendations: sleepfoundation.org — verified active March 2026
When to Use
- - User takes more than 30 minutes to fall asleep most nights
- Wakes multiple times during the night
- Wakes feeling unrefreshed even after 7-8 hours
- Relies on alarm clocks, caffeine, or willpower to function in the morning
- Has tried "sleep hygiene" advice before but inconsistently
- Wants to reduce reliance on melatonin, alcohol, or sleep aids
- Experiences regular Sunday-night insomnia or social jet lag
Instructions
Step 1: Sleep audit
Agent action: Ask the user each question below, one at a time. Record answers in agent state. Use the results to generate a personalized protocol with specific times filled in.
CODEBLOCK0
Scoring red flags — if any apply, note them in state for the relevant protocol steps:
- - Falls asleep in under 5 minutes: may be chronically sleep-deprived
- Wakes unrefreshed regardless of duration: possible sleep apnea (recommend doctor consult)
- Uses alcohol to sleep: address this first (Step 3 note)
- Last caffeine after 2pm: address in Step 4
Step 2: Set your sleep anchor (do this first, everything else second)
The single most powerful intervention is a consistent wake time — 7 days a week, including weekends.
Agent action: Ask the user: "What time must you be awake for work or responsibilities?" Set a daily morning reminder at that time. Label it "sleep anchor — do not move this." Track wake time adherence in state.
CODEBLOCK1
Step 3: Build a 30-minute wind-down ritual
Your brain cannot switch from "go mode" to "sleep mode" instantly. You need a transition period.
Agent action: Help the user build their specific ritual from the menu below. Save the selected ritual to state. Set a daily reminder 35 minutes before their target bedtime labeled "wind-down start."
CODEBLOCK2
Step 4: Caffeine cutoff calculator
Caffeine has a half-life of 5-7 hours in most people (longer if you are over 50, on certain medications, or a slow metabolizer).
Agent action: Based on the user's target wake time, calculate their caffeine cutoff time and add it to their morning state notes.
CODEBLOCK3
Step 5: Optimize the sleep environment
Agent action: Ask the user which of these they currently have and which they don't. Flag the missing ones that are free or low-cost to fix first.
CODEBLOCK4
Step 6: Nap rules
Naps can pay down sleep debt without ruining night sleep — if done correctly.
CODEBLOCK5
Step 7: Two-week check-in
Agent action: After 14 days, re-administer the sleep audit. Compare to baseline. Calculate sleep onset time improvement and wake-feeling score. If scores haven't improved on 2+ dimensions, prompt doctor consultation checklist.
CODEBLOCK6
If This Fails
- 1. Waking unrefreshed no matter what: Snoring, gasping in sleep, or being told you stop breathing are signs of sleep apnea. This skill cannot address that. Ask your doctor about a home sleep study.
- Can't stop racing thoughts at night: This is anxiety driving sleep problems, not sleep driving anxiety. See the anxiety-emergency skill. Consider a referral for CBT-I, which specifically addresses rumination at bedtime.
- Tried everything and still struggling: Ask your doctor about CBT-I (Cognitive Behavioral Therapy for Insomnia). The American College of Physicians recommends CBT-I as first-line treatment over sleep medication. Find a provider at the Society of Behavioral Sleep Medicine: behavioralsleep.org
- Using alcohol to sleep: Alcohol reduces sleep quality by suppressing REM sleep in the second half of the night. You'll fall asleep faster and wake up exhausted. Removing alcohol often causes a 2-3 night rebound of worse sleep before improvement. Know this going in.
Rules
- - Never recommend prescription sleep medication — this skill is behavioral, not pharmacological
- Never dismiss sleep problems as "you just need to relax" — sleep dysfunction has physiological drivers
- Always flag waking-unrefreshed + snoring as a potential medical issue requiring doctor evaluation
- Progress takes 7-14 days — set this expectation upfront to prevent early abandonment
Tips
- - The single most impactful change for most people is wake-time consistency, not bedtime. Fix the anchor first.
- Warm showers work because cooling down after warmth is a sleep trigger, not the warmth itself.
- Weekend "sleep ins" of even 90 minutes shift your circadian rhythm by the equivalent of mild jet lag.
- Blue light from screens suppresses melatonin for 1-3 hours. The issue isn't just brightness — it's the wavelength.
- If a user is on shift work, overnight care duty, or across time zones regularly, this protocol needs modification — their situation requires circadian rhythm management, not just sleep hygiene.
Agent State
Persist across sessions:
CODEBLOCK7
Automation Triggers
CODEBLOCK8
睡眠卫生全面优化
睡眠质量差不是性格缺陷,也不是忙碌的勋章。在大多数情况下,这是一个可逆的生理问题。本方案应用了研究支持最充分的循证干预措施:睡眠限制、刺激控制、作息一致性和环境优化。大多数人在7-14天内就能看到可衡量的改善。本技能针对常见的睡眠功能障碍——而非临床失眠障碍、睡眠呼吸暂停或不宁腿综合征,这些需要医学评估。
来源与验证
- - Walker, M.,《我们为什么要睡觉:解锁睡眠与梦境的力量》, Scribner, 2017 — 面向普通读者最易理解的睡眠科学综合读物
- 美国睡眠医学会(AASM)失眠临床实践指南 — 行为睡眠干预的临床标准。aasm.org
- Edinger 等人,成人失眠的认知行为疗法,《睡眠》, 2021(DOI: 10.5664/jsl.8558)— CBT-I在长期效果上优于安眠药物
- Czeisler, C.A.,睡眠时长、时机和质量对健康都至关重要,《睡眠健康》, 2015 — 一致的起床时间是最强有力的单一杠杆
- Chang 等人,夜间使用发光电子阅读器对睡眠产生负面影响,《美国国家科学院院刊》, 2015(DOI: 10.1073/pnas.1418490112)— 蓝光抑制褪黑素
- Drake 等人,睡前0、3或6小时摄入咖啡因对睡眠的影响,《临床睡眠医学杂志》, 2013 — 睡前6小时摄入咖啡因会减少1小时睡眠
- 国家睡眠基金会睡眠时长建议:sleepfoundation.org — 2026年3月验证有效
何时使用
- - 用户大多数夜晚需要30分钟以上才能入睡
- 夜间多次醒来
- 即使睡了7-8小时,醒来仍感疲惫
- 依赖闹钟、咖啡因或意志力才能撑过早晨
- 之前尝试过睡眠卫生建议但执行不连贯
- 希望减少对褪黑素、酒精或助眠药物的依赖
- 经常出现周日晚上失眠或社交时差
操作说明
第一步:睡眠审计
智能体操作:逐一询问用户以下每个问题。将答案记录在智能体状态中。使用结果生成个性化的方案,并填入具体时间。
睡眠审计 — 如实回答,不做评判
- 1. 你目前通常几点上床睡觉?(平均)
- 你目前通常几点起床?(工作日平均)
- 上床后你实际几点才能睡着?
- 夜间你会醒来几次?
- 醒来后30分钟内你感觉如何?
(1 = 精疲力竭,5 = 清醒且精力充沛)
- 6. 你会用酒精帮助入睡吗?
- 你会在床上使用屏幕(手机、电视、笔记本电脑)吗?
- 你大多数情况下最后一次摄入咖啡因是几点?
- 你会午睡吗?如果是,多长时间,几点睡?
- 你的卧室是否黑暗?凉爽?安静?
评分警示标志 — 如有任何适用,在状态中记录以便相关方案步骤使用:
- - 5分钟内入睡:可能长期睡眠不足
- 无论睡多久醒来都不解乏:可能存在睡眠呼吸暂停(建议就医)
- 使用酒精助眠:优先处理此问题(第三步备注)
- 下午2点后最后一次摄入咖啡因:在第四步处理
第二步:设定睡眠锚点(先做这个,其他都是次要的)
最有效的单一干预措施是一致的起床时间——每周7天,包括周末。
智能体操作:询问用户:你必须在几点起床去上班或处理事务?在该时间设置每日早晨提醒。将其标记为睡眠锚点——不要移动此时间。在状态中跟踪起床时间遵守情况。
睡眠锚点规则:
- 1. 选择一个起床时间。每天保持,包括周末。
偏差超过30分钟会破坏整个系统。
- 2. 不要试图在周末补觉。
这样补回睡眠债会重置你的锚点。
- 3. 闹钟响后10分钟内起床。
不要躺在床上试图挤出更多睡眠。
- 4. 一旦锚点稳定,你的身体会在1-2周内
自动调整就寝时间。
为什么这有效:
你的睡眠驱动力(腺苷)从你醒来的那一刻开始积累。
一致的起床时间 = 每晚同一时间有相同的睡眠驱动力
= 更快入睡,睡得更深。
第三步:建立30分钟的放松仪式
你的大脑无法瞬间从工作模式切换到睡眠模式。你需要一个过渡期。
智能体操作:帮助用户从下方菜单中选择他们的具体仪式。将选定的仪式保存到状态中。在目标就寝时间前35分钟设置每日提醒,标记为放松开始。
放松仪式构建器 — 从每个层级中选择2-3项
开始(睡前35分钟):
[ ] 调暗家中所有灯光(或仅使用台灯)
[ ] 停止进食——消化过程会与睡眠竞争
[ ] 准备好明天的衣服、包、钥匙
[ ] 写下明天最重要的3项待办事项
中间(睡前20分钟):
[ ] 洗个热水澡或泡澡(之后体温下降会触发入睡)
[ ] 阅读纸质书或电子墨水阅读器(无背光屏幕)
[ ] 做5分钟温和的拉伸或瑜伽
[ ] 进行大脑倾倒——把脑子里所有东西写在纸上
最后(睡前10分钟):
[ ] 手机屏幕朝下,放在卧室外充电(或设置为勿扰模式,
仅允许真正的紧急情况例外)
[ ] 如可能,将卧室温度降至18-20°C
[ ] 4-7-8呼吸法:吸气4秒,屏息7秒,呼气8秒(重复3次)
[ ] 不要看时间——把时钟转过去
第四步:咖啡因截止时间计算器
咖啡因在大多数人体内的半衰期为5-7小时(如果你超过50岁、正在服用某些药物或代谢较慢,则更长)。
智能体操作:根据用户的目标起床时间,计算他们的咖啡因截止时间,并添加到他们的早晨状态备注中。
咖啡因截止时间计算器:
目标就寝时间:[用户的就寝时间]
半衰期:6小时(保守平均值)
要使就寝时体内咖啡因残留量<25%:
最后一次咖啡因摄入时间 = 就寝时间减去12小时
示例:
就寝时间22:30 → 最后一次咖啡因在10:30前
就寝时间23:30 → 最后一次咖啡因在11:30前
就寝时间00:00 → 最后一次咖啡因在12:00前
隐藏的咖啡因来源:
- 绿茶:每杯25-45毫克
- 黑巧克力:每盎司12-25毫克
- 无咖啡因咖啡:每杯2-25毫克
- 运动前补剂和能量饮料:阅读标签
- 某些止痛药(如Excedrin):每片65毫克
第五步:优化睡眠环境
智能体操作:询问用户目前拥有哪些,缺少哪些。标记那些免费或低成本即可优先修复的缺失项。
睡眠环境检查清单:
黑暗(对睡眠影响最大,仅次于作息时间):
[ ] 遮光窗帘或睡眠眼罩
[ ] 卧室内无LED指示灯
(如有需要,用黑色电工胶带遮盖)
[ ] 完全没有屏幕发光
温度:
[ ] 卧室温度保持在18-20°C
[ ] 如果你容易发热的降温方案:风扇、较轻的被子、
棉质床单、开窗
安静(或持续一致的噪音):
[ ] 白噪音机或风扇(对大多数人来说,持续的噪音
比安静更好——它能掩盖不规则的声音)
[ ] 如果伴侣打鼾,使用耳塞
床只用于睡眠(刺激控制):
[ ] 不在床上工作
[ ] 不在床上看电视
[ ] 不在床上刷手机
[ ] 如果20分钟后仍无法入睡,就起床。
在昏暗灯光下做些无聊的事情直到有睡意。
只有感到困倦时才回到床上。
(这感觉违反直觉——但它有效。)
第六步:午睡规则
午睡可以偿还睡眠债而不破坏夜间睡眠——只要方法正确。
安全午睡方案:
- - 最长时长:20分钟(设置闹钟)
- 最晚午睡时间:下午3点(或就寝前8小时以上)
- 地点:如有可能,不要在床上(椅子、沙发)
- 如果你有夜间入睡困难,不要午睡——
你的睡眠驱动力需要不受干扰地积累
咖啡午睡技巧(违反直觉但有证据支持):
在20分钟午睡前立即喝一杯咖啡。
咖啡因需要20-30分钟才能被吸收。
你醒来时正好咖啡因开始发挥作用。
比单独使用其中任何一种都更有效。
(Horne & Reyner,睡眠惯性,《心理生理学》, 1996)
第七步:两周检查