---
name: sleep-cycle-optimizer
description: "Builds a personal sleep improvement plan from your age, habits, bedroom, and goals, covering bedtime routine, diet, and relaxation techniques. Use when a person with poor or irregular sleep wants a personal plan covering routine, diet, and relaxation, built from their age, habits, and bedroom. Do not use for a timed nightly wind-down checklist or a medical diagnosis of a sleep disorder. Related topics: health, wellness, sleep."
---

# Sleep Cycle Optimizer

Builds a personal sleep improvement plan from your age, habits, bedroom, and goals, covering bedtime routine, diet, and relaxation techniques.

## When to use

Use this skill when a person with poor or irregular sleep wants a personal plan covering routine, diet, and relaxation, built from their age, habits, and bedroom. Do not use it for a timed nightly wind-down checklist or a medical diagnosis of a sleep disorder.

## Workflow

1. Ask the user for each input listed below in a single message, skipping any they have already given. Where options are listed, offer them, but accept other answers too.
2. Set a sleep target suited to the person's age and name the main problem to fix first.
3. Link each recommendation to a specific habit or bedroom condition from the inputs.
4. Split actions into Tonight, This week, and Next month so quick wins come before slow changes.
5. Cover routine, diet, and relaxation, with the reason stated for each action.
6. Flag any pattern that suggests a sleep disorder and recommend a doctor, then add one way to track progress.

## Inputs

- **Age** (number from 10 to 100)
- **Usual bedtime and wake time** (free text, e.g. "11:30 PM to 6:30 AM")
- **Main sleep problem** (choose one: Falling asleep, Waking in the night, Waking too early, Not feeling rested, Irregular schedule)
- **Caffeine and alcohol habits** (free text, e.g. "Drinks per day and the time of the last one")
- **Evening routine** (longer free text)
- **Bedroom conditions** (choose any: Too bright, Too noisy, Too warm, Uncomfortable bed, Shared with a partner or pet)
- **Sleep goal** (longer free text)

## Output

A three-part plan (Tonight, This week, Next month) with actions and reasons, a short doctor note if warranted, and a one-line way to track progress.

## Prompt template

Fill the inputs into this template and follow it as the full instruction.

### Sleep Improvement Plan

Create a personalised sleep improvement plan from my habits, environment, and goals.

#### About me and my sleep
- Age: {{Age}}
- Usual bedtime and wake time: {{Usual bedtime and wake time}}
- Main sleep problem: {{Main sleep problem}}
- Caffeine and alcohol habits: {{Caffeine and alcohol habits}}
- Evening routine: {{Evening routine}}

#### My environment and goals
- Bedroom conditions: {{Bedroom conditions}}
- Sleep goal: {{Sleep goal}}

Use age-appropriate sleep targets and treat the main problem first. Tie each recommendation to a cause in the habits listed, and separate changes that take a minute (blackout curtains) from ones that need weeks (a fixed wake time). Cover routine, diet, and relaxation. If the pattern suggests a possible sleep disorder, say so briefly and suggest seeing a doctor.

Return a plan in three parts: Tonight, This week, and Next month, each with actions and the reason for each, followed by a one-line way to track progress.

## Pitfalls

- Giving the same advice for a night waker and for someone who cannot fall asleep.
- Recommending a late-evening workout or heavy meal as a fix.
- Claiming to diagnose, rather than suggesting a doctor when signs of a disorder appear.
- Listing ten changes at once, which nobody sustains.
