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.
curl -O https://raw.githubusercontent.com/huifer/WellAlly-health/main/.claude/skills/sleep-analyzer/SKILL.mdgit clone --depth 1 https://github.com/huifer/WellAlly-healthWrote 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.
[](https://agentmods.dev/skills/huifer/wellally-health/sleep-analyzer)<a href="https://agentmods.dev/skills/huifer/wellally-health/sleep-analyzer"><img src="https://agentmods.dev/badge/skills/huifer/wellally-health/sleep-analyzer/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.
<a href="https://agentmods.dev/skills/huifer/wellally-health/sleep-analyzer"><img src="https://agentmods.dev/badge/skills/huifer/wellally-health/sleep-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.06061 |
| Opus 5.5 | $0.00016 | $0.02424 |
| Sonnet 5.5 | $0.00008 | $0.01212 |
| Haiku 4.5 | $0.00004 | $0.00606 |
Grade A, and why
sleep-analyzer 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 774 lines — stays where its author put it; the contents beside it link to each section on GitHub.
睡眠分析器技能
分析睡眠数据,识别睡眠模式,评估睡眠质量,并提供个性化睡眠改善建议。
功能
1. 睡眠趋势分析
分析睡眠时长、质量、效率的变化趋势,识别改善或需要关注的方面。
分析维度:
- 睡眠时长趋势(平均睡眠时长变化)
- 睡眠效率趋势(睡眠效率百分比变化)
- 入睡时间模式(上床时间、入睡时间、起床时间)
- 作息规律性评分(sleep consistency score)
- 周末vs工作日对比(social jetlag)
输出:
- 趋势方向(改善/稳定/下降)
- 变化幅度和百分比
- 趋势显著性评估
- 最佳睡眠时间窗口识别
- 改进建议
2. 睡眠质量评估
综合评估睡眠质量,识别影响睡眠质量的关键因素。
评估内容:
- PSQI分数追踪和趋势
- 主观睡眠质量分布(好/中/差)
- 夜间觉醒分析(次数、时长、原因)
- 睡眠阶段分析(深睡、浅睡、REM比例)
- 睡后恢复感评估
输出:
- 睡眠质量等级(优秀/良好/一般/较差)
- 质量变化趋势
- 主要影响因素识别
- 质量改善优先级建议
3. 睡眠问题识别
识别常见的睡眠问题和风险因素。
识别内容:
-
失眠模式:
- 入睡困难(sleep latency >30分钟)
- 睡眠维持困难(夜间觉醒>2次或总觉醒时间>30分钟)
- 早醒(比预期提前醒来>30分钟)
- 混合型失眠
-
呼吸暂停风险:
- STOP-BANG问卷评分
- 症状分析(打鼾、憋醒、白天嗜睡)
- 风险等级(低/中/高)
-
其他问题:
- 作息不规律检测
- 睡眠债计算(理想时长vs实际时长)
- 社交时差评估
输出:
- 问题存在与否
- 问题类型和严重程度
- 风险因素列表
- 是否需要就医建议
4. 相关性分析
分析睡眠与其他健康指标的相关性。
支持的相关性分析:
-
睡眠 ↔ 运动:
- 运动日vs休息日的睡眠差异
- 运动时间对睡眠的影响(早晨/下午/晚间运动)
- 运动强度与睡眠质量的相关性
-
睡眠 ↔ 饮食:
- 咖啡因摄入与睡眠时长、入睡时间的关系
- 酒精摄入对睡眠结构的影响
- 晚餐时间与睡眠质量的关系
-
睡眠 ↔ 情绪:
- 睡眠与情绪的双向关系分析
- 压力水平对睡眠质量的影响
- 睡眠剥夺对日间情绪的影响
-
睡眠 ↔ 慢性病:
- 睡眠与高血压的关系
- 睡眠与血糖控制的关联
- 睡眠与体重变化的关系
输出:
- 相关系数(-1到1)
- 相关性强度(弱/中/强)
- 统计显著性
- 因果关系推断
- 实践建议
5. 个性化建议生成
基于用户数据生成个性化睡眠改善建议。
建议类型:
-
作息调整建议:
- 最佳上床/起床时间
- 作息一致性改善方案
- 午睡管理建议
-
睡前准备建议:
- 睡前例行程序设计
- 放松技巧推荐
- 屏幕时间管理
-
睡眠环境优化:
- 温度、湿度、光线、噪音优化
- 床品舒适度建议
-
生活方式调整:
- 运动、饮食、咖啡因、酒精管理
- 压力管理建议
-
CBT-I元素:
- 刺激控制建议
- 睡眠限制建议
- 认知重构建议
输出:
- 优先级排序的建议列表
- 具体实施步骤
- 预期效果说明
- 实施时间线
使用说明
触发条件
当用户请求以下内容时触发本技能:
- 睡眠趋势分析
- 睡眠质量评估
- 睡眠问题识别
- 睡眠改善建议
- 睡眠与其他健康指标的关联分析
执行步骤
步骤 1: 确定分析范围
明确用户请求的分析类型和时间范围:
- 分析类型:趋势/质量/问题/相关性/建议
- 时间范围:周/月/季度/自定义
步骤 2: 读取数据
主要数据源:
data-example/sleep-tracker.json- 睡眠追踪主数据data-example/sleep-logs/YYYY-MM/YYYY-MM-DD.json- 每日睡眠记录
关联数据源:
data-example/fitness-tracker.json- 运动数据data-example/hypertension-tracker.json- 血压数据data-example/diabetes-tracker.json- 血糖数据data-example/diet-records/- 饮食记录data-example/mood-tracker.json- 情绪数据
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.
- 1mo ago First seen · 774 lines · 39 tokens per session scan A 367364c625fa
sleep-analyzer is a skill published in the GitHub repository huifer/WellAlly-health (963 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 6,061 once invoked, about $0.0002 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.
Other skills, from other repositories
mirobody
Self-host Mirobody, the open-source health data engine, and use it from an agent. Use when the user wants to run a personal or family health record on their own machine, bring lab reports and wearables (Apple Health, Garmin, Oura, WHOOP) into one place an AI can read, expose their health data to Claude Code, Codex…
who-gho-guide
Use with who tools to compare WHO GHO health indicators across countries or aggregates, discover age/sex/cause dimension positions, and distinguish missing metadata or incomplete pages from missing data.
longevity-protocol
Assembles an evidence-tiered weekly longevity routine across the four pillars with the strongest healthspan data - sleep, zone 2 aerobic work, strength training, and dietary pattern - plus stress and connection, delivered as a filled weekly template with honest evidence labels. Use when someone asks "build me a…
mobility-routine
Builds a 10-15 minute daily floor-based mobility routine for desk workers, targeting the four zones sitting predictably stiffens - hips, thoracic spine, shoulders/neck, and ankles - with exact holds, reps, and a sequenced routine card. Use when someone says "I'm stiff from sitting all day", "my hips are tight", "fix…
nutrition-planner
Sets personal nutrition targets - protein at 1.6-2.2 g/kg, a calorie budget from goal and activity, fiber and hydration floors - and a repeatable meal structure with a review-and-adjust protocol for fat loss, muscle gain, or maintenance. Use when someone asks "how much protein should I eat", "set my macros for a cut"…
pilot-service-agents-health
Public-health and biomedical APIs — ClinicalTrials.gov, openFDA, CDC, WHO, ClinVar, DailyMed, disease.sh. Use this skill when: 1. Searching active/past clinical trials by condition, sponsor, phase 2. Drug label, adverse-event, or interaction lookups (openFDA, DailyMed) 3. COVID / epidemiological stats, WHO global…