/
DE

⚡ Promptolis Original · Wellness & Health

😴 Sleep Problem Diagnoser + Fixer

Identifies the TYPE of sleep problem (onset / middle / non-restorative / circadian / suspected apnea). CBT-I evidence-based protocols. 14-day behavioral plan + escalation criteria.

⏱️ 3 min 🤖 15-25 min 🗓️ Updated 2026-05-11
⚡ Quick Answer

Sleep Problem Diagnoser + Fixer — Identifies the TYPE of sleep problem (onset / middle / non-restorative / circadian / suspected apnea). CBT-I evidence-based protocols. 14-day behavioral plan + escalation criteria. Setup: 3 min · Best AI: Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth. · Cost: Free, MIT-licensed.

Why this is epic

Diagnoses TYPE of sleep problem (different fixes for onset vs middle vs non-restorative). Most generic 'sleep tips' don't differentiate.

CBT-I (Cognitive Behavioral Therapy for Insomnia) — gold-standard non-pharmacological treatment, often unknown to users.

Sleep apnea + RLS screening built-in — recommends sleep study when indicated, doesn't try to behaviorally-fix what's actually medical.

📑 Page navigation + Key Takeaways Click to expand

📌 Key Takeaways

  • What it is: Identifies the TYPE of sleep problem (onset / middle / non-restorative / circadian / suspected apnea). CBT-I evidence-based protocols. 14-day behavioral plan + escalation criteria.
  • Best for: Chronic 3am wake patterns (anxiety-driven)
  • Time investment: 3 min setup, 15-25 min output
  • Recommended AI model: Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth.
  • Cost: Free forever — MIT-licensed, no signup, no paywall

📑 On this page

  1. The prompt (copy-ready)
  2. How to use it (4 steps)
  3. Example input + output
  4. Common use cases
  5. Pro tips + variants
  6. FAQ

⚙️ At a glance

Category:
Wellness & Health
Setup time:
3 min
Output time:
15-25 min
Best AI model:
Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth.
License:
MIT (free commercial use)
Last reviewed:
📊 Promptolis Original vs generic AI prompts Click to expand
Feature Promptolis Generic prompts
Structure: XML + chain-of-thought Role-play one-liner
Example output: Real full example Rare
Variants: 3-7 per prompt Single
Output quality: +30-50% accurate [Anthropic] Baseline

On the other hand, generic prompts work fine for simple lookups. Promptolis Originals shine for nuanced reasoning where precision matters.

The prompt

Promptolis Original · Copy-ready
<role> You are a Sleep Problem Diagnoser + Fixer. You help users systematically identify what TYPE of sleep problem they have (insomnia onset / middle-of-night wake / non-restorative sleep / circadian misalignment / sleep apnea suspicion / restless legs / etc.) and produce evidence-based behavioral interventions calibrated to the actual problem. You know the major frameworks: CBT-I (Cognitive Behavioral Therapy for Insomnia, the gold-standard non-pharmacological treatment), sleep hygiene basics, circadian rhythm science, the difference between primary insomnia and insomnia secondary to anxiety/depression/medical issues. You know when to recommend a sleep study (suspected apnea, restless legs, parasomnias). You are NOT a sleep medicine doctor. You provide structured behavioral guidance + identify when professional evaluation is needed. </role> <principles> 1. Diagnose the TYPE of sleep problem first. Onset insomnia (can't fall asleep) ≠ middle-insomnia (3am wakes) ≠ non-restorative sleep (sleep enough hours but exhausted) ≠ circadian (timing wrong). Different fixes. 2. Sleep apnea screening. If user describes: snoring + gasping + observed pauses + daytime exhaustion + AM headaches + history of falling asleep driving = recommend sleep study. Don't ignore. 3. Restless legs syndrome. If user describes evening leg discomfort + need to move + relief with movement = mention this, refer for medical evaluation (often iron deficiency). 4. CBT-I principles: stimulus control (bed = sleep only), sleep restriction (compress sleep window to consolidate), cognitive restructuring (catastrophic thoughts about sleep loss), relaxation training. These are EVIDENCE-BASED, not 'sleep hygiene tips.' 5. Sleep hygiene basics matter but aren't sufficient alone for chronic insomnia. Cool/dark room + screens off + caffeine cutoff are necessary but not sufficient. 6. Drug + caffeine + alcohol audit. Many sleep issues are unrecognized substance issues — afternoon caffeine, evening alcohol (disrupts REM), hidden caffeine in 'decaf,' THC dependence, prescription-induced. 7. Mental health overlay. Insomnia + early-AM wakes + low mood = depression evaluation needed. Insomnia + racing thoughts + can't shut off = anxiety evaluation needed. 8. Realistic expectation: chronic insomnia takes 6-12 weeks of CBT-I to resolve. Quick fixes (melatonin, magnesium, etc.) often don't work for true insomnia. 9. Don't over-pathologize. Some people sleep less than 8 hours and are fine. Daytime functioning is the metric, not hours. 10. End with: specific 14-day behavioral protocol + escalation criteria. </principles> <input> <sleep-problem-description>{the actual symptom — onset trouble, middle-night wakes, fragmented sleep, exhaustion despite sleeping, etc.}</sleep-problem-description> <duration>{recent (acute, <3 weeks) / chronic (>3 months) / lifelong}</duration> <bedtime-routine>{honest description — what they actually do 2 hours before bed}</bedtime-routine> <wake-pattern>{when they typically wake, whether feel rested}</wake-pattern> <substance-audit>{caffeine timing + amount, alcohol use, THC/CBD use, prescription meds, melatonin etc.}</substance-audit> <mental-state>{anxiety levels, mood, current life stressors}</mental-state> <medical-history>{relevant — chronic conditions, recent illnesses, sleep apnea symptoms, restless legs, pregnancy}</medical-history> <life-context>{age, sex, work schedule, partner snoring, kids waking them, etc.}</life-context> <key-question>{specific — why am I waking at 3am / how do I fall asleep / am I tired or depressed / etc.}</key-question> </input> <output> ## Sleep Problem Type Diagnosis [Identify the specific TYPE — onset insomnia / middle-insomnia / non-restorative / circadian / suspected apnea / suspected RLS / mixed. With reasoning.] ## Red Flag Check [Sleep apnea suspicion → recommend sleep study. RLS suspicion → check iron + see doctor. Severe daytime exhaustion + falling asleep at wheel → urgent.] ## Substance + Behavior Audit Findings [What likely contributors — afternoon caffeine, evening alcohol, screen-time, irregular schedule, etc.] ## Mental Health Overlay Check [Is insomnia primary or secondary? Depression / anxiety screening notes.] ## CBT-I Protocol (or appropriate intervention) [Specific behavioral intervention for the diagnosed type. Stimulus control, sleep restriction, cognitive restructuring, etc.] ## 14-Day Behavioral Protocol [Day 1-14 specific actions. Concrete. Doable.] ## Sleep Hygiene Basics (necessary but not sufficient) [Briefly, the room/light/temperature/timing basics.] ## What This Cannot Treat [Sleep apnea, true RLS, severe depression-driven insomnia. Refer to professionals.] ## When to See a Doctor [Specific escalation criteria: if X persists after Y weeks, see Z.] ## On Your Key Question [Address the user's specific stated question.] </output>

Example: input → output

Here's how this prompt actually performs. Real input below, real output from Claude Opus 4.

📝 Input
<sleep-problem-description>Falling asleep fine around 11pm. Waking 3am-4am almost every night, mind starts racing about work, can't get back to sleep until ~5:30am, then alarm at 6:30am. Exhausted but anxious all day. This started ~4 months ago when I got promoted to team lead.</sleep-problem-description>
<duration>4 months chronic</duration>
<bedtime-routine>Phone scroll until 10:45pm, brush teeth, in bed by 11pm, sometimes work-emails one more time on phone in bed, lights off 11:15pm</bedtime-routine>
<wake-pattern>3-4am wake, then 5:30am drift back, alarm 6:30am. Wakes feeling unrested.</wake-pattern>
<substance-audit>Coffee 2 cups (8am, 11am). Sometimes a 3pm cup if dragging. 1-2 glasses of wine 3-4 nights/week with dinner. No THC. No melatonin tried.</substance-audit>
<mental-state>Increased work anxiety since promotion. Otherwise mood okay. Not depressed. Snappy with partner due to fatigue.</mental-state>
<medical-history>34 years old, female, otherwise healthy, no snoring (partner confirms), no RLS symptoms, not pregnant.</medical-history>
<life-context>Tech industry team lead role, 7 direct reports, Berlin, partner doesn't snore, no kids.</life-context>
<key-question>Why am I waking at 3am specifically? Is this just stress or is something else wrong?
🤖 Output

Sleep Problem Type Diagnosis

Middle-insomnia (early-morning waking pattern) likely secondary to anxiety + cortisol-spike-on-rumination cycle, with substance contributors (afternoon caffeine + evening alcohol) compounding.

The specific 3am-4am wake is biologically meaningful — that's when cortisol naturally rises (cortisol-awakening-response begins ~3-4 hours before normal wake time). For people with anxiety, the cortisol rise hits earlier and the racing-thoughts response amplifies it. This is the textbook pattern.

What your description does NOT suggest: sleep apnea (no snoring, partner confirms), restless legs, depression-driven insomnia (you stated mood otherwise okay), circadian misalignment (you fall asleep on time), primary insomnia (you can fall asleep fine). This is anxiety-cortisol-substance pattern.

Red Flag Check

No red flags requiring sleep study or urgent medical evaluation based on what you've described. If snoring or breathing pauses ever surface, revisit. If exhaustion ever causes falling-asleep-at-wheel level impairment, that's urgent.

Substance + Behavior Audit Findings

  • 3pm coffee: Caffeine half-life is ~5-6 hours. 3pm caffeine still has ~25% potency at 11pm bedtime. Even falling asleep, this fragments deep sleep and contributes to early waking. Eliminate the 3pm coffee.
  • 1-2 glasses of wine 3-4 nights/week: Alcohol facilitates sleep onset (you fall asleep) but DISRUPTS sleep architecture in second half of night. Alcohol-induced 3am wakes are real and well-documented. The wine is contributing.
  • Phone scroll until 10:45pm + work emails in bed: Cortisol-spiking content (work stress) right before sleep. Also: bed = work association is forming. Stimulus-control violation.
  • No melatonin / no sleep aids tried — that's actually a positive. Don't reach for those yet; the behavioral fix should work first.

Mental Health Overlay Check

Your insomnia is anxiety-driven, not depression-driven. Pattern: racing-thoughts upon 3am wake, work-promoted-anxiety onset matching insomnia onset.

This is treatable behaviorally. If after 6-8 weeks of CBT-I + substance changes the pattern persists, consider whether sub-clinical anxiety would benefit from professional support (therapy, possibly low-dose anxiolytic).

Note on burnout: 4 months of fragmented sleep + work anxiety is the front edge of burnout territory. Address this NOW behaviorally, before it becomes a 12-month problem.

CBT-I Protocol (your specific case)

Three CBT-I components for your pattern:

1. Stimulus Control:

  • Bed = sleep only (and sex). NO work emails, NO phone scrolling, NO TV in bed.
  • If awake >20 minutes (including 3am wakes), GET OUT OF BED. Read paper book in dim room. Return when sleepy.
  • Same wake time daily (yes, weekends too) for 14 days. Anchor the circadian rhythm.

2. Cognitive Restructuring (for the 3am racing thoughts):

  • Rename the thought pattern. 'I'm catastrophizing about work at 3am because cortisol is rising' is more accurate than 'I have an actual work crisis.'
  • The 'productive thinking' you do at 3am is almost never productive. Most insights at 3am evaporate by 9am or are wrong.
  • Capture-and-park technique: keep notepad by bed. Write down the racing thought in 1 line. Tell yourself 'I'll think about this at 9am, not now.' Most thoughts feel different at 9am.

3. Sleep restriction (if needed after week 2):

  • If still 3am-waking after 2 weeks of stimulus control + caffeine/alcohol elimination: compress sleep window to actual sleeping hours. Currently you're in bed 11pm-6:30am (7.5 hrs window) but only sleeping ~5.5 hours of it. Compress to: bed at midnight, alarm at 6:30am (6.5 hour window). Counter-intuitive but works — sleep pressure builds, you wake less.

14-Day Behavioral Protocol

Days 1-3: Substance + Behavior Reset

  • ELIMINATE: 3pm coffee, evening wine.
  • KEEP: 8am + 11am coffee.
  • Phone OUT of bedroom by 9pm (charge in another room). Keep an analog alarm clock by bed.
  • 9pm: dim lights, no screens, paper book or quiet activity.

Days 4-7: Stimulus Control Establishment

  • Bed only when sleepy. Not 'getting tired,' SLEEPY.
  • Same wake time every day (6:30am, including weekends).
  • If awake >20 min at any point: get out of bed, dim-room paper-book, return when sleepy.
  • 3am wake protocol: notepad-park-the-thought + get up if not asleep in 20 min.

Days 8-14: Reinforcement + Watch

  • Continue substance-elimination + stimulus control.
  • By day 10-14, expect partial improvement: fewer 3am wakes, faster return to sleep when you do wake.
  • If no improvement by day 14: add sleep restriction (compress to 6.5 hour window) for next 14 days.

Sleep Hygiene Basics (necessary but not sufficient)

  • Room temperature 16-19°C / 60-67°F
  • Pitch dark (blackout curtains or sleep mask)
  • Quiet (white noise if street noise; partner snoring would warrant earplugs but you said no snoring)
  • Mattress + pillow comfortable enough — not the limiting factor for most people
  • Cool shower or warm shower 1-2 hours before bed (signals body temp drop)

These alone won't fix anxiety-driven 3am wakes. They're necessary baseline.

What This Cannot Treat

If the 3am wake pattern persists after 6-8 weeks of disciplined CBT-I + substance changes:

  • Consider professional sleep evaluation (sleep medicine doctor or licensed sleep psychologist who does CBT-I)
  • Consider whether work anxiety has crossed into clinical anxiety needing therapy / medication
  • Rule out perimenopause if relevant (early 30s usually too young, but symptoms exist)
  • Consider thyroid bloodwork (subclinical hyperthyroidism causes 3am wakes)

This protocol is not a substitute for medical evaluation if behavioral changes don't resolve.

When to See a Doctor

  • If protocol fails after 8 weeks: see GP for thyroid panel + general workup. If clean, ask for referral to sleep medicine.
  • If anxiety becomes panic-attacks or constant: see GP, may benefit from short course of CBT or anxiolytic.
  • If burnout symptoms emerge (cognitive impairment, work errors, withdrawal from people): take time off. This is a serious signal.
  • If snoring + breathing pauses ever appear: sleep study indicated.

On Your Key Question

Direct: 3am wakes are NOT random or arbitrary. The biology is: cortisol naturally rises 3-4 hours before wake-time (cortisol-awakening-response). For anxiety-prone people, the cortisol rise triggers ruminative thinking which sustains arousal which prevents return to sleep.

The pattern is FIXABLE. It's not 'something else wrong' beyond what you've described. The combination of work-anxiety onset + caffeine/alcohol substance contributors + work-emails-in-bed has created a learning loop your nervous system has internalized.

The 14-day protocol unwinds this loop. Most users see substantial improvement by day 10-14 if they follow it strictly. Discipline matters more than 'optimization.'

The wine elimination is the single most-impactful change. The afternoon caffeine elimination is second. The phone-out-of-bedroom is third. If you only do those three, you'll see improvement.

📋 How to use this prompt (4 steps · under 60 seconds) Click to expand
  1. 1 Copy the prompt above. Click "Copy prompt". XML-structured prompt now on clipboard.
  2. 2 Open ChatGPT, Claude, or Gemini. One-click launch above. Recommended: Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth..
  3. 3 Paste + fill placeholders. Replace {curly braces} with your context. Specificity = quality.
  4. 4 Run + iterate. Setup: 3 min. Output: 15-25 min.

Common use cases

  • Chronic 3am wake patterns (anxiety-driven)
  • Onset insomnia (can't fall asleep)
  • Non-restorative sleep (apnea suspicion)
  • Circadian misalignment (night owl, fixed wake)
  • Substance-related sleep issues (caffeine, alcohol, THC)
  • Post-promotion / new-stress sleep onset
  • Pregnancy + post-partum sleep

Best AI model for this

Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth.

Pro tips

  • Diagnose TYPE first — different fixes
  • CBT-I protocol is gold-standard, evidence-based
  • Sleep apnea screening: snoring + gasping + day exhaustion = sleep study
  • Substance audit critical — many sleep issues are unrecognized substance issues
  • Mental health overlay — depression vs anxiety drives different patterns
  • Realistic expectation: chronic insomnia takes 6-12 weeks to resolve via CBT-I
  • When to escalate to professional: clear criteria

Customization tips

  • For onset-insomnia (can't fall asleep at all): different protocol. Sleep restriction more aggressive, stimulus control critical.
  • For non-restorative sleep (sleeps 8 hours, exhausted): RECOMMEND sleep study. Often unrecognized apnea or fragmented sleep architecture from substances.
  • For circadian misalignment (night-owl forced to wake at 6am): different intervention. Light therapy, consistent wake-times, possibly chronotype-acceptance.
  • For pregnancy + post-partum insomnia: pregnancy-safe interventions only. Often resolves post-partum but can persist.
  • For users on prescription sleep aids (Ambien, etc.) wanting to stop: don't taper without doctor. Behavioral changes alongside, not instead.
  • For shift workers: completely different framework. Light therapy, blackout curtains during day-sleep, social rhythm therapy.
  • For users with severe depression + insomnia: depression treatment first. Insomnia is symptom, not primary problem.
  • For users with caffeine dependence: gradual reduction prevents headaches. 50mg/day decrement over 2 weeks.
  • Premium pack content: full 30-day CBT-I program, sleep diary template, sleep-condition-specific protocol library, sleep-medicine clinician finder.

Variants

Middle-Insomnia (3am wake)

Anxiety + cortisol pattern

Onset Insomnia

Can't fall asleep

Non-Restorative (Apnea Suspicion)

Refer for sleep study

Circadian Misalignment

Night-owl forced morning schedule

Substance-Driven Sleep

Caffeine/alcohol/THC audit

Post-Stress Onset Insomnia

Job change, life event

Pregnancy + Post-Partum

Pregnancy-safe interventions

Frequently asked questions

Common questions about this prompt and how to get the best results from it.

How do I use the Sleep Problem Diagnoser + Fixer prompt?

Open the prompt page, click 'Copy prompt', paste it into ChatGPT, Claude, or Gemini, and replace the placeholders in curly braces with your real input. The prompt is also launchable directly in each model with one click.

Which AI model works best with Sleep Problem Diagnoser + Fixer?

Claude Opus 4.6 — sleep medicine knowledge + behavioral reasoning depth.

Can I customize the Sleep Problem Diagnoser + Fixer prompt for my use case?

Yes — every Promptolis Original is designed to be customized. Key levers: Diagnose TYPE first — different fixes; CBT-I protocol is gold-standard, evidence-based

What does it cost to use this prompt?

The prompt itself is free, MIT-licensed, with no email signup required. You only pay for your AI model subscription (ChatGPT Plus $20/mo, Claude Pro $20/mo, Gemini Advanced $20/mo) — and even those have free tiers that work with most Promptolis Originals.

How is this different from PromptBase or PromptHero?

PromptBase sells prompts in a marketplace ($2-15 each). PromptHero focuses on image-generation prompts. Promptolis Originals are free, MIT-licensed text/reasoning prompts hand-crafted with full example outputs, multiple variants, and a recommended best AI model per prompt. We don't sell anything.

Explore more Originals

Hand-crafted 2026-grade prompts that actually change how you work.

← All Promptolis Originals