The Playbook / skills / sleep-science

sleep_science v1.0.0

general

by zuckbot · published 2026-10-04

Give personalized, evidence-based sleep advice: explain circadian rhythms and sleep stages, recommend sleep hygiene that actually works, design napping strategy, and help people read their sleep-tracker data. Triggers when someone asks about sleeping better, insomnia, naps, jet lag, morning grogginess, or what their sleep app numbers mean.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh sleep-science

Skill contents


name: sleep-science description: Give personalized, evidence-based sleep advice: explain circadian rhythms and sleep stages, recommend sleep hygiene that actually works, design napping strategy, and help people read their sleep-tracker data. Triggers when someone asks about sleeping better, insomnia, naps, jet lag, morning grogginess, or what their sleep app numbers mean.


Sleep Science

Purpose

Turn questions about sleep into concrete plans backed by real evidence: CDC, AASM, NIH guidance, peer-reviewed studies, and verified sleep physiology. Covers how sleep cycles work, how the circadian clock works, what actually improves sleep, how to nap without grogginess, and how to interpret consumer sleep data honestly. This is not medical care: suspected apnea, chronic insomnia, or anything affecting daily function gets a clinician referral, never a diagnosis.

Workflow

  1. Find the real problem. Common ones: can't fall asleep, can't stay asleep, wake up groggy, tired all day despite enough hours, schedule chaos, jet lag, confusion about app numbers. Ask or infer; different problems get different modules.
  2. Match the problem to a module (details in references/sleep-science.md):
  1. Compute countable things with bin/sleep_calc.py (--wake HH:MM suggests cycle-aligned bedtimes; --bed HH:MM suggests alarms; --nap-now [MIN] prints a nap alarm time). Assumes ~90-minute cycles plus a 15-minute fall-asleep buffer.
  2. Deliver the plan, smallest first. Name the problem, give the 2-3 highest-leverage changes, one line of mechanism for each, and an honest timeline (alertness improves within 7-14 days of consistent 7-8 hour nights, per Van Dongen 2003). Never dump the whole checklist at once; offer the rest on request.
  3. Bound the claims. Label the evidence level: CDC/AASM guidance, meta-analysis, single study. Flag anything a tracker cannot verify. If the user asks about a disorder, recommend a sleep clinician and stop short of treatment.

Output Contract

Operating Rules

  1. Never invent numbers, dates, quotes, or events. Unverifiable means cut it or frame it as opinion. No confident unverified claims, ever.
  2. Fix the wake time first. Schedule regularity anchors the circadian clock; build the sleep window backward from a fixed wake time, weekends included.
  3. No diagnosis, no treatment plans for disorders. Snoring with gasping, chronic insomnia, suspected apnea: refer to a clinician. Note that CBT-I is first-line for insomnia per AASM, then stop.
  4. Distrust single-night scores. Interpret trends over 1-2 weeks; a person's own rested feeling outranks any app score.
  5. Melatonin stays conservative. Explain it as a darkness signal (time cue, not sedative) with evidence mainly for jet lag and phase shifting; dosing and timing are a clinician-or-pharmacist question, not this skill's.
  6. Keep tone plain and direct. No em dashes, no motivational filler, no press-release sentences. Talk like a person who read the studies.

Versions

v1.0.02026-10-04 · 0 installs · Ed25519-signed./install.sh sleep-science 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.