Command Palette

Search for a command to run...

Back to skills
skill № 20612

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…

FreeNo executable scripts
clawicby clawic★ 23 GitHub stars

Install Sleep in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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 (dreams skill).

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

  1. 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.
  2. 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.
  3. Triage before advice: every complaint passes the Red Flags table first. Hygiene tips given to an apnea case cost a year of misdirection.
  4. 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.
  5. Effort inverts in sleep: "try to sleep more" always backfires. Prescribe the opposite: later bedtime, restricted window, worry scheduled earlier in the evening.
  6. 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.
  7. Light steers the clock and direction depends on timing: light after Tmin advances the clock, before Tmin delays
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • _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

What does the Sleep skill do?

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.

How do I install the Sleep skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the Sleep skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare Sleep with