From grimoire
Treats chronic insomnia by re-associating the bed with sleep through structured behavioral rules. Use when addressing conditioned arousal and prolonged sleep onset.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:apply-stimulus-control-therapyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Eliminate conditioned wakefulness by systematically re-pairing the bed and bedroom with rapid sleep onset through a structured set of behavioral rules.
Eliminate conditioned wakefulness by systematically re-pairing the bed and bedroom with rapid sleep onset through a structured set of behavioral rules.
Adopted by: AASM clinical practice guidelines (highest level evidence for chronic insomnia); NICE CG192 insomnia guidelines; VA/DoD clinical practice guideline for chronic insomnia; CBT-I (Cognitive Behavioral Therapy for Insomnia) as first-line treatment over medication.
Impact: Bootzin's original trial showed 67% reduction in sleep onset latency; Morin et al. (1994) meta-analysis of 59 studies: stimulus control produced largest effect sizes (d=1.05 sleep efficiency, d=0.87 sleep onset latency) of any behavioral insomnia treatment; AASM rates it "Standard" (highest evidence grade).
Why best: Chronic insomnia is maintained by conditioned arousal — the bed becomes a stimulus that triggers wakefulness through Pavlovian conditioning. Stimulus control therapy extinguishes this association via systematic counter-conditioning, producing reliable results in 4–8 weeks without medication side effects or dependence.
Sources: Bootzin Proc 80th APA Annual Convention (1972); Morin et al. Sleep 17:492–503 (1994); AASM Practice Guidelines J Clin Sleep Med 17:2307–2310 (2021).
Explain the rationale — chronic insomnia involves conditioned arousal: repeated experiences of lying awake in bed teach the brain to activate (heart racing, mind speeding) when entering the bedroom. Stimulus control reverses this by making the bed trigger only sleep.
Rule 1 — Use the bed only for sleep and sex — no reading, watching TV, phone use, eating, worrying, or any wakeful activity in bed. This is non-negotiable; every violation re-conditions the bed as a wakefulness stimulus. Move all non-sleep activities out of the bedroom.
Rule 2 — Go to bed only when sleepy — distinguish sleepiness (eyes heavy, yawning, head nodding — physiological sleep pressure) from tiredness (mental fatigue without sleep drive). Go to bed only when physiologically sleepy, even if past the target bedtime.
Rule 3 — If unable to sleep within ~20 min, get up — do not watch the clock; use subjective sense of ~20 minutes. Get out of bed and go to a dim, quiet space; do a low-stimulation activity (reading a book, gentle stretching — not screens); return to bed only when sleepy again. Repeat as needed throughout the night.
Rule 4 — Maintain a fixed rise time 7 days/week — set an alarm and get up at the same time regardless of how much sleep was obtained the previous night. This is the most critical rule — a fixed rise time consolidates sleep and re-anchors circadian timing.
Rule 5 — No daytime napping (initial phase) — naps reduce homeostatic sleep pressure (adenosine accumulation), making nighttime sleep onset harder. Avoid naps for the first 4 weeks; after sleep consolidates, naps <20 min before 15:00 may be reintroduced.
Track compliance and outcomes — keep a daily sleep diary for the first 4–8 weeks: bedtime (when sleepy), rise time, number and duration of out-of-bed periods, estimated sleep onset latency, estimated total sleep time. Calculate weekly sleep efficiency.
Expect temporary worsening — the first 1–2 weeks often produce shorter total sleep time as sleep pressure builds and conditioned arousal is extinguished. This is expected and essential; frame it as the treatment working. Sleep efficiency should begin improving by week 2–3.
Combine with sleep restriction if needed — if sleep efficiency remains <85% after 2 weeks, add sleep restriction: limit time in bed to estimated average actual sleep time (minimum 5.5 hours); increase TIB by 15–30 min per week when efficiency exceeds 85% for 5 consecutive nights.
Consolidate gains and taper rules — once sleep efficiency >90% for 4 consecutive weeks, the conditioned association is restored; gradually relax rules (e.g., reading in bed may return if done without insomnia relapse); maintain fixed rise time permanently.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireGenerates evidence-based sleep hygiene recommendations including sleep schedule design, environment optimization, light exposure, and behavioral modifications drawn from AASM and CDC guidelines.
Analyzes sleep tracking JSON data for trends, quality via PSQI scores, problem detection like insomnia or apnea risks, and personalized improvement suggestions. Correlates with fitness, diet, mood, and health metrics.
Provides DSM-5 diagnostic criteria, evidence-based therapy modalities (CBT, DBT, EMDR, ACT, etc.), treatment planning, and progress measurement for mental health documentation.