AGENT SKILL

sleep-optimizer

Builds a personalized sleep protocol - a fixed wake time held within 30 minutes daily, a chronotype-aligned sleep window, a light-exposure plan, environment settings, evening input rules, and a scripted wind-down routine - from a baseline assessment. Use when someone says "I can't fall asleep", "I wake up at 3am every night", "fix my sleep schedule", or "I'm exhausted no matter how long I sleep". General wellness education, not medical advice - snoring with gasping, suspected apnea, or chronic insomnia route to a physician or sleep specialist. Do NOT use when racing thoughts and daytime stress are the primary complaint - use stress-management instead; for the broader multi-pillar health routine, use longevity-protocol.

License 许可
MIT
所属仓库
SkillMedev/skills
最近更新
2026-10-14
Stars
★ 25
Forks
3

01 前言 Front Matter

name
sleep-optimizer
metadata
{ "title": "Sleep Optimizer" }
description
Builds a personalized sleep protocol - a fixed wake time held within 30 minutes daily, a chronotype-aligned sleep window, a light-exposure plan, environment settings, evening input rules, and a scripted wind-down routine - from a baseline assessment. Use when someone says "I can't fall asleep", "I wake up at 3am every night", "fix my sleep schedule", or "I'm exhausted no matter how long I sleep". General wellness education, not medical advice - snoring with gasping, suspected apnea, or chronic insomnia route to a physician or sleep specialist. Do NOT use when racing thoughts and daytime stress are the primary complaint - use stress-management instead; for the broader multi-pillar health routine, use longevity-protocol.

03 SKILL.md 正文

Sleep Optimizer

Most people try to fix sleep from the wrong end - chasing an earlier bedtime with willpower while their wake time drifts by hours across the week. Wake-time consistency is the single strongest lever, and everything else in the protocol hangs off it. This skill builds a complete protocol: fixed wake time, light plan, environment, input rules, and a scripted wind-down - then changes one variable at a time so the user can tell what worked.

Operating procedure

Steps run in this order because the wake anchor must exist before the bedtime, light plan, and wind-down can be scheduled against it.

Step 1: Assess the baseline

Collect: typical bedtime and wake time, weekday versus weekend (the gap between them is the social-jetlag number to shrink); time to fall asleep and number of night wakings; caffeine dose and timing, alcohol frequency, and evening screen habits; energy dips and peaks across the day; work constraints (fixed start time, shift work); and bed partner factors (snoring, different schedules). Screen the red flags in Escalation before optimizing anything - protocol work cannot fix apnea.

Step 2: Identify chronotype

Classify as early (lark), intermediate, or late (owl) from the natural wake time on unconstrained days. Align the target schedule with the chronotype where life allows rather than forcing an unnatural one - a forced 5am schedule on a strong owl fails within weeks. Label the classification a guess if the user has no unconstrained days to judge from.

Step 3: Fix the wake time and derive the bedtime

Pick one wake time and hold it every day including weekends, within ±30 minutes - this consistency window is the non-negotiable core of the protocol. Count back 7.5-9 hours to set the target bedtime. If the current schedule is far off, shift in 15-30 minute steps every few days rather than one heroic jump.

Step 4: Build the light plan

Morning: 10-30 minutes of bright, preferably outdoor light within an hour of waking to anchor the circadian clock (through a window is a weak substitute; overcast outdoor light still works). Evening: dim household lights and cut blue-heavy screens 1-2 hours before bed. Bedroom: fully dark - blackout curtains or an eye mask.

Step 5: Set the environment

Temperature 16-19 °C (60-67 °F) - cool wins. Noise controlled with earplugs or steady white noise. The bed is for sleep only: no work, no scrolling; the association between bed and wakefulness is what conditioning-based insomnia is made of.

Step 6: Tune the inputs

Caffeine: none within 8-10 hours of bedtime (its half-life is long - a 3pm coffee is still half-active at 9pm). Alcohol: fragments the second half of the night; keep it modest and away from bedtime. Large meals: finished 2-3 hours before bed. Exercise: strongly pro-sleep, but schedule vigorous sessions earlier in the day.

Step 7: Script the wind-down routine

A 30-60 minute buffer of low-stimulation activities that becomes the cue for sleep. Script it concretely with times, not as a vague intention - see the worked artifact.

Step 8: Install the wakefulness rule and nap policy

Awake in bed more than ~20 minutes: get up, do something calm in dim light, return when sleepy. No clock-watching - turn the clock face away; checking the time raises arousal. Naps: only if nighttime sleep is intact, 10-20 minutes, early afternoon only.

Step 9: Review at 2 weeks

Compare sleep latency, night wakings, and morning energy against baseline. Adjust exactly one variable at a time - changing three things at once makes the protocol unfalsifiable. Improvement typically shows in 1-2 weeks of consistent wake times; no improvement after 4 weeks of genuine adherence is an escalation trigger.

Worked artifact

Example: intermediate chronotype, 8:00 work start, current weekend drift of 2.5 hours.

SLEEP PROTOCOL - [name]

Wake time:   6:45 every day, +/-30 min max (weekends included)
Bedtime:     10:45 (8h window)  - shift from current 12:30 in 30-min steps
Morning:     coffee on the balcony 7:00-7:20 (light + caffeine together)
Caffeine:    last cup 12:45pm (10h before bed)
Evening:     dinner by 8:00 / lights dimmed + screens off 9:30
Bedroom:     18C, blackout curtains, phone charges in kitchen, clock turned away

WIND-DOWN (10:00-10:45)
10:00  screens off, tomorrow's top-3 jotted down (closes open loops)
10:10  warm shower
10:25  paper book on the couch, lamp only
10:45  lights out
If awake >20 min: up, armchair + dim lamp, back when sleepy.

Review Sun evening, week 2: latency __ min / wakings __ / AM energy 1-10 __
Change ONE variable next cycle: ______

Deliverable

Produce a one-page protocol containing: the fixed wake time with its ±30 minute rule, target bedtime with the shift plan if needed, the morning and evening light plan, the environment checklist (temperature, dark, noise, bed-for-sleep-only), the evening input rules with their hour cutoffs, the scripted timed wind-down, the 20-minute wakefulness rule and nap policy, and the 2-week review with the one-variable rule.

Do NOT

  • Do not anchor the protocol on bedtime; bedtime follows sleepiness, wake time drives the clock.
  • Do not allow weekend wake times to float "as recovery" - the Monday cost is a self-inflicted timezone shift.
  • Do not change multiple variables per review cycle; the protocol stops being diagnostic.
  • Do not prescribe lying in bed trying harder; past 20 minutes that trains the bed-wakefulness association.
  • Do not recommend melatonin dosing, sleeping medication, or supplement stacks - that is a physician conversation.
  • Do not treat stress-driven rumination with sleep hygiene alone; when racing thoughts are the driver, pair with stress-management.

Quality bar

The protocol ships when: the wake time is a single clock time with the ±30 minute rule stated; every input rule carries its hour cutoff (caffeine 8-10h, meals 2-3h, screens 1-2h); the wind-down is scripted with actual times, not adjectives; the red-flag screen was run and documented; and the review names the date, the metrics, and the one variable eligible to change.

Escalation

This is general wellness education, not medical advice - a licensed physician or sleep specialist owns anything clinical. Refer promptly, before or alongside protocol work, for: loud snoring with gasping, choking, or witnessed breathing pauses (apnea signs - protocol work will not fix a mechanical airway problem); severe daytime sleepiness such as dozing while driving; insomnia persisting 3+ months despite consistent protocol adherence (CBT-I with a specialist is the evidence-based treatment); restless legs or acting out dreams; or shift-work schedules causing serious impairment. Route neighbors: stress-management when daytime stress drives night rumination, longevity-protocol for the full health routine this protocol slots into.

04 同仓库更多 Skills

SkillMedev
SkillMedev/skills

有氧运动计划

zone-2-cardio-plan

当有人要求制定稳态有氧训练计划、进行有氧基础训练或达到第二区间、安排轻松或耐力型的每周有氧训练、按心率区间训练,或提高静息心率、最大摄氧量或耐力时,可以使用此方案。该方案构建了一个包含训练计划结构、训练方式选择和进度安排的心率区间有氧训练模块。本方案仅提供一般健身指导,不构成医疗建议。请勿用于设计力量或举重训练计划(请使用力量训练计划)、高强度间歇训练 (HIIT) 或循环训练(请使用体能训练和 HIIT 计划),或灵活性/柔韧性训练(请使用灵活性训练计划)。

★ 25
SkillMedev
SkillMedev/skills

youtube-script-writer

Writes retention-engineered long-form YouTube scripts on a hook/body/payoff architecture - a first-30-seconds hook that survives the retention cliff, a beat-sheet body with mini-hooks and bridges, timed pattern interrupts, and a payoff that over-delivers - with B-roll and editing cues marked inline. Use when someone says "script my next video", "my retention graph dies at the start", "tighten this draft", or "outline a video on X". Do NOT use for the 3-second opener of TikTok, Reels, or Shorts - use video-hook-writer instead; do NOT use for spoken voiceover synced to on-screen tutorial actions - use narration-script instead; do NOT use for a sales demo built on a buyer's discovery notes - use demo-script instead; do NOT use to design the thumbnail and title - use thumbnail-concept instead.

★ 25
SkillMedev
SkillMedev/skills

win-back-campaign

Designs segmented win-back email sequences for dormant users - dormancy tiers, a three-beat sequence with a single proportional incentive, and a suppression rule - and measures success by re-activation, not opens. Use when someone says "our users went quiet", "design a win-back campaign", "how do I re-engage lapsed customers", "should we email people who haven't logged in for months", or lifecycle messaging has stopped landing with a lapsed segment. Do NOT use for recovering an unfinished checkout - use abandoned-cart-sequence instead. Do NOT use for diagnosing and fixing why active customers cancel - use churn-reduction instead. Do NOT use for building always-on onboarding or nurture flows - use email-drip-builder instead.

★ 25
SkillMedev
SkillMedev/skills

wikipedia-style

Writes neutral, verifiable, encyclopedic prose following Wikipedia's core content policies and manual of style - NPOV, inline citations, notability-backed claims, and a strict ban on promotional language. Use when someone asks "write this like a Wikipedia article", "draft a Wikipedia page for this company or person", "make this neutral and encyclopedic", or "why does my article draft keep getting rejected". Do NOT use for persuasive or opinion writing - use op-ed-writer instead; for thesis-driven academic papers, use academic-essay; for verifying claims in existing text, use fact-checker.

★ 25
SkillMedev
SkillMedev/skills

whitepapers

Structures and writes authoritative B2B whitepapers - a standalone executive summary, a data-sized problem statement, methodology, evidence-driven findings, recommendations, and a soft call to action - flagging every claim that needs a real citation. Use when a marketer asks "write a whitepaper on this topic", "turn our research into a lead-gen asset", "make this credible enough for executives", or a draft reads like a product pitch instead of analysis. Do NOT use for customer-story-driven proof - use case-study-builder instead; for policy audiences, use policy-brief.

★ 25
SkillMedev
SkillMedev/skills

white-space-analysis

Finds unmet market gaps by ranking jobs-to-be-done on importance versus satisfaction, overlaying them against current solutions and workarounds, and validating that each gap is real, winnable, and worth winning. Use when someone asks "where are the gaps in this market", "what's underserved here", "where should we play next", or is hunting for product, feature, or market-entry opportunities. Do NOT use for profiling competitors and building battle cards - use competitive-intelligence instead; for putting a dollar figure on an identified opportunity - use market-sizing instead; for extracting jobs-to-be-done from raw customer interviews - use jtbd-extractor instead.

★ 25