sleep-optimization

sleep-optimization is a skill for Claude Code, Codex from cosmicstack-labs/mercury-agent-skills. It costs 20 tokens per session (463 once invoked), scanned A, original, MIT.

A guide to improving sleep through regular schedules, bedtime habits, bedroom conditions, and sleep tracking. It explains sleep cycles, including deep sleep and REM sleep, which supports memory and emotional processing.

In plain words
What is it for?
Use it to design wind-down routines, set sleep schedules, adjust light, temperature, noise, and air quality, and review sleep-tracking information.
Why use it?
It helps turn sleep goals into consistent routines and practical changes to the sleeping environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design wind-down routines, set sleep schedules, adjust light, temperature, noise, and air quality, and review sleep-tracking information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmicstack-labs/mercury-agent-skills --skill sleep-optimization
Clone the repo
git clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sleep-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization/github.svg)](https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization)
Your own site
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sleep-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization"><img src="https://agentmods.dev/badge/skills/cosmicstack-labs/mercury-agent-skills/sleep-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00463
Opus 5.5 $0.00008 $0.00185
Sonnet 5.5 $0.00004 $0.00093
Haiku 4.5 $0.00002 $0.00046

Measured 3mo ago against content hash 6f5981be7a47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sleep-optimization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

categories/health-wellness/sleep-optimization/SKILL.md · 58 lines

What it actually says

Sleep Optimization

Optimize sleep quality and duration for health and performance.

Sleep Science Basics

Sleep Cycles (90 min each)

  • NREM (75%): Deep restorative sleep — tissue repair, immune function
  • REM (25%): Dream sleep — memory consolidation, emotional processing

Optimal Schedule

  • 7-9 hours for adults
  • Consistent bedtime + wake time (even weekends)
  • Wake up at the end of a cycle (multiples of 90 min from bedtime)

Sleep Hygiene Protocol

2 Hours Before Bed

  • Dim lights, use warm color temperature
  • No screens (or blue light blockers)
  • No intense exercise
  • No heavy meals, caffeine, or alcohol
  • Room temperature: 65-68°F (18-20°C)
  • White noise or earplugs if needed

30 Minutes Before Bed

  • Wind-down routine (same order every night)
  • Read fiction (not work-related)
  • Journal to offload racing thoughts
  • Stretch or gentle yoga
  • Avoid bright bathroom lights

Environment Design

  • Complete darkness: Blackout curtains, tape LED lights
  • Cool temperature: Cooler room = deeper sleep
  • Quiet: Earplugs or white noise machine
  • Comfortable bed: Mattress 7-10 years lifespan
  • Clean air: Open window or air purifier

Tracking & Adjustment

Use wearable (Oura, Apple Watch, Fitbit) to track:

  • Time in bed vs actual sleep
  • Deep sleep percentage (>15% ideal)
  • HRV trend (higher = better recovery)
  • Consistency score

Adjust based on data: if deep sleep low → increase evening wind-down. If latency high → no caffeine after 2pm.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 58 lines · 20 tokens per session scan A 6f5981be7a47

Subscribe to this mod's changes

sleep-optimization is a skill published in the GitHub repository cosmicstack-labs/mercury-agent-skills (496 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 463 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

sleep-optimization compared with skills from other repositories

sleep-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sleep-optimizationcosmicstack-labs/mercury-agent-skillsSkill4963mo agoMITA20Claude Code, Codex
soloanthropics/claude-plugins-officialSkill49ktodayApache-2.0A77Claude Code
vss-generate-video-calibrationNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0ktodayApache-2.0A55Claude Code, Codex
scientific-slidesforyourhealth111-pixel/Vibe-SkillsSkill3.9k24d agoApache-2.0A65Claude Code
LQF_Machine_Learning_Expert_Guideforyourhealth111-pixel/Vibe-SkillsSkill3.9k24d agoApache-2.0A152Claude Code
imaging-data-commonsforyourhealth111-pixel/Vibe-SkillsSkill3.9k24d agoApache-2.0A62Claude Code, Codex
adme-property-predictorLeoYeAI/openclaw-master-skillsSkill2.2k11d agoMITA61Claude Code