360 Secure SkillHub
360 安全技能中心

Skill Health

该 Skill 读取 ZIP 压缩包或目录中的健康数据 CSV(步数、心率、睡眠、卡路里、血氧、运动、距离),按小时、日、周、月以及最近 30 小时睡眠窗口生成紧凑 JSON 报告,并支持跨时段告警分析和时区参数。

javiersgjavi
javiersgjavi
热度 58.08
最近更新 2026-05-17 12:52:20
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写 / 健康

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-health
Metadata
name
skill-health
description
Analyze wearable health CSV exports (steps, heart rate, sleep, calories, SpO2, exercise, distance) and produce compact JSON reports for hourly, daily, weekly, monthly, sleep (last 30h) and cross-temporal alerts. Use when running or packaging Skill Health analyses and when explaining output semantics, data quality, or known caveats.

Skill Health

Use

Run analysis scripts from scripts/ with a --data-path (ZIP or folder) or --data-dir (directory holding health_data_*). Each script prints JSON to stdout and can also write a file with --output-dir.

Pass --timezone (IANA, e.g. Europe/Madrid, America/New_York) to interpret naive CSV timestamps correctly before UTC serialization.

Minimal examples:

python scripts/run_sleep.py --data-path data/health_data_latest.zip --output-dir outputs
python scripts/run_daily.py --data-path data/health_data_latest.zip --output-dir outputs
python scripts/run_cross_alerts.py --outputs-dir outputs --output-dir outputs

Notes

  • Sleep metrics use suffix last_{window_hours}h (default last_30h).
  • Outputs are compact JSON (time_window uses s/e/r, data_quality uses cov/rel).
  • Dependencies: Python 3.10+ and pandas.

References

  • references/overview.md (data schemas, outputs, key decisions)
  • references/operations.md (execution windows, quality rules)