Sleep
Coaches sleep with quantified protocols: insomnia CBT-I, jet lag light timing, shift work anchors, caffeine and melatonin cutoffs. Use when the user cannot…
от clawic★ 23 звезды на GitHub
Установить Sleep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Operational sleep coaching: triage the complaint, run the protocol with numbers, route red flags to a clinician instead of coaching past them. Advise mode only: guide the human, never touch their medication. Diary, trip plans, and preferences persist in ~/Clawic/data/sleep/ (see setup.md on first use, memory-template.md for the file format; created only when the user starts a protocol). If you have data at an old location (~/sleep/ or ~/clawic/sleep/), move it to ~/Clawic/data/sleep/, and say in one line that you moved it and from where.
When To Use
- User reports trouble falling asleep, 3am waking, early waking, or daytime tiredness.
- Trip planning across time zones: build the light and melatonin schedule before departure.
- Scheduling questions touching sleep: nap timing, caffeine cutoff, workout placement, chronotype.
- Night shifts or rotating schedules: damage-control plan, not adaptation fantasies.
- Nightmares, sleep paralysis, sleepwalking, snoring partner, tracker data, or sleep during pregnancy, new parenthood, menopause, or past 65.
- Not for diagnosing sleep disorders: snoring with gasps, dream enactment, sleep attacks go to a clinician (→ Red Flags). Not for dream journaling (
dreamsskill).
Quick Reference
| Situation | Play |
|---|---|
| Bad sleep < 3 months, tied to a stressor | Acute: hold wake time, ban naps and early bedtimes, wait it out (→ insomnia.md) |
| Bad sleep ≥ 3 nights/week for ≥ 3 months | Chronic insomnia (ICSD-3): run CBT-I lite (→ insomnia.md) |
| Loud snoring + witnessed pauses + sleepy days | Stop coaching, refer for a sleep study (→ Red Flags) |
| Cannot fall asleep before 2-3am but sleeps fine when free-running | Delayed phase, not insomnia — restriction is the wrong tool (→ circadian.md) |
| Waking 4-5am done sleeping, often age 60+ | Advanced phase vs mood — screen both (→ circadian.md) |
| Crossing ≥ 3 zones AND ≥ 3 nights there | Adapt: compute Tmin, schedule light by direction (→ jetlag.md) |
| Crossing < 3 zones OR < 3 nights there | Rule of 3: stay on home time, book meetings in the overlap window |
| Night or rotating shifts | Anchor sleep + commute light control (→ shiftwork.md) |
| "Should I nap?" | 10-20 min, finished ≥ 8 h before bedtime; never during an insomnia protocol (→ performance.md) |
| Big day after a bad night, or an unavoidable all-nighter | Damage control: nap math, caffeine timing, no-drive line (→ performance.md) |
| Tracker score bad, user feels fine | Trust daytime function; stage data is noise (→ trackers.md) |
| "What supplement helps?" | Melatonin 0.5 mg timed for phase shift; everything else is weak (→ substances.md) |
| Nightmares, sleep paralysis, sleepwalking, night terrors | Identify by timing and recall, treat or refer (→ parasomnias.md) |
| Teen, pregnant, new parent, menopause, 65+ | Base protocols carry modifiers (→ populations.md) |
| Room too hot, bright, loud; partner snores; kids or pets in bed | Fix the environment before blaming the sleeper (→ environment.md) |
| Weekend "catch-up" sleep | Cap wake-time drift at 1 h; 2 h drift = social jet lag and a Monday relapse |
| Any other sleep complaint | Start the 7-day diary in ~/Clawic/data/sleep/diary.md; no intervention before data |
Depth on demand: insomnia.md full CBT-I lite, 3am playbook, relapse plan · jetlag.md direction math, worked trip tables, pre-flight shifting · shiftwork.md anchors, rotation design, first-night survival · circadian.md night owls, larks, DSPS, light therapy · environment.md bedroom, noise, partners · substances.md every cutoff and dose · trackers.md what to read, what to ignore · parasomnias.md nightmares to sleepwalking · populations.md life stages · performance.md naps, debt, all-nighters.
Core Rules
- Wake Anchor: one fixed wake time ±30 min, 7 days/week; bedtime floats with sleepiness. Highest-leverage single change; check that weekend wake stays within 1 h of weekday wake.
- Judge sleep by daytime function, not hours. Adult range is 7-9 h (consensus guidelines), not a universal 8: alert on 6.5 h = that user's number; sleepy in meetings after 8 h = a problem despite the hours.
- Triage before advice: every complaint passes the Red Flags table first. Hygiene tips given to an apnea case cost a year of misdirection.
- Stimulus control (Bootzin): awake ~20 min by feel (no clock-checking), leave the bed, dim light, boring analog activity, return only when sleepy. Best-evidenced single insomnia technique.
- Effort inverts in sleep: "try to sleep more" always backfires. Prescribe the opposite: later bedtime, restricted window, worry scheduled earlier in the evening.
- Time substances by half-life, not by feel: caffeine last dose ≥ 8 h before bed, alcohol last drink ≥ 3 h, melatonin 0.5 mg taken 5 h before target bedtime when the goal is shifting the clock.
- Light steers the clock and direction depends on timing: light after Tmin advances the clock, before Tmin delays
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- circadian.md
- environment.md
- insomnia.md
- jetlag.md
- memory-template.md
- parasomnias.md
- performance.md
- populations.md
- setup.md
- shiftwork.md
- substances.md
- trackers.md
FAQ
Что делает скилл Sleep?
Coaches sleep with quantified protocols: insomnia CBT-I, jet lag light timing, shift work anchors, caffeine and melatonin cutoffs. Use when the user cannot fall asleep or stay asleep, wakes at 3am, feels tired or unrefreshed all day, is a night owl who cannot wake early, works nights or rotating shifts, plans travel across time zones, or asks about naps, snoring, nightmares, sleep paralysis, sleeping pills, bedroom setup, a newborn or menopause wrecking sleep, or what their sleep tracker score means. Not for dream journaling or interpretation.
Как установить скилл Sleep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Sleep запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…