WellAlly-health: Command for Claude Code

.claude/commands/sleep.md

sleep is a command for Claude Code from huifer/WellAlly-health. It costs 21 tokens per session (4,820 once invoked), scanned A, original, MIT.

A command for recording sleep times, sleep quality, awakenings, and factors such as caffeine, exercise, stress, or screen use. It can assess patterns and offer general sleep-hygiene advice, but it does not diagnose sleep disorders.

In plain words
What is it for?
Use it to log bedtime and wake time, rate sleep, record interruptions, and track bedtime habits or possible influences on sleep.
Why use it?
It keeps sleep information in one place so changes and possible problems are easier to notice. Its guidance is informational and does not replace medical care.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

This is huifer/WellAlly-health's own configuration. It tells Claude Code how to work on WellAlly-health itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything WellAlly-health configures →

Reuse

Borrowing it

Nothing to install: this file belongs to huifer/WellAlly-health. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/huifer/WellAlly-health/main/.claude/commands/sleep.md
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/huifer/wellally-health/sleep/github.svg)](https://agentmods.dev/commands/huifer/wellally-health/sleep)
Your own site
<a href="https://agentmods.dev/commands/huifer/wellally-health/sleep"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/sleep/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/huifer/wellally-health/sleep"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/sleep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,820 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.
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.00021 $0.04820
Opus 5 $0.00010 $0.02410
Sonnet 5 $0.00004 $0.00964
Haiku 4.5 $0.00002 $0.00482

Measured 10d ago against content hash a276d50f9b86, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

sleep 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 10d 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.

.claude/commands/sleep.md · 602 lines

How it starts

The opening of the file, as written. The whole thing — 602 lines — stays where its author put it; the contents beside it link to each section on GitHub.

睡眠质量管理命令

⚠️ 重要医学免责声明

本系统提供的睡眠评估、问题识别和建议仅供参考,不构成医疗诊断或治疗方案。

本系统能够做到的

  • ✅ 记录和追踪睡眠数据
  • ✅ 评估睡眠质量趋势
  • ✅ 识别睡眠问题风险
  • ✅ 提供睡眠卫生建议
  • ✅ 分析睡眠模式和影响因素

本系统不能做的

  • ❌ 诊断失眠、睡眠呼吸暂停等睡眠疾病
  • ❌ 开具助眠药物或调整药物剂量
  • ❌ 替代专业睡眠医学治疗(如CBT-I、CPAP等)
  • ❌ 处理严重睡眠障碍或紧急情况

何时需要就医

  • 🏥 失眠持续超过3个月,严重影响日常生活
  • 🏥 出现呼吸暂停症状(打鼾、憋醒、白天嗜睡)
  • 🏥 不宁腿症状严重影响睡眠
  • 🏥 严重嗜睡影响工作、学习或驾驶安全
  • 🏥 任何突发的、严重的睡眠问题

使用方法

记录睡眠

# 快速记录
/sleep record 23:00 07:00 good
/sleep record 22:30 06:30 excellent
/sleep record 23:30 07:00 fair

# 详细记录
/sleep record bedtime 23:00 onset 23:30 wake 07:00 outbed 07:15
/sleep record 23:00 07:00 good quality 8 efficiency 95

# 记录觉醒情况
/sleep record 23:00 07:00 fair 2 awakenings
/sleep record 23:00 07:00 poor 3 awakenings bathroom noise

# 记录影响因素
/sleep record 23:00 07:00 good exercise evening no_caffeine
/sleep record 23:00 07:00 fair caffeine_after_2pm screen_time 90

# 记录睡前例行活动
/sleep record 23:00 07:00 good routine 30min reading relaxation

睡眠质量描述

  • excellent(优秀)/ very good(很好)/ good(好)
  • fair(一般)/ poor(差)/ very poor(很差)

影响因素

  • caffeine_after_2pm(下午2点后摄入咖啡因)
  • alcohol(饮酒)
  • exercise(运动时间:morning/afternoon/evening/none)
  • screen_time(睡前屏幕时间,分钟数)
  • stress(压力水平:low/medium/high)

查看睡眠历史

# 查看最近记录
/sleep history
/sleep history 7                       # 最近7晚

# 查看本周/本月
/sleep history week
/sleep history month

# 查看特定日期
/sleep history 2025-06-20
/sleep history today
/sleep history yesterday

# 查看日期范围
/sleep history 2025-06-01 to 2025-06-30
/sleep history last 7 days
/sleep history last 30 days

输出内容

  • 睡眠时间(上床、入睡、起床、起床离床)
  • 睡眠指标(时长、潜伏期、效率)
  • 睡眠质量评分
  • 夜间觉醒详情
  • 影响因素
  • 睡前例行活动

睡眠统计分析

# 综合统计
/sleep stats
/sleep stats week
/sleep stats month

# 特定统计
/sleep average                         # 平均睡眠时长
/sleep efficiency                      # 睡眠效率
/sleep latency                         # 入睡潜伏期
/sleep pattern                         # 睡眠模式分析

# 睡眠质量分布
/sleep quality distribution
/sleep quality trend                   # 质量趋势

# 作息规律性
/sleep consistency                     # 作息一致性
/sleep schedule                        # 作息时间分析

Read the full file on GitHub · 602 lines

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. 10d ago First seen · 602 lines · 21 tokens per session scan A a276d50f9b86

Subscribe to this mod's changes

sleep is a command published in the GitHub repository huifer/WellAlly-health (943 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 4,820 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-08-30.