WellAlly-health: Skill for Claude Code

.claude/skills/sleep-analyzer/SKILL.md

sleep-analyzer is a skill for Claude Code from huifer/WellAlly-health. It costs 39 tokens per session (6,061 once invoked), scanned A, original, MIT.

A sleep-analysis tool that examines sleep duration, timing, quality, stages, awakenings, regularity, and possible sleep-problem patterns.

In plain words
What is it for?
Use it to track sleep trends, compare workdays with weekends, identify patterns such as insomnia or possible breathing risk, and examine links between sleep and other health measures.
Why use it?
Sleep records contain many measures, and it can be hard to see whether changes are improving sleep or whether factors such as exercise, food, or stress are related.

Skill for Claude Code

Written for Claude Code: allowed-tools 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/skills/sleep-analyzer/SKILL.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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/huifer/wellally-health/sleep-analyzer/github.svg)](https://agentmods.dev/skills/huifer/wellally-health/sleep-analyzer)
Your own site
<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.

agentmods 80×15 button for sleep-analyzer

Your own site · 80×15
<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>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,061 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.00039 $0.06061
Opus 5 $0.00019 $0.03031
Sonnet 5 $0.00008 $0.01212
Haiku 4.5 $0.00004 $0.00606

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

Security

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 7d 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/skills/sleep-analyzer/SKILL.md · 774 lines

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: 读取数据

主要数据源

  1. data-example/sleep-tracker.json - 睡眠追踪主数据
  2. data-example/sleep-logs/YYYY-MM/YYYY-MM-DD.json - 每日睡眠记录

关联数据源

  1. data-example/fitness-tracker.json - 运动数据
  2. data-example/hypertension-tracker.json - 血压数据
  3. data-example/diabetes-tracker.json - 血糖数据
  4. data-example/diet-records/ - 饮食记录
  5. data-example/mood-tracker.json - 情绪数据

Read the full file on GitHub · 774 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. 7d ago First seen · 774 lines · 39 tokens per session scan A 367364c625fa

Subscribe to this mod's changes

sleep-analyzer is a skill published in the GitHub repository huifer/WellAlly-health (947 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 6,061 once invoked, about $0.0002 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

lab-report-walkthrough

Walk a person through their lab report — read the original document, organize results by panel, flag out-of-range values against the printed reference ranges, compare with their history, and explain in plain language. Use when the user uploads a lab report (PDF/image) or asks what their blood test results mean.

thetahealth/mirobody · 67 tokens

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…

SkillMedev/health-and-longevity · 157 tokens

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…

SkillMedev/health-and-longevity · 136 tokens

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"…

SkillMedev/health-and-longevity · 151 tokens

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…

TeoSlayer/pilot-skills · 136 tokens

apple-health

Unofficial Apple Health export MCP for AI agents. Prefer MCP tools if connected; otherwise the package CLI. Use when the user wants Apple Health data or actions through an agent.

davidmosiah/apple-health-mcp · 39 tokens