Sleep Cycle Optimizer skill for Claude and Codex
Builds a personal sleep improvement plan from your age, habits, bedroom, and goals, covering bedtime routine, diet, and relaxation techniques.
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
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.
What it will ask you for
- 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)
How it works
- Set a sleep target suited to the person's age and name the main problem to fix first.
- Link each recommendation to a specific habit or bedroom condition from the inputs.
- Split actions into Tonight, This week, and Next month so quick wins come before slow changes.
- Cover routine, diet, and relaxation, with the reason stated for each action.
- Flag any pattern that suggests a sleep disorder and recommend a doctor, then add one way to track progress.
What you get
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.
What it watches out for
- 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.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.