Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

lovefromio-garmin-health-analysisLovefromio Garmin 健康分析

Agent Skill

lovefromio-garmin-health-analysis 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,137

周安装

169

GitHub Stars

公开资料未说明

下载量

1,338
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lovefromio-garmin-health-analysis(Lovefromio Garmin 健康分析)
来源仓库:https://github.com/lovefromio/lovefromio-garmin-health-analysis
安装命令:
openclaw skills install lovefromio-garmin-health-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install lovefromio-garmin-health-analysis

简介

自然地谈论您的 Garmin 数据,回答关于运动速度、睡眠质量、心率等问题。

  • 适用于健身追踪、健康趋势分析和运动表现优化场景。
  • 支持访问20米以上历史数据,提供可视化解读。
  • 需授权Garmin账户访问权限,注意同步频率与隐私设置。
  • 结果仅供参考,医疗相关建议请咨询专业人士。lovefromio-garmin-health-analysis 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
garmin-health-analysis
description
Talk to your Garmin data naturally - "what was my fastest speed snowboarding?", "how did I sleep last night?", "what was my heart rate at 3pm?". Access 20+ metrics (sleep stages, Body Battery, HRV, VO2 max, training readiness, body composition, SPO2), download FIT/GPX files for route analysis, query elevation/pace at any point, and generate interactive health dashboards. From casual "show me this week's workouts" to deep "analyze my recovery vs training load".
version
1.2.2
author
EversonL & Claude
homepage
https://github.com/eversonl/ClawdBot-garmin-health-analysis
metadata
{"clawdbot":{"emoji":"⌚","requires":{"env":["GARMIN_EMAIL","GARMIN_PASSWORD"]},"install":[{"id":"garminconnect","kind":"python","package":"garminconnect","label":"Install garminconnect (pip)"},{"id":"fitparse","kind":"python","package":"fitparse","label":"Install fitparse (pip)"},{"id":"gpxpy","kind":"python","package":"gpxpy","label":"Install gpxpy (pip)"}]}}

Garmin Health Analysis

Query health metrics from Garmin Connect and generate interactive HTML charts.

Two Installation Paths

This skill supports two different setups:

  1. Clawdbot Skill (this guide) - Use with Clawdbot for automation and proactive health monitoring
  2. MCP Server (see MCP setup guide) - Use with standard Claude Desktop as an MCP server

Choose the path that matches your use case. You can also use both simultaneously!


Clawdbot Skill Setup (first time only)

1. Install Dependencies

pip3 install garminconnect

2. Configure Credentials

You have three options to provide your Garmin Connect credentials:

Option A: Clawdbot Config (Recommended - UI configurable)

Add credentials to ~/.clawdbot/clawdbot.json:

{
  "skills": {
    "entries": {
      "garmin-health-analysis": {
        "enabled": true,
        "env": {
          "GARMIN_EMAIL": "your-email@example.com",
          "GARMIN_PASSWORD": "your-password"
        }
      }
    }
  }
}

Tip: You can also set these through the Clawdbot UI in the Skills settings panel.

Option B: Local Config File

Create a config file in the skill directory:

cd ~/.clawdbot/skills/garmin-health-analysis
# or: cd <workspace>/skills/garmin-health-analysis
cp config.example.json config.json
# Edit config.json and add your email and password

config.json:

{
  "email": "your-email@example.com",
  "password": "your-password"
}

Note: config.json is gitignored to keep your credentials secure.

Option C: Command Line

Pass credentials directly when authenticating:

python3 scripts/garmin_auth.py login \
  --email YOUR_EMAIL@example.com \
  --password YOUR_PASSWORD

3. Authenticate

Login to Garmin Connect and save session tokens:

python3 scripts/garmin_auth.py login

This uses credentials from (in priority order):

  1. Command line arguments (--email, --password)
  2. Local config file (config.json)
  3. Environment variables (GARMIN_EMAIL, GARMIN_PASSWORD)
  4. Clawdbot config (skills.entries.garmin-health-analysis.env)

Session tokens are stored in ~/.clawdbot/garmin-tokens.json and auto-refresh.

Check authentication status:

python3 scripts/garmin_auth.py status

Fetching Data

Use scripts/garmin_data.py to get JSON data:

# Sleep (last 7 days default)
python3 scripts/garmin_data.py sleep --days 14

# Body Battery (Garmin's recovery metric)
python3 scripts/garmin_data.py body_battery --days 30

# HRV data
python3 scripts/garmin_data.py hrv --days 30

# Heart rate (resting, max, min)
python3 scripts/garmin_data.py heart_rate --days 7

# Activities/workouts
python3 scripts/garmin_data.py activities --days 30

# Stress levels
python3 scripts/garmin_data.py stress --days 7

# Combined summary with averages
python3 scripts/garmin_data.py summary --days 7

# Custom date range
python3 scripts/garmin_data.py sleep --start 2026-01-01 --end 2026-01-15

# User profile
python3 scripts/garmin_data.py profile

Output is JSON to stdout. Parse it to answer user questions.

Generating Charts

Use scripts/garmin_chart.py for interactive HTML visualizations:

# Sleep analysis (hours + scores)
python3 scripts/garmin_chart.py sleep --days 30

# Body Battery recovery chart (color-coded)
python3 scripts/garmin_chart.py body_battery --days 30

# HRV & resting heart rate trends
python3 scripts/garmin_chart.py hrv --days 90

# Activities summary (by type, calories)
python3 scripts/garmin_chart.py activities --days 30

# Full dashboard (all 4 charts)
python3 scripts/garmin_chart.py dashboard --days 30

# Save to specific file
python3 scripts/garmin_chart.py dashboard --days 90 --output ~/Desktop/garmin-health.html

Charts open automatically in the default browser. They use Chart.js with a modern gradient design, stat cards, and interactive tooltips.

Answering Questions

User asksAction
"How did I sleep last night?"garmin_data.py summary --days 1, report sleep hours + score
"How's my recovery this week?"garmin_data.py body_battery --days 7, report average + trend
"Show me my health for the last month"garmin_chart.py dashboard --days 30
"Is my HRV improving?"garmin_data.py hrv --days 30, analyze trend
"What workouts did I do this week?"garmin_data.py activities --days 7, list activities with details
"How's my resting heart rate?"garmin_data.py heart_rate --days 7, report average + trend

Key Metrics

Body Battery (0-100)

Garmin's proprietary recovery metric based on HRV, stress, sleep, and activity:

  • High (75-100): Fully recharged, ready for high intensity
  • Medium (50-74): Moderate energy, good for regular activity
  • Low (25-49): Limited energy, recovery needed
  • Very Low (0-24): Depleted, prioritize rest

Sleep Scores (0-100)

Overall sleep quality based on duration, stages, and disturbances:

  • Excellent (90-100): Optimal restorative sleep
  • Good (80-89): Quality sleep with minor issues
  • Fair (60-79): Adequate but could improve
  • Poor (0-59): Significant sleep deficiencies

HRV (Heart Rate Variability)

Measured in milliseconds, higher is generally better:

  • Indicates nervous system balance and recovery capacity
  • Track trends over time (increasing = improving recovery)
  • Affected by sleep, stress, training load, illness
  • Normal range varies by individual (20-200+ ms)

Resting Heart Rate (bpm)

Lower generally indicates better cardiovascular fitness:

  • Athletes: 40-60 bpm
  • Fit adults: 60-70 bpm
  • Average adults: 70-80 bpm
  • Sudden increases may indicate stress, illness, or overtraining

Stress Levels

Based on HRV analysis throughout the day:

  • Low stress: Rest and recovery periods
  • Medium stress: Normal daily activities
  • High stress: Physical activity or mental pressure

Health Analysis

When users ask for insights or want to understand their trends, use references/health_analysis.md for:

  • Science-backed interpretation of all metrics
  • Normal ranges by age and fitness level
  • Pattern detection (weekly trends, recovery cycles, training load balance)
  • Actionable recommendations based on data
  • Warning signs that suggest rest or medical consultation

Analysis workflow

  1. Fetch data: python3 scripts/garmin_data.py summary --days N
  2. Read references/health_analysis.md for interpretation framework
  3. Apply the analysis framework: Status → Trends → Patterns → Insights → Recommendations
  4. Always include disclaimer that this is informational, not medical advice

Troubleshooting

Authentication Issues

  • "Invalid credentials": Double-check email/password, try logging into Garmin Connect web
  • "Tokens expired": Run login again: python3 scripts/garmin_auth.py login ...
  • "Too many requests": Garmin rate-limits; wait a few minutes and try again

Missing Data

  • Some metrics require specific Garmin devices (Body Battery needs HRV-capable devices)
  • Historical data may have gaps if device wasn't worn
  • New accounts may have limited history

Library Issues

  • If garminconnect import fails: pip3 install --upgrade garminconnect
  • Garmin occasionally changes their API; update the library if requests fail

Privacy Note

  • Credentials are stored locally in ~/.clawdbot/garmin-tokens.json
  • Session tokens refresh automatically
  • No data is sent anywhere except to Garmin's official servers
  • You can revoke access anytime by deleting the tokens file

Comparison: Garmin vs Whoop

FeatureGarminWhoop
Recovery metricBody Battery (0-100)Recovery Score (0-100%)
HRV trackingYes (nightly average)Yes (detailed)
Sleep stagesLight, Deep, REM, AwakeLight, SWS, REM, Awake
Activity trackingBuilt-in GPS, many sport modesStrain score (0-21)
StressAll-day stress levelsNot directly tracked
APIUnofficial (garminconnect)Official OAuth
Device typesWatches, fitness trackersWearable band only

References

  • references/api.md — Garmin Connect API details (unofficial)
  • references/health_analysis.md — Science-backed health data interpretation
  • garminconnect library — Python API wrapper
  • Garmin Connect — Official web interface

Version Info

  • Created: 2026-01-25
  • Author: EversonL & Claude
  • Version: 1.2.0
  • Dependencies: garminconnect, fitparse, gpxpy (Python libraries)
  • License: MIT

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.04%
按下载量换算1,165

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills