child-sleep

A child sleep tracker that records bedtimes, wake times, naps, and night waking, then compares them with age-based sleep guidance.

In plain words
What is it for?
Use it to record sleep, review total sleep, check sleep patterns, and get age-appropriate routine suggestions.
Why use it?
It keeps sleep details in one place and helps identify whether a child's schedule or sleep may need attention.

Command for Claude Code

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.

agentmods
npx agentmods add commands/huifer/wellally-health/child-sleep
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

Per session 8 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,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00008 $0.04615
Opus 5 $0.00004 $0.02308
Sonnet 5 $0.00002 $0.00923
Haiku 4.5 $0.00001 $0.00462

Measured yesterday against content hash 119e376afd8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

child-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 yesterday.

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/child-sleep.md · 699 lines

How it starts

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

儿童睡眠管理

儿童睡眠记录、作息管理和睡眠问题识别,提供各年龄段睡眠时长参考和作息建议。

操作类型

1. 记录睡眠 - record

记录儿童睡眠情况。

参数说明:

  • info: 睡眠信息(自然语言)
  • date: 睡眠日期(可选,默认昨天)

示例:

/child-sleep record 21点睡 7点起 醒了1次
/child-sleep record bedtime 21:00 wake 7:00 wakeup 1

执行步骤:

1. 读取儿童基础信息

data/profile.json 读取儿童信息。如缺少,提示设置。

2. 根据年龄确定睡眠标准
年龄 推荐总睡眠 夜间睡眠 白天小睡 小睡次数
0-3月 14-17小时 8-10小时 6-7小时 3-4次
4-12月 12-16小时 9-12小时 3-4小时 2-3次
1-2岁 11-14小时 10-12小时 1.5-3小时 1-2次
3-5岁 10-13小时 10-12小时 0-2小时 0-1次
6-12岁 9-12小时 9-12小时 0 0次
13-18岁 8-10小时 8-10小时 0 0次
3. 生成睡眠记录报告

正常睡眠示例:

✅ 睡眠记录已保存

睡眠信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
儿童:小明
年龄:2岁5个月
睡眠日期:2025年1月13日夜间

就寝时间:21:00
入睡时间:21:30
起床时间:07:00
总睡眠时长:9.5小时

夜间情况:
━━━━━━━━━━━━━━━━━━━━━━━━━━
夜醒次数:1次
夜醒时长:约10分钟
夜醒原因:口渴/需要安慰

入睡方式:自主入睡
睡眠质量:良好 ✅

睡眠评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 睡眠时长正常(推荐10-12小时)
✅ 入睡时间合适
✅ 夜醒次数正常
✅ 睡眠质量良好

白天小睡:
━━━━━━━━━━━━━━━━━━━━━━━━━━
小睡次数:1次
小睡时长:约2小时
总睡眠(含小睡):约11.5小时 ✅

作息建议:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 保持当前作息时间
✅ 建立固定的睡前程序
✅ 营造良好的睡眠环境

⚠️ 重要提示:
━━━━━━━━━━━━━━━━━━━━━━━━━━
每个孩子睡眠需求不同,
关键是观察孩子的精神状态。

如精神好、发育正常,
说明睡眠充足。

数据已保存

睡眠不足示例:

⚠️ 睡眠不足提醒

睡眠信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
儿童:小明
年龄:2岁5个月
睡眠日期:2025年1月13日夜间

就寝时间:22:00
入睡时间:23:00
起床时间:06:30
总睡眠时长:7.5小时

夜间情况:
━━━━━━━━━━━━━━━━━━━━━━━━━━
夜醒次数:3次
夜醒时长:共约1小时
入睡困难:是(30分钟)

睡眠评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ 睡眠时长不足(推荐10-12小时)
⚠️ 就寝时间偏晚
⚠️ 入睡困难
⚠️ 夜醒频繁

可能影响:
━━━━━━━━━━━━━━━━━━━━━━━━━━
• 白天精神不佳
• 情绪烦躁
• 食欲下降
• 免疫力下降

改善建议:
━━━━━━━━━━━━━━━━━━━━━━━━━━

🕐 调整作息
   • 提前30分钟开始睡前程序
   • 固定就寝时间(20:30-21:00)

🌙 优化睡前程序
   • 停止屏幕时间1小时前
   • 安静活动(绘本、温水澡)
   • 固定程序顺序

🛏️ 改善睡眠环境
   • 室温20-22℃
   • 保持黑暗安静
   • 舒适的寝具

⚠️ 如持续睡眠不足:
━━━━━━━━━━━━━━━━━━━━━━━━━━
建议咨询儿科医生,
排除睡眠障碍等问题。

使用 /child-sleep problem 查看常见睡眠问题
数据已保存

2. 作息管理 - schedule

管理和记录儿童作息时间表。

示例:

/child-sleep schedule
/child-sleep schedule set 21:00 7:30

Read the full file on GitHub · 699 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. yesterday First seen · 699 lines · 8 tokens per session scan A 119e376afd8a

Subscribe to this mod's changes

child-sleep is a command published in the GitHub repository huifer/WellAlly-health (935 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 4,615 once invoked, about $0.0000 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.