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 $0.00010 $0.00231
Sonnet 5 $0.00004 $0.00093
Haiku 4.5 $0.00002 $0.00046

Measured 8d ago against content hash 6f5981be7a47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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. 8d 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 (471 stars, last pushed 17d ago), licensed MIT. It adds 20 tokens to every session and 463 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

calculator

Evaluate mathematical expressions and unit conversions. Handles arithmetic, percentages, exponents, and common unit conversions (temperature, distance, weight). No external dependencies.

NVIDIA/SkillEvaluator · 32 tokens

figure-rhetoric

Evaluate whether figures and plots in a manuscript effectively communicate the claims they support. Audits chart-type fit, axis design, visual hierarchy, data density, caption interpretation, perceptual accuracy, and narrative arc across 8 dimensions. Triggers on: "do my figures work", "check my plots", "are my graphs…

Mathews-Tom/armory · 123 tokens

manuscript-provenance

Computational provenance audit verifying every number, table, and figure in a manuscript derives from code, not manual entry. Triggers on: "check provenance", "verify reproducibility", "audit my pipeline", "are my numbers from code", "provenance audit". Companion to manuscript-review (prose audit).

Mathews-Tom/armory · 70 tokens

paper-figures

Use this skill to produce standalone, publication-ready PNG graphics and reproducible matplotlib scripts from tabular data (CSVs or DataFrames). This tool is built specifically for rendering numerical data into formal scientific visualizations—including scatter, line, bar, pie, ring, bubble, tornado, KDE, violin, box…

EvoScientist/EvoSkills · 208 tokens

arxiv-package

Package a TeX/LaTeX project into a clean tarball or zip for arXiv upload: file selection, build-artifact exclusion, 00README.XXX generation, ancillary file organization, archive validation. Triggers on: "package for arXiv", "create arXiv tarball", "bundle submission", "zip for arXiv", "prepare arXiv upload", "arXiv…

Mathews-Tom/armory · 105 tokens

paper-planning

Guides pre-writing planning for academic papers with 4 structured steps: story design (task-challenge-insight-contribution-advantage), experiment planning (comparisons + ablations), figure design (pipeline + teaser), and 4-week timeline management. Includes counterintuitive planning tactics (write a mock rejection…

EvoScientist/EvoSkills · 166 tokens