Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

health-sleep-analysis

Skill by OpenMinis

Analyzes Apple HealthKit sleep, blood oxygen, heart rate and HRV data and builds visual sleep reports. Written for people who want to review their sleep quality and cardiac trends, with chart text in Chinese, English or Japanese.

  • Score 72
  • 640 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install health-sleep-analysis

Built from the published package, never by AI.

git clone --depth 1 https://github.com/OpenMinis/MinisSkills /tmp/MinisSkills && mkdir -p ~/.claude/skills && cp -r /tmp/MinisSkills/health-sleep-analysis ~/.claude/skills/health-sleep-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install health-sleep-analysis in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Health Sleep Analysis is an agent skill that fetches sleep, blood oxygen (SpO2), heart rate and HRV data from Apple HealthKit and analyzes it. It covers sleep stages (Deep, REM, Core and Awake), sleep duration, bedtime patterns, resting heart rate and HRV. The skill includes Python scripts that produce weekly and monthly report cards, half-year and full-year trend charts, and a cardiac health analysis.

The scripts render charts as SVG and PNG with rsvg-convert, and long-term trends use matplotlib. A language flag supports zh, en and ja. The skill compares results against listed health standards for sleep duration, stages, SpO2, resting heart rate and HRV. It is aimed at people who track sleep and heart data from Apple Watch and want a written analysis with a visual report.

Written from the project's SKILL.md and checked against it.

What it can do

  • Weekly sleep reportBuilds a 7-night report card as SVG and PNG using sleep_report_librsvg.py.
  • Monthly sleep trendRenders a 30-night sleep trend chart using sleep_month_trend_librsvg.py.
  • Half-year and full-year trendsAggregates sleep and SpO2 weekly or monthly with sleep_longterm_librsvg.py.
  • Cardiac health analysisAnalyzes resting heart rate, HRV, SpO2 and max heart rate with cardiac_analysis.py.
  • Sleep stage breakdownMaps HealthKit values to Deep, REM, Core and Awake stages.
  • Health standards ratingRates sleep duration, stages, SpO2, resting heart rate and HRV against listed ranges.

What you need

  • Apple HealthKit data accessed through the apple-healthkit command
  • Python 3 with matplotlib and numpy
  • rsvg-convert for SVG to PNG rendering
  • font-noto-cjk for Chinese and Japanese characters

Try asking

  • Make a weekly sleep report card for me
  • Show my 30-day sleep trend with chart text in Japanese
  • Analyze my resting heart rate and HRV over the last 30 days

Good to know

  • Nights with less than 1 hour of total sleep are filtered out automatically.
  • Long-term SpO2 analysis needs a higher --limit value, such as 10000.
  • Missing nights usually mean the Apple Watch was not worn.
  • The report footer states it is for reference only.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: health-sleep-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to health-sleep-analysis

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

health-sleep-analysis: common questions

Does it need Apple Watch data?

The source says missing nights usually mean the Apple Watch was not worn, and nights under 1 hour are filtered out.

Which languages does it support?

Chart text supports zh (default), en and ja. For other languages, it uses en for chart text and replies in the user's language.

What does it flag for SpO2?

Frequent readings below 95% (over 20% of readings) or any reading below 90% warrant evaluation for obstructive sleep apnea, according to the source.

How do I install health-sleep-analysis?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is health-sleep-analysis free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is health-sleep-analysis safe to use?

It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to health-sleep-analysis?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

health-sleep-analysis Install

Add to stack

Loading.