sleep-wakeup advisor

v1.0.0

Calculate and recommend optimal wake-up times aligned with sleep cycles based on bedtime, workday or holiday constraints, prioritizing 5-cycle options.

0· 457· 1 versions· 0 current· 0 all-time· Updated 12h ago· MIT-0

Install

openclaw skills install sleep-wakeup-advisor

Sleep Wake-up Advisor

When user says "晚安", return wake-up suggestions immediately.

Apply this workflow

  1. Treat one sleep cycle as 90 minutes.
  2. Add a 15-minute sleep-onset buffer from "now" (or from user-provided bedtime).
  3. Generate candidate wake times at +3, +4, +5, +6 cycles.
  4. Rank by recommended cycle count priority: 5 cycles > 4 cycles > 6 cycles > 3 cycles.
  5. Determine day type:
    • Workday: Monday–Friday unless it is a China public holiday.
    • Holiday/Rest day: Saturday/Sunday or China public holiday.
  6. Enforce top recommendation constraint:
    • Workday: top recommendation must be earlier than 09:00.
    • Holiday/Rest day: top recommendation must be earlier than 11:00.
  7. If highest-priority candidate violates the limit, pick the next-best candidate that satisfies the limit.
  8. Output:
    • First line: "最推荐:HH:mm(X 个周期)"
    • Then 2–4 alternative times in descending quality.
    • Keep response concise and practical.

Sleep science defaults

  • Adults usually complete ~4–6 full cycles per night.
  • Deep sleep (N3) is concentrated in the first half of the night.
  • Waking at cycle boundaries generally reduces sleep inertia versus waking mid-cycle.

Use these defaults unless user gives a personalized plan.

Response template

  • 最推荐:07:45(5 个周期)
  • 备选:06:15(4 个周期)
  • 备选:09:15(6 个周期)
  • 备选:04:45(3 个周期)

Add one short sentence only when useful (e.g., "按你现在入睡,建议设置 07:45 闹钟").

Version tags

latestvk972f0na8bah23505kqyjxc61s81x2hd