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.
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-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/OpenMinis/MinisSkills /tmp/MinisSkills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/MinisSkills/health-sleep-analysis ~/.gemini/antigravity-cli/skills/health-sleep-analysisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install health-sleep-analysis in Antigravity CLI
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
ANo 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 →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
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.
