Install
openclaw skills install sleep-scienceComplete, self-contained sleep science knowledge base. Use this skill whenever a user asks anything related to sleep timing, sleep debt, naps, caffeine, circadian rhythms, sleep stages, chronotypes, or sleep optimization. An agent with this skill can answer questions like "what time should I sleep if I wake at 6am?", "how much sleep debt do I have?", or "when should I stop drinking coffee?" instantly using the formulas and rules contained here. No external tools needed.
openclaw skills install sleep-scienceThis skill enables an AI agent to answer any question about sleep timing, physiology, optimization, substances, disorders, chronotypes, and performance — using only the formulas, tables, and rules embedded in this document. No external tools, APIs, or sources are required.
All information in this document is empirically validated. Provide clear, direct guidance where strong evidence exists. Where evidence is qualified, ranges exist, or clinical matters are involved, include appropriate uncertainty, individual variation, and referral language. Do not omit safety qualifications or meaningful caveats on clinical topics.
| If the user asks about... | Go to Section |
|---|---|
| Sleep timing, bedtime, wake time | Section 6 (Formulas 1–2) |
| Sleep stages, cycles, architecture | Section 2 |
| Why they feel tired | Sections 2, 3, 10 |
| Circadian rhythm, body clock | Sections 3, 4 |
| Chronotype, night owl, morning person | Section 5 |
| Sleep debt, recovery | Section 6 (Formula 3) |
| Sleep quality, efficiency | Section 6 (Formula 4) |
| Caffeine timing, cutoff | Section 6 (Formula 5) |
| Naps | Section 6 (Formula 6) |
| Social jetlag | Sections 5, 6 (Formula 7) |
| Light, temperature, environment | Section 7 |
| Hormones (GH, testosterone, cortisol) | Section 8 |
| Sleep needs by age | Section 9 |
| Sleep inertia, grogginess | Section 10 |
| Alcohol, cannabis, nicotine, melatonin | Section 11 |
| Exercise and sleep | Section 12 |
| Sleep disorders | Section 13 |
| Polyphasic sleep | Section 14 |
| Memory, performance, cognition | Section 15 |
| Sleep hygiene rules | Section 16 |
| Quick formula reference | Section 17 |
| Pre-built scenario answers | Section 18 |
| Research citations | Section 19 |
Before applying any formula, confirm you have the user's:
If any of these are missing and the formula requires them, ask for them before proceeding.
N1 (NREM Stage 1): Light sleep characterized by theta waves (4–7 Hz). Duration: 1–7 minutes per episode. Comprises approximately 5% of total sleep. Hypnic jerks (sudden muscle contractions) are common. The sleeper is easily awakened. Represents the transition from wakefulness to sleep. No restorative value on its own.
N2 (NREM Stage 2): Defined by sleep spindles (bursts of 12–15 Hz oscillations generated by the thalamus) and K-complexes (large, slow waveforms). Body temperature drops; heart rate slows. Comprises approximately 50% of total sleep across the night. Memory consolidation begins. The sleeper is harder to wake than in N1. Power naps target this stage.
N3 (NREM Stage 3 / Slow-Wave Sleep / Deep Sleep): Defined by delta waves (0.5–4 Hz, high amplitude). Hardest stage to wake from; waking from N3 causes maximum sleep inertia. Physical repair occurs: growth hormone is released, immune cytokines are produced, cellular tissue is rebuilt. Declarative memory consolidation (facts, episodic memories) is consolidated. Comprises approximately 20–25% of total sleep in young adults. Decreases significantly with age (a 70-year-old has ~80% less N3 than a 25-year-old). Concentrated in the first two sleep cycles of the night.
REM (Rapid Eye Movement): The brain is nearly as active as during wakefulness (high-frequency, low-amplitude EEG). Complete skeletal muscle atonia prevents acting out dreams. Vivid dreaming occurs. Functions: emotional memory processing and regulation, creative associative thinking, synaptic pruning, procedural memory consolidation. Comprises approximately 20–25% of total sleep. Concentrated in the last two cycles of the night (cycles 4–5). The last 90-minute cycle of an 8-hour night is almost entirely REM.
One complete sleep cycle = N1 → N2 → N3 → N2 → REM
Cycles are NOT uniform across the night:
Critical implication: Cutting sleep short does not proportionally reduce all stages. Losing the last 2 hours of an 8-hour window eliminates up to 60% of total REM sleep for that night, while barely touching N3.
| Cycle | Clock Time (10 PM sleep) | Dominant Stage | Key Function |
|---|---|---|---|
| 1 | 10:00 PM – 11:30 PM | N3 (Deep) | Physical repair, growth hormone release |
| 2 | 11:30 PM – 1:00 AM | N3 (Deep) | Immune function, cellular restoration |
| 3 | 1:00 AM – 2:30 AM | Mixed (N2 + early REM) | Memory consolidation |
| 4 | 2:30 AM – 4:00 AM | REM | Emotional processing, creativity |
| 5 | 4:00 AM – 5:30 AM | REM | Creativity, synaptic pruning, procedural memory |
The timing, duration, and quality of sleep are governed by the interaction of two independent biological processes: Process S (sleep pressure) and Process C (circadian rhythm). This model was formalized by Alexander Borbély (1982) and remains the foundational framework of sleep science.
Adenosine is a metabolic byproduct of neuronal energy use (ATP breakdown). It accumulates in the basal forebrain and striatum continuously from the moment you wake. As adenosine levels rise, it binds to A1 and A2A receptors in the brain, producing the sensation of sleepiness and slowing neural firing.
How caffeine interacts with Process S: Caffeine does NOT reduce adenosine. It blocks adenosine receptors (competitive antagonism at A1 and A2A receptors), masking the sensation of sleep pressure. When caffeine is metabolized and its receptor blockade ends, the accumulated adenosine (including adenosine that built up while caffeine was blocking perception of it) floods the receptors simultaneously — producing the characteristic "caffeine crash."
The circadian clock is an approximately 24.2-hour internal oscillator. It is entrained daily to 24 hours by environmental time cues, primarily light. The master clock is located in the Suprachiasmatic Nucleus (SCN) of the hypothalamus.
The circadian clock drives two competing signals:
Primary zeitgeber (time-giver): Light — specifically ~480 nm short-wavelength (blue-spectrum) light detected by melanopsin-containing intrinsically photosensitive retinal ganglion cells (ipRGCs), which project directly to the SCN via the retinohypothalamic tract.
Secondary zeitgebers: Meal timing, exercise, social interaction, ambient temperature.
The body's core temperature follows a reliable 24-hour sinusoidal rhythm.
Warm bath/shower protocol: A 10-minute warm bath at 104–108.5°F (40–42.2°C) taken 60–90 minutes before bed induces vasodilation. The resulting post-bath core temperature drop accelerates sleep onset (reduces SOL by ~10 minutes on average) and increases SWS by approximately 8%. The mechanism is counterintuitive: heat applied externally triggers heat dissipation, cooling the core.
Melatonin is produced by the pineal gland from serotonin (the serotonin → N-acetylserotonin → melatonin pathway).
For an intermediate chronotype (wake time ~7 AM):
| Time | Alertness State |
|---|---|
| 7–9 AM | Rising — cortisol awakening response |
| 9–11 AM | Primary alertness peak — optimal for analytical, demanding cognitive work |
| 1–3 PM | Circadian trough — genuine biological dip unrelated to lunch content |
| 3–5 PM | Recovery from trough |
| 5–7 PM | Secondary alertness peak — optimal for physical performance |
| 8–10 PM | Alertness declining; melatonin rising |
The post-lunch dip is a genuine circadian phenomenon driven by the SCN, not by carbohydrate intake. This is why the 1–3 PM window is the optimal nap window.
Chronotype is the genetically influenced, individual preference for the timing of sleep and activity relative to the solar day. It is not a behavioral habit. It is not willpower. It is measurable via the MCTQ (Munich Chronotype Questionnaire), which uses MSFsc (mid-sleep point on free days, corrected for sleep debt) as its primary metric.
| Chronotype | MSFsc | Typical Sleep Window | Population % |
|---|---|---|---|
| Definite Morning (Early) | Before 2:30 AM | ~9 PM – 5 AM | ~12.5% |
| Moderate Morning | 2:30–3:30 AM | ~10 PM – 6 AM | ~12.5% |
| Intermediate | 3:30–5:00 AM | ~11 PM – 7 AM | ~50% |
| Moderate Evening | 5:00–6:00 AM | ~12 AM – 8 AM | ~12.5% |
| Definite Evening (Late) | 6:00 AM or later | ~1–3 AM – 9–11 AM | ~12.5% |
Social Jetlag (hours) = |MSF_sc − MSW|
Where:
MSF_sc = mid-sleep point on free days (corrected for sleep debt)
MSW = mid-sleep point on work/school days
Interpretation:
| Social Jetlag | Health Implication |
|---|---|
| < 1 hour | Minimal; low health risk |
| 1–2 hours | Moderate; measurable metabolic and cognitive impairment |
| > 2 hours | Severe; associated with obesity, diabetes, depression, cardiovascular disease |
1 hour of social jetlag corresponds to approximately a 33% increase in obesity risk (Roenneberg et al., 2012).
Agent rule: Never instruct an evening chronotype to simply "go to bed earlier." Their circadian clock cannot initiate sleep at a morning-type time without structured phase-shifting (light therapy, gradual schedule advancement, or low-dose melatonin timed appropriately). Attempting to force an earlier bedtime on an evening type produces: extended sleep onset latency, fragmented sleep, and residual sleep debt.
Bedtime = Wake Time − (N × 90 min) − SOL
Where:
N = number of complete sleep cycles desired (5 = recommended for adults)
SOL = Sleep Onset Latency = 14 minutes (validated population average)
90 = one sleep cycle in minutes
Standard cycle options:
| Cycles | Total Sleep Duration | Appropriate For |
|---|---|---|
| 4 | 6h 14min | Short-term minimum; not sustainable |
| 5 | 7h 44min | Optimal for most adults |
| 6 | 9h 14min | Recovery sleep, high athletic demand, illness |
Worked Example:
Quick Reference Table — Wake Time → Optimal Bedtime:
| Wake Time | 4 Cycles (6h 14m) | 5 Cycles (7h 44m) | 6 Cycles (9h 14m) |
|---|---|---|---|
| 5:00 AM | 10:46 PM | 9:16 PM | 7:46 PM |
| 5:30 AM | 11:16 PM | 9:46 PM | 8:16 PM |
| 6:00 AM | 11:46 PM | 10:16 PM | 8:46 PM |
| 6:30 AM | 12:16 AM | 10:46 PM | 9:16 PM |
| 7:00 AM | 12:46 AM | 11:16 PM | 9:46 PM |
| 7:30 AM | 1:16 AM | 11:46 PM | 10:16 PM |
| 8:00 AM | 1:46 AM | 12:16 AM | 10:46 PM |
Wake Time = Bedtime + SOL + (N × 90 min)
Where SOL = 14 min, N = 5 (default)
Worked Example:
Agent rule: Round to the nearest 5 or 15 minutes for practical usability.
Daily Sleep Debt = Sleep Need − Actual Sleep Obtained (TST)
Cumulative Sleep Debt = Σ (Daily Sleep Debt) over tracking period
Where:
Sleep Need = age-appropriate baseline (see Section 9; 8h for adults 26–64)
TST = Total Sleep Time (actual minutes asleep, not time in bed)
Worked Example:
Critical Rules for Sleep Debt:
Performance Impairment Thresholds:
| Duration of Wakefulness | Cognitive Equivalent |
|---|---|
| 17–19 hours awake | 0.05% BAC (legally impaired in many jurisdictions) |
| 24 hours awake | 0.10% BAC (legally drunk in most jurisdictions) |
| 6 nights of 4h sleep | Performance = 48 hours total sleep deprivation |
Sleep Efficiency (SE%) = (Total Sleep Time / Time in Bed) × 100
Where:
TST = total minutes asleep
TIB = total minutes from lights-out to final wake
Benchmarks (AASM):
| SE% | Classification |
|---|---|
| ≥ 85% | Healthy |
| 80–84% | Borderline |
| < 80% | Poor; possible insomnia or sleep disorder |
| 90–95% | Excellent |
Worked Example:
Key sleep quality metrics:
Caffeine Cutoff Time = Target Bedtime − (Half-Lives × Half-Life Duration)
Standard rule (2 half-lives): Cutoff = Bedtime − 12h
Conservative rule (3 half-lives): Cutoff = Bedtime − 18h
Caffeine half-life: 5–7 hours (use 6h as the standard)
Caffeine quarter-life: ~12 hours (25% remains after 12h)
Quick reference table:
| Target Bedtime | Standard Cutoff (Bedtime − 12h) | Conservative Cutoff (Bedtime − 18h) |
|---|---|---|
| 9:00 PM | 9:00 AM | 3:00 AM (previous day) |
| 10:00 PM | 10:00 AM | 4:00 AM |
| 11:00 PM | 11:00 AM | 5:00 AM |
| 12:00 AM | 12:00 PM (noon) | 6:00 AM |
Evidence-based cutoff guidance: The minimum evidence-based cutoff is Bedtime − 6 hours (Drake et al., 2013: caffeine consumed 6 hours before bedtime significantly reduces TST). The pharmacokinetically derived 12-hour cutoff (Bedtime − 12h, leaving 25% at bedtime) provides a more conservative margin and better protects N3 depth. The commonly cited "no caffeine after 2 PM" social guideline maps to Bedtime − 8h for a 10 PM sleeper — better than the 6-hour floor, but less protective than the 12-hour formula. Use Bedtime − 12h as the recommended cutoff. Use Bedtime − 6h as the absolute minimum. Apply the earlier cutoff for larger doses, slow metabolizers, or sleep-sensitive individuals.
Caffeine pharmacokinetics (6-hour half-life):
| Time After Consumption | % Caffeine Remaining |
|---|---|
| 0h | 100% |
| 6h | 50% |
| 12h | 25% |
| 18h | 12.5% |
| 24h | 6.25% |
Beyond sleep latency: Even when caffeine does not prevent sleep onset, it reduces N3 (slow-wave sleep) by up to 20% — the equivalent, in terms of deep sleep depth, of aging the brain 10–15 years (Walker, 2017). This effect occurs even when the person self-reports sleeping "fine" after caffeine.
Genetic variation (CYP1A2 gene, rs762551):
| Genotype | Metabolizer Type | Caffeine Half-Life | Note |
|---|---|---|---|
| AA | Faster | ~3–5 hours | Higher CYP1A2 inducibility |
| AC or CC | Slower | ~6–9 hours | Lower CYP1A2 inducibility |
Population frequencies vary substantially by ancestry — treat genotype as a directional modifier, not a deterministic predictor. Slow metabolizers require an earlier cutoff time than the standard formula suggests.
Caffeine dose reference:
| Source | Approximate Caffeine |
|---|---|
| Espresso (single shot, 30 ml) | 60–80 mg |
| Drip coffee (240 ml) | 80–120 mg |
| Filter coffee (240 ml) | 100–150 mg |
| Cold brew (240 ml) | 150–240 mg |
| Energy drink (250 ml) | 80–160 mg |
| Black tea (240 ml) | 40–70 mg |
| Green tea (240 ml) | 25–45 mg |
| Dark chocolate (40 g) | 20–60 mg |
| Decaf coffee (240 ml) | 2–15 mg |
Nap effectiveness is determined by which sleep stages are reached. Stage entry timing is predictable.
Stage entry timeline from sleep onset:
0–5 min: N1 (hypnagogic state, transitional)
5–15 min: N2 (light sleep; restorative; target for power naps)
15–30 min: N2 deepening
30–45 min: N3 entry begins
45–90 min: REM entry (after N3 completion)
90 min: Completion of one full cycle
The Four Evidence-Based Nap Types:
| Nap Type | Duration | Stages Reached | Benefits | Risks |
|---|---|---|---|---|
| Micro-nap | 1–5 min | N1 | Mild alertness boost | Minimal |
| Power Nap | 10–20 min | N1, N2 | Alertness, motor performance, mood | Minimal sleep inertia |
| SWS Nap | 45–60 min | N1, N2, N3 | Deep physical restoration, memory consolidation | Significant sleep inertia (15–30 min) |
| Full Cycle Nap | 90 min | N1, N2, N3, REM | Complete cognitive and physical restoration | Minimal inertia; delays nighttime sleep onset |
The Nappuccino (Coffee Nap) — validated protocol:
Nap Cutoff Rule:
Latest acceptable nap END time = Habitual Bedtime − 6 hours
Example: 10:30 PM bedtime → last nap must END by 4:30 PM
Example: 11:00 PM bedtime → last nap must END by 5:00 PM
Optimal nap window: 1:00 PM – 3:00 PM. This aligns with the circadian trough, minimizes disruption to nighttime sleep pressure, and is consistent with biphasic sleep patterns found in non-industrialized populations.
Napping outside this window — particularly after 4 PM — measurably suppresses nighttime N3 depth and delays sleep onset.
(Full social jetlag formula is in Section 5. Additional rules:)
Circadian Adjustment Rate:
Eastward phase advance (earlier): 1–1.5 hours per day maximum
Westward phase delay (later): 1.5–2 hours per day maximum
Example: Shifting sleep from 2:00 AM to 11:00 PM requires 1–2 weeks of gradual adjustment.
Practical Shifting Protocol (15-Minute Rule):
Morning bright light (within 30–60 min of waking):
Evening light avoidance (2–3 hours before bed):
Night-light rules:
Warm bath/shower protocol:
Bedroom temperature guidelines:
| Temperature | Sleep Effect |
|---|---|
| 65–68°F (18.3–20°C) | Optimal for N3 and REM depth |
| 70–75°F (21–24°C) | Measurable N3 suppression |
| >75°F (>24°C) | Significantly suppresses N3 and REM |
| <60°F (<15.5°C) | Increases metabolic arousal; disrupts continuity |
Peripheral vasodilation tip: Wearing socks to bed accelerates sleep onset by increasing blood flow to the feet, which dissipates core heat more rapidly.
| Hormone | Role | Effect of <6h Sleep |
|---|---|---|
| Leptin | Satiety signal | Decreases ~18% |
| Ghrelin | Hunger signal | Increases ~28% |
Combined result: approximately +24% increase in appetite, preferentially for high-carbohydrate, calorie-dense foods. This is a direct biological mechanism linking sleep deprivation to weight gain and obesity.
| Age Group | Age Range | Recommended Sleep | Acceptable Range |
|---|---|---|---|
| Newborn | 0–3 months | 14–17 hours | 11–19 hours |
| Infant | 4–11 months | 12–15 hours | 10–18 hours |
| Toddler | 1–2 years | 11–14 hours | 9–16 hours |
| Preschool | 3–5 years | 10–13 hours | 8–14 hours |
| School-age | 6–13 years | 9–11 hours | 7–12 hours |
| Teen | 14–17 years | 8–10 hours | 7–11 hours |
| Young Adult | 18–25 years | 7–9 hours | 6–11 hours |
| Adult | 26–64 years | 7–9 hours | 6–10 hours |
| Older Adult | ≥65 years | 7–8 hours | 5–9 hours |
Critical notes:
Sleep inertia is the transitional state of cognitive impairment and subjective grogginess immediately upon waking. Caused by: (1) residual adenosine in the brain that has not been fully metabolized, and (2) residual delta-wave activity that persists briefly into wakefulness.
Duration: 15 minutes to 2 hours, depending on the stage from which awakening occurred.
| Wake-from Stage | Sleep Inertia Duration |
|---|---|
| N1 or REM | Minimal (5–15 min) |
| N2 | Moderate (15–30 min) |
| N3 | Severe (30 min – 2 hours) |
Why it matters: During sleep inertia, decision-making ability, reaction time, and memory retrieval are impaired to a degree comparable to mild sleep deprivation. This is critical for surgeons, pilots, emergency responders, and anyone required to perform immediately upon waking.
Evidence-based mitigation strategies:
Alcohol is a sedative (GABA-A receptor agonist), not a sleep aid. The distinction is critical: sedation is not sleep.
Effects on sleep architecture:
Alcohol metabolism rate: ~1 standard drink per hour (population average; individual rates vary
significantly based on ADH/ALDH enzyme genetics, liver function, body mass, and ancestry —
some individuals metabolize substantially slower)
Safe sleep window: last drink ≥ 3 hours before sleep
(e.g., last drink by 7:00 PM for 10:00 PM sleep)
| Dose Range | Classification | Effect |
|---|---|---|
| 0.1–0.5 mg | Physiological | Circadian phase signal (correct use) |
| 0.5–1.0 mg | Low pharmacological | Mixed signal/sedative |
| 1–10 mg | Pharmacological | Primarily sedative; not circadian correction |
| >10 mg | Supraphysiological | No added circadian benefit; may cause morning grogginess |
Most commercially sold melatonin: 5–10 mg — up to 20–100× the physiological dose.
Correct use cases:
Regular aerobic exercise improves: total sleep time, sleep efficiency, N3 depth, and SOL — consistently across studies.
Timing rules:
| Exercise Timing | Effect on Sleep |
|---|---|
| Morning (6–10 AM) | Strongly beneficial; no disruption |
| Afternoon (2–6 PM) | Beneficial; core temperature peak aligns with exercise demands |
| Evening (within 2h of bed) | Variable; vigorous exercise can delay sleep onset via elevated core temperature and sympathetic activation |
Safe cutoff for vigorous exercise: finish at least 2–3 hours before bedtime. Light exercise (walking, stretching, yoga) within 1 hour of bed: generally beneficial for sleep onset.
Sleep deprivation reduces exercise motivation, physical output, reaction time, and recovery (Mah et al., 2011). One full recovery night can restore most athletic performance metrics. The relationship is bidirectional: poor sleep worsens performance; poor performance reflects poor sleep.
Agent rule: If a user describes symptoms consistent with any disorder below at clinical threshold, recommend consultation with a board-certified sleep medicine physician. Optimization rules alone do not treat sleep disorders.
All of the following must be present:
Screening indicators: loud snoring, witnessed apneas (pauses in breathing), morning headaches, excessive daytime sleepiness, non-restorative sleep, nocturia.
Diagnosis: Polysomnography (PSG) in a lab or validated Home Sleep Apnea Test (HSAT).
Apnea-Hypopnea Index (AHI) — events per hour:
| AHI | Classification |
|---|---|
| < 5 | Normal |
| 5–14 | Mild OSA |
| 15–29 | Moderate OSA |
| ≥ 30 | Severe OSA |
Monophasic sleep: One consolidated nocturnal block per 24 hours. Standard in industrialized societies. Well-supported by circadian biology (the circadian clock produces one major sleep-promotion window per 24 hours).
Biphasic sleep: One primary nocturnal block (6–7h) + one short afternoon nap (20–30 min or 90 min during the circadian trough). Arguably the most biologically natural pattern. Supported by anthropological data from non-industrialized populations and consistent with the existence of the circadian trough at 1–3 PM. The only polyphasic variant with reasonable biological support.
Everyman (E3):
Uberman:
Dymaxion:
Agent rule: Do not recommend any polyphasic pattern beyond biphasic without explicit, substantial caveats. For most users, the answer is: biphasic sleep (nighttime + afternoon nap) is the only non-monophasic pattern with biological support.
| Memory Type | Consolidation Stage | Notes |
|---|---|---|
| Declarative (facts, events) | N2 and N3 | Hippocampus → cortex transfer |
| Procedural (motor skills) | N2 and REM | Basal ganglia and motor cortex |
| Emotional | REM | Amygdala reprocessing; emotional intensity downregulated |
Microsleep: An involuntary 0.5–15 second episode of sleep during wakefulness. Begins occurring when: awake >16 continuous hours, or after chronic sleep restriction. The individual is unaware the microsleep occurred. Fatal in driving, aviation, and operation of heavy machinery.
| Nightly Sleep | Days Until Performance Equivalent to 48h Deprivation |
|---|---|
| 8 hours | Never (stable) |
| 7 hours | Never (minimal decline) |
| 6 hours | ~10 days |
| 5 hours | ~5 days |
| 4 hours | ~3 days |
Each rule below is accompanied by its mechanism.
Stimulus control (CBT-I, highest evidence level):
Sleep restriction therapy (CBT-I):
Consistent sleep-wake timing:
Bedroom environment:
| Factor | Target |
|---|---|
| Light | Total darkness (blackout curtains or sleep mask) |
| Temperature | 65–68°F (18–20°C) |
| Sound | <40 dB; white noise if ambient noise exceeds this |
| Bed association | Sleep and sex only |
Pre-sleep wind-down:
BEDTIME = Wake Time − (N × 90 min) − 14 min [N = 5 default]
WAKE TIME = Bedtime + 14 min + (N × 90 min)
SLEEP DEBT = Sleep Need − TST (sum over tracking period)
CAFFEINE = Bedtime − 12 hours (standard: 2 × 6h half-lives)
EFFICIENCY = (TST / TIB) × 100 [target ≥ 85%]
SOCIAL JL = |Mid-sleep free days − Mid-sleep work days|
NAPPUCCINO = 200 mg caffeine → immediate 20-min nap → wake as caffeine peaks
NAP CUTOFF = Bedtime − 6 hours
ROOM TEMP = 65–68°F / 18–20°C
LIGHT CUT = No bright light 2h before bed; morning light within 30 min of wake
SOL NORMAL = 10–20 min; < 5 min = sleep-deprived; > 30 min = poor onset
WASO NORMAL = < 20 min; > 30 min = poor continuity
SE% HEALTHY = ≥ 85%
Scenario 1: "What time should I go to sleep if I wake up at 6 AM?"
Formula: Bedtime = 6:00 AM − (5 × 90 min) − 14 min = 6:00 AM − 464 min = 10:16 PM For 4 cycles (minimum): 6:00 AM − (4 × 90 min) − 14 min = 11:46 PM Answer: Go to bed at 10:16 PM to complete 5 full sleep cycles (7h 44m) and wake refreshed at the end of a REM cycle. Set the alarm for 6:00 AM, not earlier.
Scenario 2: "I only got 5 hours last night. How long will it take to recover?"
Formula: Sleep debt = 8h (need) − 5h (TST) = 3-hour debt from one night. Recovery: Add 1–2 extra hours for 2–3 nights. Subjective sleepiness will recover in 1–2 nights; objective cognitive performance takes up to 3 days to fully normalize (Van Dongen et al., 2003). Do not sleep in more than 2 hours past normal wake time, or the following night's sleep will be disrupted.
Scenario 3: "When should I stop drinking coffee? I sleep at 11 PM."
Formula: Caffeine cutoff = 11:00 PM − 12h (2 half-lives at 6h) = 11:00 AM Standard practical guidance: last caffeine by 2:00 PM to leave 9 hours before sleep (>80% clearance). If the user is a slow CYP1A2 metabolizer, move cutoff to 9:00–10:00 AM. Note: even "on-time" caffeine may reduce N3 depth by up to 20%.
Scenario 4: "Is a 30-minute nap good or bad?"
A 30-minute nap is problematic because it falls in the transition window where N3 entry begins (~30–45 min from onset). Waking from early N3 produces significant sleep inertia (30–60 minutes of grogginess). Either shorten to 20 minutes (power nap, wake from N2) or lengthen to 90 minutes (full cycle, wake from REM/N1). The 20-minute power nap is the practical default. If the user has sufficient time and a 4+ hour buffer before bedtime, the 90-minute full cycle nap is superior for full restoration.
Scenario 5: "I'm a night owl. How do I shift my sleep earlier?"
Evening chronotype is genetic (circadian period is biologically delayed). Cannot be overridden by willpower. Protocol:
Scenario 6: "How do I calculate if I have sleep debt?"
Formula: Sleep debt = (Sleep Need − TST) per night, summed over the tracking period. Example: Need 8h. Actual TST: Mon 6h, Tue 7h, Wed 6.5h, Thu 7h, Fri 9h. Debt: (2) + (1) + (1.5) + (1) + (−1) = 4.5 hours cumulative debt by end of week. Note: TST = time actually asleep, not time in bed. Track TST using a sleep tracker or by estimating: TIB minus SOL minus WASO.
Scenario 7: "I sleep 8 hours but still feel tired. What could explain this?"
Possible causes, in order of prevalence:
Scenario 8: "What's the ideal nap to take at 2 PM before an evening event?"
At 2 PM, the user is in the circadian trough — the optimal nap window. Recommend a 20-minute power nap (wake before N3 entry, no sleep inertia). If maximum alertness is needed at the event:
Scenario 9: "I wake up at 3 AM and can't get back to sleep. What's happening?"
3 AM corresponds to the end of N3-dominated cycles (cycles 1–2) and the transition into REM-dominant cycles. This timing is physiologically significant.
Most likely causes:
Scenario 10: "Does alcohol help me sleep?"
No. Alcohol is a sedative, not a sleep aid. It accelerates sleep onset (Process S is not improved; the brain is chemically suppressed), but it:
Kleitman & Aserinsky (1953) Regularly occurring periods of eye motility and concomitant phenomena during sleep — Science. Key finding: Discovery of REM sleep. Established that sleep is not a uniform passive state but contains a distinct, cyclically recurring phase of rapid eye movement associated with dreaming. Foundational to all subsequent sleep science.
Borbély (1982) A two-process model of sleep regulation — Human Neurobiology. Key finding: Formalized the two-process model: Process S (sleep homeostasis, driven by adenosine accumulation) and Process C (circadian clock). Their interaction determines sleep timing, duration, and quality. The foundational framework of sleep regulation.
Van Dongen, Maislin, Mullington & Dinges (2003) The cumulative cost of additional wakefulness: dose-response effects on neurobehavioral functions and sleep physiology from chronic sleep restriction and total sleep deprivation — Sleep. Key finding: Chronic restriction to 6h/night for 2 weeks produces cognitive impairment equivalent to 48 hours of total sleep deprivation. Subjects were unable to accurately perceive their own impairment. Performance never stabilized — it continued to deteriorate. Performance does not recover for up to 3 days after restoration.
Walker & Stickgold (2004) Sleep-dependent learning and memory consolidation — Neuron. Key finding: Sleep is not passive for memory. Specific stages consolidate specific memory types: SWS for declarative memory, REM for procedural and emotional memory. A single night of poor sleep after learning reduces retention by up to 40%.
Roenneberg, Wirz-Justice & Merrow (2003); Roenneberg et al. (2012) A marker for the end of adolescence (2003) and Social jetlag and obesity (2012) — Current Biology. Key findings: Developed the MCTQ and MSFsc metric for chronotype. Documented that chronotype follows a developmental trajectory, peaking in lateness during adolescence. Each hour of social jetlag increases obesity risk by ~33%.
Leproult & Van Cauter (2011) Effect of 1 week of sleep restriction on testosterone levels in young healthy men — JAMA. Key finding: One week of sleeping less than 6 hours per night reduces daytime testosterone levels by 10–15% in healthy young men — equivalent to aging 10–15 years in hormonal terms.
Cajochen, Frey, Anders, Späti, Bues, Pross, Mager, Wirz-Justice & Stefani (2011) Evening exposure to a light-emitting diode (LED)-backlit computer screen affects circadian physiology and cognitive performance — Journal of Applied Physiology. Key finding: Exposure to LED screen light in the evening suppresses melatonin, delays DLMO, and impairs next-morning alertness. Blue-spectrum (short-wavelength) light is the primary melatonin suppressor via ipRGC melanopsin activation.
Scullin, Krueger, Ballard, Pruett & Bliwise (2018) The effects of bedtime writing on difficulty falling asleep: A polysomnographic study comparing to-do lists and completed activity lists — Experimental Brain Research. Key finding: Writing a to-do list for the following day immediately before bed reduced sleep onset latency by an average of 9 minutes compared to writing a list of completed activities. The more specific and complete the to-do list, the greater the SOL reduction. Mechanism: offloads prospective memory from working memory, reducing cognitive arousal.
Mah, Mah, Kezirian & Dement (2011) The effects of sleep extension on the athletic performance of collegiate basketball players — Sleep. Key finding: Extending sleep to 10 hours per night for 5–7 weeks improved sprint times, shooting accuracy, reaction time, and mood in collegiate athletes. Sleep is a performance-enhancing intervention. Sleep deprivation measurably impairs all athletic performance metrics.
Park, White, Jackson, Weinhouse & Chan (2019) Association of exposure to artificial light at night while sleeping with risk of obesity in women — JAMA Internal Medicine. NIEHS Sister Study cohort. Key finding: Women sleeping with a light or television on in the room were 17% more likely to gain at least 11 pounds over 5 years and 33% more likely to become obese, independent of prior weight, diet, and exercise. Any artificial light at night during sleep — even low-level — is associated with measurable metabolic consequences.
End of SKILL.md — Sleep Science v1.0.1 This document is entirely self-contained. All formulas, tables, and rules are sufficient to answer any sleep-related query without external sources. For clinical sleep disorders, always recommend consultation with a board-certified sleep medicine physician.